Skip to content

Commit 62aace3

Browse files
Merge pull request #3 from orbit-systems/main
2 parents b3f139f + 8976755 commit 62aace3

File tree

3 files changed

+24
-23
lines changed

3 files changed

+24
-23
lines changed

arch/quickref.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,17 @@
33
Registers - 64 bits wide
44

55
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)
1010
re general purpose
1111
rf general purpose
1212
rg general purpose
1313
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)
1717
pc program counter - points to current instruction in memory
1818
sp stack pointer - stack grows down
1919
fp frame pointer

handbook/branch.txt

+15-15
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
instruction func description
1+
instruction func description
22

33
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)

handbook/registers.txt

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,5 @@ D sp stack pointer
99
E fp frame pointer
1010
F st status register, contains bit flags and information about the processor state
1111

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.

0 commit comments

Comments
 (0)