mirror of
https://github.com/pnx/m16vm
synced 2026-06-16 03:44:55 +02:00
asm/hello_world.as: we can now use labels!
This commit is contained in:
parent
1146b925f5
commit
ad74f2d476
1 changed files with 1 additions and 1 deletions
|
|
@ -29,5 +29,5 @@ ld $15, $0, 0 ; Load memory address stored in R0 into R15
|
|||
int $10, 2 ; Print character
|
||||
add $0, $0, $1 ; Add 1 (R1) to counter (R0)
|
||||
beq $15, $2, 1 ; Branch to "noop" (skipping next instruction) if R15 = 0 (R2 holds 0)
|
||||
jmp 22 ; jump back to "_start" label (not implemented atm)
|
||||
jmp _start ; jump back to "_start" label
|
||||
noop
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue