Updated the parser to handle processing a simple load byte instruction. Added the LODB opcode to the opcode enum listing and updated the Scanner to look for 'byte' and mark it as a directive.
This commit is contained in:
+4
-4
@@ -73,11 +73,11 @@
|
||||
or "word" for two bytes. That would make the assembly easier to read but put a bit more work on the
|
||||
assembler. The Stack Pointer will start 2 bytes above the video memory start.
|
||||
\section{STOB (Store Byte)}
|
||||
\OpcodeTable{0x20}{stob}{Register}{Address}\\[6pt]
|
||||
Stores a single byte (the lower nibble) from a register to a memory address.
|
||||
\OpcodeTable{0x20}{stob}{Register}{Register}\\[6pt]
|
||||
Stores a single byte (the lower nibble) from a register to a memory address store in a register.
|
||||
\section{STOW (Store Machine Word)}
|
||||
\OpcodeTable{0x20}{stow}{Register}{Address}\\[6pt]
|
||||
Stores a machine word from a register to a memory address.
|
||||
\OpcodeTable{0x20}{stow}{Register}{Register}\\[6pt]
|
||||
Stores a machine word from a register to a memory address stored in a register.
|
||||
\section{LAA (Load Absolute Address)}
|
||||
\OpcodeTable{0x00}{laa}{Register}{Address}\\[6pt]
|
||||
Loads an address (2 bytes) into the register.
|
||||
|
||||
Reference in New Issue
Block a user