Index
An instruction is a specific function that belongs to a category, represented in the form of an 8-bit (or a byte) hexadecimal number.
The embedded instructions are categorized as follows:
- Execution
- Register Operation
- Plotting and Printing
- Communication
- Peripheral Operations
- Logic and Computation
An opcode (OP) is a parameter for an instruction, which can be interpreted as 16-bit hexadecimal value or two 8-bit hexadecimal values, in the form of sub-opcodes (sOP).
There are three possible combinations for OPs and sOPs:
- Both OPs are processed in 16-bit format:
OP-0 | OP-1 |
---|---|
0000 ~FFFF | 0000 ~FFFF |
- One OP is processed in 16-bit format, while the other one is treated as two 8-bit values:
sOP00 | sOP01 | OP-1 |
---|---|---|
00 ~FF | 00 ~FF | 0000 ~FFFF |
- Both OPs are processed in 8-bit;
sOP00 | sOP01 | sOP10 | sOP11 |
---|---|---|---|
00 ~FF | 00 ~FF | 00 ~FF | 00 ~FF |
caution
Some instructions needs only one OP or no OPs at all (ignored).
In this document, each instruction and its corresponding opcodes are organized in a table, in which the first cell gives the name and hexadecimal index of the instruction, and deleting lines indicate that the opcode is ignored.
info
E.g. instruction 0x10, or INST_WRITE_REG
, is used to change a register value, where sOP01 and OP-1 are processed, but sOP00 is ignored.
INST_WRITE_REG | 编号 | sOP01 | OP-1 |
---|
tip
Those ignored OPs or sOPs can be any value in the program, for clearance and easier to distinguish, in this document they appear as 00
or 0000
.