Added a note about a proposal regarding assembly language design.

This commit is contained in:
2022-09-27 17:46:50 +00:00
parent 02cf72902e
commit 2b71ac05a0
+7
View File
@@ -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}