From 2b71ac05a0cc73cdbe54059ba8001b436d728af1 Mon Sep 17 00:00:00 2001 From: Garritt McCune Date: Tue, 27 Sep 2022 17:46:50 +0000 Subject: [PATCH] Added a note about a proposal regarding assembly language design. --- docs/document.tex | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/document.tex b/docs/document.tex index ea591e8..67bbbcf 100644 --- a/docs/document.tex +++ b/docs/document.tex @@ -61,6 +61,11 @@ \end{tabular} \caption{Encoding Layout} \end{figure} + \section{Notes} + For the opcodes that load or store data at the assembly language level we could have the mnemonics + "store" and "load" and have the assembler pick the opcode based on the inclusion of the word "byte" + or "word" for two bytes. That would make the assembly easier to read but put a bit more work on the + assembler. \section{STOB (Store Byte)} \OpcodeTable{0x20}{stob}{Register}{Address}\\[6pt] Stores a single byte (the lower nibble) from a register to a memory address. @@ -105,6 +110,8 @@ \section{SHR (Shift Right)} \section{SHL (Shift Left)} \section{INC (Increment)} + \OpcodeTable{0x00}{inc}{Register}{None} \section{DEC (Decrement)} + \OpcodeTable{0x00}{dec}{Register}{None} \end{document}