21 lines
465 B
Plaintext
21 lines
465 B
Plaintext
|
.ifndef INCLUDE_SLEEP
|
||
|
INCLUDE_SLEEP = 1
|
||
|
|
||
|
.import sleep
|
||
|
|
||
|
.code
|
||
|
;********************************************************************************
|
||
|
; @macro Sleep
|
||
|
; @param time_cs: Time to sleep in centiseconds (10^-2s = 10ms)
|
||
|
; @details
|
||
|
; Interrupts might change the actual time to finish
|
||
|
;********************************************************************************
|
||
|
.macro Sleep time_cs
|
||
|
phx
|
||
|
ldx #time_cs
|
||
|
jsr sleep
|
||
|
plx
|
||
|
.endmacro
|
||
|
|
||
|
.endif ; guard
|