added more instructuioins

This commit is contained in:
2026-09-09 13:41:49 -05:00
parent a71d73e19d
commit 0decb483fe
18 changed files with 320 additions and 111 deletions
+11
View File
@@ -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