From ad74f2d4760780774a0412b505b90b58e584cd63 Mon Sep 17 00:00:00 2001 From: Henrik Hautakoski Date: Mon, 10 Dec 2018 23:12:59 +0100 Subject: [PATCH] asm/hello_world.as: we can now use labels! --- asm/hello_world.as | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/asm/hello_world.as b/asm/hello_world.as index dc101c1..a146665 100644 --- a/asm/hello_world.as +++ b/asm/hello_world.as @@ -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