jump above/below
This commit is contained in:
parent
e539081fdd
commit
06309dbf76
2 changed files with 43 additions and 2 deletions
2
03/ex03
2
03/ex03
|
@ -1,4 +1,3 @@
|
||||||
|
|
||||||
D]=d7
|
D]=d7
|
||||||
D]=C
|
D]=C
|
||||||
D^=C
|
D^=C
|
||||||
|
@ -38,3 +37,4 @@ div
|
||||||
:funciton
|
:funciton
|
||||||
call A
|
call A
|
||||||
str Here is some text which will be put in the executable!
|
str Here is some text which will be put in the executable!
|
||||||
|
?CaD:label
|
||||||
|
|
43
03/in02
43
03/in02
|
@ -1471,6 +1471,14 @@ im
|
||||||
##21. '!'
|
##21. '!'
|
||||||
je
|
je
|
||||||
:-j!
|
:-j!
|
||||||
|
im
|
||||||
|
##61. 'a'
|
||||||
|
je
|
||||||
|
:-ja
|
||||||
|
im
|
||||||
|
##62. 'b'
|
||||||
|
je
|
||||||
|
:-jb
|
||||||
jm
|
jm
|
||||||
:-!j
|
:-!j
|
||||||
::?@ write address for conditional jump
|
::?@ write address for conditional jump
|
||||||
|
@ -1500,6 +1508,7 @@ im
|
||||||
cl
|
cl
|
||||||
jm
|
jm
|
||||||
:-?@
|
:-?@
|
||||||
|
// handle jg
|
||||||
::j>
|
::j>
|
||||||
im
|
im
|
||||||
--J>
|
--J>
|
||||||
|
@ -1512,6 +1521,7 @@ im
|
||||||
cl
|
cl
|
||||||
jm
|
jm
|
||||||
:-?@
|
:-?@
|
||||||
|
// handle je
|
||||||
::j=
|
::j=
|
||||||
im
|
im
|
||||||
--J=
|
--J=
|
||||||
|
@ -1524,6 +1534,7 @@ im
|
||||||
cl
|
cl
|
||||||
jm
|
jm
|
||||||
:-?@
|
:-?@
|
||||||
|
// handle jne
|
||||||
::j!
|
::j!
|
||||||
im
|
im
|
||||||
--J!
|
--J!
|
||||||
|
@ -1536,14 +1547,44 @@ im
|
||||||
cl
|
cl
|
||||||
jm
|
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<
|
::J<
|
||||||
jg
|
jg (operands are flipped)
|
||||||
::J>
|
::J>
|
||||||
jl
|
jl
|
||||||
::J!
|
::J!
|
||||||
jn
|
jn
|
||||||
::J=
|
::J=
|
||||||
je
|
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
|
// set A to register. takes rbx='0','A','B','C','D','I','J','R','S', outputs instruction to file
|
||||||
::Ar
|
::Ar
|
||||||
im
|
im
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue