1
0
Fork 0
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:
Henrik Hautakoski 2018-12-10 23:12:59 +01:00
parent 1146b925f5
commit ad74f2d476
No known key found for this signature in database
GPG key ID: 839F3A7EAFAEAFAA

View file

@ -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