Skip to content

Commit

Permalink
Merge pull request #44 from FluffyLabs/piotrzwolinski-patch-1
Browse files Browse the repository at this point in the history
Update instructions descriptions
  • Loading branch information
piotrzwolinski authored Aug 14, 2024
2 parents 1098a03 + f65451c commit 564b566
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/utils/instructionsKnowledgeBase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export interface InstructionKnowledgeBaseEntry {
export const instructionsKnowledgeBase: InstructionKnowledgeBaseEntry[] = [
{
name: "ADD",
opcode: "", 8,

Check failure on line 10 in src/utils/instructionsKnowledgeBase.ts

View workflow job for this annotation

GitHub Actions / deploy

':' expected.
description: "Add ωA and ωB and store the result in ωD modulo 2^32.",
latex: "\\omega'_D = (\\omega_A + \\omega_B) \\mod 2^{32}",
},
Expand Down Expand Up @@ -173,7 +174,7 @@ export const instructionsKnowledgeBase: InstructionKnowledgeBaseEntry[] = [
{
name: "JMP",
description: "Jump to the instruction at address νX.",
latex: "\\iota = \\omega_A",
latex: "\token{branch}(\immed_X, \top)$\\",
},
{
name: "JMP_IF_ZERO",
Expand Down Expand Up @@ -220,7 +221,7 @@ export const instructionsKnowledgeBase: InstructionKnowledgeBaseEntry[] = [
description: "No operation.",
latex: "\\iota = \\omega_A",
},
{ name: "TRAP", latex: "trap" },
{ name: "TRAP", opcode: "0", latex: "trap" },
{ name: "FALLTHROUGH", latex: "Continues execution to the next instruction" },
{ name: "ECALLI", latex: "System call interface" },
{ name: "STORE_IMM_U8", latex: "\\mu[\\omega_A] = \\nu_X \\mod 2^8" },
Expand Down

0 comments on commit 564b566

Please sign in to comment.