Opcodes
Opcodes are instructions used to perform actions
Types of Opcodes
- 16 Opcodes
- Operate Instructions:
- ADD, AND, NOT, (MUL)
- Data Movement Instructions:
- LD, LDI, LDR, LEA
- ST, STR, STI
- Control Instructions:
- BR, JSR, JSRR, RET, RTI, TRAP
Some Opcodes set/clear conditions codes for flags n, z, p
- n: Negative
- z: Zero
- p: Positive
Data Types
Opcodes are 16 bit, 2's Complement(Can be negative) integer