File tree 3 files changed +24
-23
lines changed
3 files changed +24
-23
lines changed Original file line number Diff line number Diff line change 3
3
Registers - 64 bits wide
4
4
5
5
rz always reads zero, writes are ignored
6
- ra general purpose
7
- rb general purpose
8
- rc general purpose
9
- rd general purpose
6
+ ra general purpose (function parameters)
7
+ rb general purpose (function parameters)
8
+ rc general purpose (function parameters)
9
+ rd general purpose (function parameters)
10
10
re general purpose
11
11
rf general purpose
12
12
rg general purpose
13
13
rh general purpose
14
- ri general purpose
15
- rj general purpose
16
- rk general purpose
14
+ ri general purpose (callee saved)
15
+ rj general purpose (callee saved)
16
+ rk general purpose (callee saved)
17
17
pc program counter - points to current instruction in memory
18
18
sp stack pointer - stack grows down
19
19
fp frame pointer
Original file line number Diff line number Diff line change 1
- instruction func description
1
+ instruction func description
2
2
3
3
bra 0 0000 true
4
- beq 1 0001 equal
5
- bez 2 0010 zero
6
- blt 3 0011 less than
7
- ble 4 0100 less than or equal to
8
- bltu 5 0101 less than (unsigned)
9
- bleu 6 0110 less than or equal to (unsigned)
10
- bpe 7 0111 parity bit enabled (odd)
11
- bne 9 1001 not equal
12
- bnz A 1010 not zero
13
- bge B 1011 greater than or equal to
14
- bgt C 1100 greater than
15
- bgeu D 1101 greater than or equal to (unsigned)
16
- bgtu E 1110 greater than (unsigned)
17
- bpd F 1111 parity bit disabled (even)
4
+ beq 1 0001 equal
5
+ bez 2 0010 zero
6
+ blt 3 0011 less than
7
+ ble 4 0100 less than or equal to
8
+ bltu 5 0101 less than (unsigned)
9
+ bleu 6 0110 less than or equal to (unsigned)
10
+ bpe 7 0111 parity bit enabled (odd)
11
+ bne 9 1001 not equal
12
+ bnz A 1010 not zero
13
+ bge B 1011 greater than or equal to
14
+ bgt C 1100 greater than
15
+ bgeu D 1101 greater than or equal to (unsigned)
16
+ bgtu E 1110 greater than (unsigned)
17
+ bpd F 1111 parity bit disabled (even)
Original file line number Diff line number Diff line change @@ -9,4 +9,5 @@ D sp stack pointer
9
9
E fp frame pointer
10
10
F st status register, contains bit flags and information about the processor state
11
11
12
- note - fp and st are initialized to 0 and that the stack expands downward. in order to use the stack, you must relocate the stack somewhere specific.
12
+ note - fp and st are initialized to 0 and that the stack expands downward.
13
+ in order to use the stack, you must relocate the stack somewhere specific.
You can’t perform that action at this time.
0 commit comments