summaryrefslogtreecommitdiff
path: root/03/in02
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2021-11-13 14:53:02 -0500
committerpommicket <pommicket@gmail.com>2021-11-13 14:53:02 -0500
commit06309dbf76c289794619029b9eed3411efa531d0 (patch)
tree1afbb1c70554480ebe8fe590777159e898d3239a /03/in02
parente539081fdd218e9b8d2b37e78932e55ebb527833 (diff)
jump above/below
Diffstat (limited to '03/in02')
-rw-r--r--03/in0243
1 files changed, 42 insertions, 1 deletions
diff --git a/03/in02 b/03/in02
index afd4b74..93dce7b 100644
--- a/03/in02
+++ b/03/in02
@@ -1471,6 +1471,14 @@ im
##21. '!'
je
:-j!
+im
+##61. 'a'
+je
+:-ja
+im
+##62. 'b'
+je
+:-jb
jm
:-!j
::?@ write address for conditional jump
@@ -1500,6 +1508,7 @@ im
cl
jm
:-?@
+// handle jg
::j>
im
--J>
@@ -1512,6 +1521,7 @@ im
cl
jm
:-?@
+// handle je
::j=
im
--J=
@@ -1524,6 +1534,7 @@ im
cl
jm
:-?@
+// handle jne
::j!
im
--J!
@@ -1536,14 +1547,44 @@ im
cl
jm
:-?@
+// handle ja
+::ja
+im
+--Ja
+IA
+im
+##5.
+DA
+im
+--wr
+cl
+jm
+:-?@
+// handle jb
+::jb
+im
+--Jb
+IA
+im
+##5.
+DA
+im
+--wr
+cl
+jm
+:-?@
::J<
-jg
+jg (operands are flipped)
::J>
jl
::J!
jn
::J=
je
+::Ja
+jb (operands are flipped)
+::Jb
+ja
// set A to register. takes rbx='0','A','B','C','D','I','J','R','S', outputs instruction to file
::Ar
im