Skip to content

Commit

Permalink
Replace all GOTO with JMP which works, and is clearer
Browse files Browse the repository at this point in the history
  • Loading branch information
skx committed Apr 21, 2022
1 parent e9c72c0 commit bc70bdc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions examples/jump.in
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

store #1, "Steve Kemp\n"
print_str #1
goto number
jmp number

# padding here - just for amusement.
nop
Expand All @@ -36,4 +36,4 @@
store #1, "\n"
print_str #1

goto kirsi
jmp kirsi
4 changes: 2 additions & 2 deletions examples/memcpy.in
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# $ go.vm execute ./memcpy.raw
#

goto run
jmp run
:code

#
Expand Down Expand Up @@ -50,4 +50,4 @@
memcpy #1, #2, #3

# Jump to the copied code.
goto 0x5000
jmp 0x5000
2 changes: 1 addition & 1 deletion examples/poke.in
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@
#
# Jump to that new code.
#
goto 0x5000
jmp 0x5000

0 comments on commit bc70bdc

Please sign in to comment.