Last active
May 8, 2024 20:27
-
-
Save gnacu/5d9d85b5b80a3025a4e8ac3e4fa70bef to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.include "//os/h/:modules.h" | |
#inc_k "io" | |
#inc_s "file" | |
*=2000 | |
loop ldx #2 | |
jsr chkin | |
jsr chrin | |
ldy status | |
cmp #64 | |
bcc output | |
cmp #96 | |
bcs notblk3 | |
;clc ... carry is already clear | |
adc #128 | |
bne output | |
notblk3 | |
;sec ... carry is already set | |
sbc #32 | |
output pha | |
jsr clrchn | |
ldx #3 | |
jsr chkout | |
pla | |
jsr chrout | |
jsr clrchn | |
cpy #0 | |
beq loop | |
rts |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment