Skip to content

Commit

Permalink
Fixed f32a 'minus if' description
Browse files Browse the repository at this point in the history
  • Loading branch information
mopstream authored and ryukzak committed Mar 5, 2025
1 parent 0bcbc85 commit f87926a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions docs/f32a.md
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,8 @@ Most of the instructions drop the carry flag. Exceptions: `add`, `dup`.

- **Minus If**
- **Syntax:** `-if <label>`
- **Description:** Jump to the specified label if the top value of the data stack is negative.
- **Operation:** `if dataStack.pop() < 0 then p <- <label>`
- **Description:** Jump to the specified label if the top value of the data stack is nonnegative.
- **Operation:** `if dataStack.pop() >= 0 then p <- <label>`

- **Halt**
- **Syntax:** `halt`
Expand Down
2 changes: 1 addition & 1 deletion src/Isa/F32a.hs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ data Isa w l
Jump l
| -- | __if__ If T is nonzero, continues with the next instruction word addressed by P. If T is zero, jumps
If l
| -- | __-if__ Minus-if. If T is negative (T17 set), continues with the next instruction word addressed by P. If T is positive, jumps
| -- | __-if__ Minus-if. If T is negative (T[31] set), continues with the next instruction word addressed by P. If T is nonnegative, jumps
MinusIf l
| -- | __a!__ A-Store. Stores T into register A, popping the data stack
AStore
Expand Down

0 comments on commit f87926a

Please sign in to comment.