Skip to content

Commit ae8a642

Browse files
updated for minimal 64x4 bug fix
1 parent 8219b4d commit ae8a642

File tree

3 files changed

+1
-15
lines changed

3 files changed

+1
-15
lines changed

examples/slu4-minimal-64x4/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ The following instruction macros have been added in the ISA configuration file f
5353
| `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 |
5454
| `mll` | abs address | abs address | Copies a 4 byte long at the first absolute address to the 4 bytes at the second absolute address |
5555
| `miq` | immediate | zero page address | Copies an immediate 4-byte long to a zero page long |
56-
| `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. |
5756

5857
### Assembly Syntax
5958
**BespokeASM**'s syntax is close to the syntax that Carsten used for the Minimal 64x4's assembly language. However, there are some differences:

examples/slu4-minimal-64x4/slu4-minimal-64x4.yaml

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3016,16 +3016,3 @@ macros:
30163016
instructions:
30173017
- "miv @ARG(0) & $0000FFFF ,@ARG(1)+0"
30183018
- "miv (@ARG(0) & $FFFF0000) >> 16,@ARG(1)+2"
3019-
inq_:
3020-
# increment zero-page long. This macro exists because the built-in instruction INQ has a bug.
3021-
- operands:
3022-
count: 1
3023-
operand_sets:
3024-
list:
3025-
- zero_page
3026-
instructions:
3027-
- "inv @ARG(0)+0"
3028-
- "ldi 0"
3029-
- "ac.z @ARG(0)+2"
3030-
- "ldi 0"
3031-
- "ac.z @ARG(0)+3"

examples/slu4-minimal-64x4/software/primes.min64x4

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ start:
2727
phsptr is_prime_str jps _PrintPtr pls2
2828
; jps _WaitInput
2929
.increment_n:
30-
inq_ _n_value
30+
inq _n_value
3131
jpa .n_loop
3232

3333
is_prime_str: .cstr " is prime!\n"

0 commit comments

Comments
 (0)