6502-OS/programs/sleep.h65

21 lines
465 B
Plaintext
Raw Normal View History

2023-12-16 02:41:19 +01:00
.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