Skip to content

How to use the assembler. #217

Answered by chrisgbk
KapoorAkshit18 asked this question in Q&A
Discussion options

You must be logged in to vote

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.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by KapoorAkshit18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants