Skip to content

Commit

Permalink
Review: ecall and ebreak take rd register selector
Browse files Browse the repository at this point in the history
  • Loading branch information
yoichi-nexus committed Jul 15, 2024
1 parent ba0a70a commit 6833bf1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/pages/specs/nexus-vm.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@ Table: Summary of the Nexus Virtual Machine Instruction Set, where operations ar
| $\textbf{jal}$ | $rd$ $i$ | jumps to $pc+i$ and stores $pc+4$ into $R[rd]$|
| $\textbf{jalr}$ | $rd$ $rs_1$ $i$ | jumps to $R[rs_1] + i$ and stores $pc+4$ into $R[rd]$|
| $\textbf{fence}$ | | No operation |
| $\textbf{ecall}$ | | system call |
| $\textbf{ebreak}$ | | system call|
| $\textbf{ecall}$ | $rd$ | system call |
| $\textbf{ebreak}$ | $rd$ | system call|
| $\textbf{unimp}$ | | jumps to $pc$; in effect looping forever at the current program counter |

The Nexus VM also enforces 2-byte and 4-byte memory alignments for the instructions operating on half-words and words.
Expand Down

0 comments on commit 6833bf1

Please sign in to comment.