Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sync branch #3

Merged
merged 2 commits into from
Jun 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions arch/quickref.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@
Registers - 64 bits wide

rz always reads zero, writes are ignored
ra general purpose
rb general purpose
rc general purpose
rd general purpose
ra general purpose (function parameters)
rb general purpose (function parameters)
rc general purpose (function parameters)
rd general purpose (function parameters)
re general purpose
rf general purpose
rg general purpose
rh general purpose
ri general purpose
rj general purpose
rk general purpose
ri general purpose (callee saved)
rj general purpose (callee saved)
rk general purpose (callee saved)
pc program counter - points to current instruction in memory
sp stack pointer - stack grows down
fp frame pointer
Expand Down
30 changes: 15 additions & 15 deletions handbook/branch.txt
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
instruction func description
instruction func description

bra 0 0000 true
beq 1 0001 equal
bez 2 0010 zero
blt 3 0011 less than
ble 4 0100 less than or equal to
bltu 5 0101 less than (unsigned)
bleu 6 0110 less than or equal to (unsigned)
bpe 7 0111 parity bit enabled (odd)
bne 9 1001 not equal
bnz A 1010 not zero
bge B 1011 greater than or equal to
bgt C 1100 greater than
bgeu D 1101 greater than or equal to (unsigned)
bgtu E 1110 greater than (unsigned)
bpd F 1111 parity bit disabled (even)
beq 1 0001 equal
bez 2 0010 zero
blt 3 0011 less than
ble 4 0100 less than or equal to
bltu 5 0101 less than (unsigned)
bleu 6 0110 less than or equal to (unsigned)
bpe 7 0111 parity bit enabled (odd)
bne 9 1001 not equal
bnz A 1010 not zero
bge B 1011 greater than or equal to
bgt C 1100 greater than
bgeu D 1101 greater than or equal to (unsigned)
bgtu E 1110 greater than (unsigned)
bpd F 1111 parity bit disabled (even)
3 changes: 2 additions & 1 deletion handbook/registers.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ D sp stack pointer
E fp frame pointer
F st status register, contains bit flags and information about the processor state

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.
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.