We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
REGISTER
LDR reg, offset, size
size
offset
reg
STO offset, reg, size
NEW
malloc
FREE
free
BANK nn
CUR_BANK
PUSH nn
POP nn
MUL nnA, nnB
DIV nnA, nnB
MOD nnA, nnB
ADD nnA, nnB
SUB nnA, nnB
AND regA, regB
OR regA, regB
XOR regA, regB
CMP regA, regB
NOT
xor cf, 0xFF
JMP nn
JZ nn
JNZ nn
JG nn
JGE nn
JL nn
JLE nn
RET
CALL nn
nn
The text was updated successfully, but these errors were encountered:
No branches or pull requests
REGISTER
- Get the index of the first available register, or create a new one. The index is placed on the stack.LDR reg, offset, size
- Readsize
(max 8) bytes fromoffset
, store inreg
STO offset, reg, size
NEW
- Pops a size from stack, then callsmalloc
. Pushes address to stackFREE
-free
a pointer of memoryBANK nn
- Switch the R/W memory base pointer. Useful after callingNEW
.CUR_BANK
- Push the base pointer of the current bankPUSH nn
- Push the value from a given register to the stack.POP nn
- Pop the top stack value to the given register.MUL nnA, nnB
- Multiply register A by B, store in ADIV nnA, nnB
MOD nnA, nnB
ADD nnA, nnB
SUB nnA, nnB
AND regA, regB
OR regA, regB
XOR regA, regB
CMP regA, regB
- Boolean comparison of numbersNOT
- Invert carry flag (xor cf, 0xFF
)JMP nn
- Jump...JZ nn
JNZ nn
JG nn
JGE nn
JL nn
JLE nn
RET
- Pop address from stack, jumpCALL nn
- Push next address to stack, then jump tonn
The text was updated successfully, but these errors were encountered: