How to use the assembler. #217
-
Greetings, #ruledef Regds, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Those are the definitions for assembler mnemonics, not actual instructions, values being assigned to registers, or the contents of registers. 0x21 is not the result of adding 0x11 and 0x12, it is the value that corresponds to the instruction that represents "add r1 and r2 and store it somewhere" in the same way that 0x11 isn't stored in r1, 0x11 means "copy the 8 bits that follow this instruction into r1." The point of this assembler is it's not for a specific ISA, you as the user define your own ISA, and then use that ISA to assemble instructions. Suggest reading the wiki where all of this is explained. |
Beta Was this translation helpful? Give feedback.
Those are the definitions for assembler mnemonics, not actual instructions, values being assigned to registers, or the contents of registers. 0x21 is not the result of adding 0x11 and 0x12, it is the value that corresponds to the instruction that represents "add r1 and r2 and store it somewhere" in the same way that 0x11 isn't stored in r1, 0x11 means "copy the 8 bits that follow this instruction into r1." The point of this assembler is it's not for a specific ISA, you as the user define your own ISA, and then use that ISA to assemble instructions.
Suggest reading the wiki where all of this is explained.