Updated the docs to include new jump operands and setup the assembler to handle parsing all the jump instructions.

This commit is contained in:
2023-03-29 22:30:12 -05:00
parent a9a50055a4
commit 288ba9f9cb
5 changed files with 80 additions and 7 deletions
+15 -3
View File
@@ -103,16 +103,28 @@
\OpcodeTable{0x20}{sub}{Register}{Register}\\[6pt]
Performs subtraction on a register with a value from another (or the same) register.
\section{JMP (Jump)}
\OpcodeTable{0x20}{jmp}{Address}{None}\\[6pt]
\OpcodeTable{0x20}{jmp}{Register}{None}\\[6pt]
Jumps unconditionally to a memory address. Sets the Program Counter to Address.
\section{JZ (Jump if Zero)}
\OpcodeTable{0x20}{jz}{Register}{None}\\[6pt]
Jumps to a memory address if the status flag is zero.
\section{JG (Jump if Greater Than)}
\OpcodeTable{0x70}{jg}{Address}{None}\\[6pt]
\OpcodeTable{0x70}{jg}{Register}{None}\\[6pt]
Jump to the Address if the status flag is greater than zero.
\section{JL (Jump if Less Than)}
\OpcodeTable{0x00}{jl}{Address}{None}\\[6pt]
\OpcodeTable{0x00}{jl}{Register}{None}\\[6pt]
Jumps to the address if the status flag is less than zero.
\section{JMPA (Jump to Address)}
\OpcodeTable{0x20}{jmpa}{Address}{None}\\[6pt]
Jumps unconditionally to a memory address. Sets the Program Counter to Address.
\section{JZA (Jump to Address if Zero)}
\OpcodeTable{0x20}{jza}{Address}{None}\\[6pt]
Jumps to a memory address if the status flag is zero.
\section{JGA (Jump to Address if Greater Than)}
\OpcodeTable{0x70}{jga}{Address}{None}\\[6pt]
Jump to the Address if the status flag is greater than zero.
\section{JLA (Jump to Address if Less Than)}
\OpcodeTable{0x00}{jla}{Address}{None}\\[6pt]
Jumps to the address if the status flag is less than zero.
\section{AND (Logical AND)}
\OpcodeTable{0x00}{and}{Register}{Register}\\[6pt]