mirror of
https://github.com/ksherlock/itty-bitty-vtty.git
synced 2024-11-21 05:31:06 +00:00
use the power of external constants to generate a block count.
This commit is contained in:
parent
f458f27860
commit
874929a085
5
boot.S
5
boot.S
@ -10,7 +10,7 @@
|
||||
* org $0800
|
||||
|
||||
ORG equ $6000
|
||||
MAX_BLOCK equ 6
|
||||
*MAX_BLOCK equ 6
|
||||
|
||||
|
||||
SLOT equ $00
|
||||
@ -20,6 +20,7 @@ BUFFER equ $44
|
||||
BLOCK equ $46
|
||||
|
||||
ext main
|
||||
ext MAXBLOCKS
|
||||
boot
|
||||
mx %11
|
||||
|
||||
@ -86,7 +87,7 @@ boot
|
||||
inc BUFFER+1
|
||||
inc BUFFER+1
|
||||
lda BLOCK
|
||||
cmp #MAX_BLOCK+1
|
||||
cmp #MAXBLOCKS
|
||||
bcc :read
|
||||
bra :ok
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user