Skip to content

Commit

Permalink
updated for minimal 64x4 bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelkamprath committed Apr 27, 2024
1 parent 8219b4d commit ae8a642
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 15 deletions.
1 change: 0 additions & 1 deletion examples/slu4-minimal-64x4/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ The following instruction macros have been added in the ISA configuration file f
| `mqq` | zero page address | zero page address | Copies a 4 byte long at the first zero page address to the 4 bytes at the second zero page address |
| `mll` | abs address | abs address | Copies a 4 byte long at the first absolute address to the 4 bytes at the second absolute address |
| `miq` | immediate | zero page address | Copies an immediate 4-byte long to a zero page long |
| `inq_` | zero page address | - | Increments a 4 byte long at a zero page address. Fixes the bug with the built-in `INQ` instruction as of v1.1.0 of the Minimal 64x4 OS. |

### Assembly Syntax
**BespokeASM**'s syntax is close to the syntax that Carsten used for the Minimal 64x4's assembly language. However, there are some differences:
Expand Down
13 changes: 0 additions & 13 deletions examples/slu4-minimal-64x4/slu4-minimal-64x4.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3016,16 +3016,3 @@ macros:
instructions:
- "miv @ARG(0) & $0000FFFF ,@ARG(1)+0"
- "miv (@ARG(0) & $FFFF0000) >> 16,@ARG(1)+2"
inq_:
# increment zero-page long. This macro exists because the built-in instruction INQ has a bug.
- operands:
count: 1
operand_sets:
list:
- zero_page
instructions:
- "inv @ARG(0)+0"
- "ldi 0"
- "ac.z @ARG(0)+2"
- "ldi 0"
- "ac.z @ARG(0)+3"
2 changes: 1 addition & 1 deletion examples/slu4-minimal-64x4/software/primes.min64x4
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ start:
phsptr is_prime_str jps _PrintPtr pls2
; jps _WaitInput
.increment_n:
inq_ _n_value
inq _n_value
jpa .n_loop

is_prime_str: .cstr " is prime!\n"
Expand Down

0 comments on commit ae8a642

Please sign in to comment.