This commit is contained in:
2024-08-07 09:12:07 -04:00
parent ca445435a0
commit fdfadd5c7e
1021 changed files with 73601 additions and 0 deletions

26
as68hc11/code/macros.inc Normal file
View File

@@ -0,0 +1,26 @@
DELAY10 equ * ; 10ms delay @ 2.1 mhz
pshy ; save register y
ldy 0BB8h ; load loop counter into y register
DELAY10LOOP equ * ; loop counter sync address
dey ; decrement counter
bne DELAY10LOOP ; loop until zero in y
puly ; restore register y
rts ; return to caller
DELAY1K equ * ; 1000ms delay @ 2.1 mhz
pshy ; save register y
ldy 0Ah ; load 10d into register y
DELAY1KLP equ * ; loop counter sync address
bsr DELAY100 ; call 100 ms delay
dey ; decrement register y
bne DELAY1KLP ; continue
puly ; restore register y
rts ; return to caller
DELAY100 equ * ; 100 ms @ 2.1 mhz
pshx ; save register x
ldx 07530h ; load loop counter into register x
DELAY100LP equ * ; loop counter sync address
dex ; decrement register x
bne DELAY100LP ; continue
pulx ; restore register x
rts ; return to caller