Skip to main content

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:

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:

  1. Both OPs are processed in 16-bit format:
OP-0OP-1
0000~FFFF0000~FFFF
  1. One OP is processed in 16-bit format, while the other one is treated as two 8-bit values:
sOP00sOP01OP-1
00~FF00~FF0000~FFFF
  1. Both OPs are processed in 8-bit;
sOP00sOP01sOP10sOP11
00~FF00~FF00~FF00~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编号sOP00sOP01OP-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.