mirror of
https://github.com/deater/dos33fsprogs.git
synced 2024-07-24 18:29:22 +00:00
d0a2b111c0
had to re-arrange thigns a bit also fix ESCAPE to work again in intro
38 lines
389 B
ArmAsm
38 lines
389 B
ArmAsm
;====================================
|
|
; wait for keypress or a few seconds
|
|
;====================================
|
|
; A is length to wait
|
|
|
|
wait_a_bit:
|
|
|
|
bit KEYRESET
|
|
tax
|
|
|
|
keyloop:
|
|
lda #200 ; delay a bit
|
|
jsr WAIT
|
|
|
|
lda KEYPRESS
|
|
bmi done_keyloop
|
|
|
|
dex
|
|
bne keyloop
|
|
beq no_escape
|
|
|
|
done_keyloop:
|
|
|
|
and #$7f
|
|
cmp #27
|
|
bne no_escape
|
|
|
|
inc ESC_PRESSED
|
|
no_escape:
|
|
|
|
bit KEYRESET
|
|
|
|
rts
|
|
|
|
|
|
|
|
|