added more instructuioins
This commit is contained in:
@@ -4,6 +4,7 @@ X, Y registers
|
||||
Memory (8kb)
|
||||
:: Flags
|
||||
Z; Zero
|
||||
E; Is Equal
|
||||
|
||||
:: Helpers
|
||||
NVAR <name>, <value>; Sets new a variable and its value
|
||||
@@ -27,10 +28,20 @@ DIV; Divides X / Y then stores in Accumulator
|
||||
|
||||
:: Commands (flow control)
|
||||
JZE <pointer>; Jumps to a pointer in the program on zero flag
|
||||
JNZE <pointer>; Jumps to a pointer if is not zero
|
||||
JIE <pointer>; Jumps if is equal
|
||||
|
||||
JMP <pointer>; Jumps to a pointer in the program
|
||||
SFG <flag>; Sets a flag to true
|
||||
RFG <flag; Sets a flag to false
|
||||
|
||||
:: Extra shite
|
||||
GIE; Gets if X is equal to Y
|
||||
GIG; Gets if X is greater than Y
|
||||
GIL; Gets if X is less than Y
|
||||
GIGE; Gets if X is greater than or equal to Y
|
||||
GILE; Gets if X is less than or equal to Y
|
||||
|
||||
:: Commands (Debug)
|
||||
PRA; Prints accumulator
|
||||
PRX; Prints X
|
||||
|
||||
Reference in New Issue
Block a user