jserv / full-stack-hello

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

Label support in assembly #28

Closed jserv closed 6 years ago

jserv commented 7 years ago

Recently, @pakls contributed a series of conditional branch instructions which enables further translation from higher level languages to our virtual machine. However, lacking of labels prevents jump instructions from being efficiently used.

Thus, we expect that assembler can recognize labels as the indicators of open/close loop or deterministic location.

mlouielu commented 7 years ago

For reference, here is x86 labels reference: https://docs.oracle.com/cd/E19120-01/open.solaris/817-5477/esqaq/index.html

Symbolic labels should be easy to implement.

pakls commented 6 years ago

@HexRabbit completed it in 5baad29.