jserv / full-stack-hello

minimal instruction set and assembler/compiler for "Hello World" execution
Other
114 stars 50 forks source link

Add label support #30

Closed mlouielu closed 7 years ago

mlouielu commented 7 years ago

Label syntax as <LABEL>: in one separate line, it can not do as <LABEL>: add $0 $0 #1, jump instructions can jump to label with :<LABEL> syntax (e.g. jmp :label, jnz #1 :label).

<LABEL> is valid in any alphabet and digit, it should be fixed.

jserv commented 7 years ago

@mlouielu, Since call and ret instructions are implemented by @pakls, the label support is getting important for us to write more non-trivial applications. Would you like to revise these above changes?

mlouielu commented 7 years ago

@jserv Sure, I will get another round to revising this. (I'm on the vacation these days.)

jserv commented 7 years ago

@mlouielu, would you like to continue this work recently? If so, I expect to implement function call support.

mlouielu commented 7 years ago

@jserv I think this should propose by a new round of PR. This PR has too much conflict to current code.

jserv commented 7 years ago

Close per the suggestion from @mlouielu