-
Notifications
You must be signed in to change notification settings - Fork 0
isa_overview
Tom Lonergan edited this page Mar 23, 2023
·
6 revisions
- Multicycle processor
- 16 bit wordsize
- 16 operations
- 16 registers
Labels marked with label:
Comments marked with # comment
There are 5 types of instructions:
- Register instructions
- Set instructions
- Shift instructions
- Memory instructions
- Special instructions
Type | 4 bits | 4 bits | 4 bits | 4 bits |
---|---|---|---|---|
Register | Opcode | Destination register | Source register 1 | Source Register 2 |
Set | Opcode | Target register | First half of value | Second half of value |
Memory | Opcode | Destination register | Address register | Offset |
Special | Opcode | Suboperation | Padding | Padding |
Take values in 2 source registers, applies an operation as stated by opcode, stores in destination register
Take an 8 bit value and sets target register to that value
Loads/stores a value into/out of target register from/to memory address equal to address register + offset bytes
Syscalls, io ops, and others. Arguments given as defined in relevant pages