3 ; Maciej 'YTM/Elysium' Witkowiak
8 ; void Sleep (int jiffies);
13 .include "jumptab.inc"
14 .include "geossym.inc"
19 jsr Sleep ; call Sleep
21 txs ; restore stack pointer
22 jmp (ptr1) ; when timeouts control will reach here
30 sta ptr1+1 ; preserve return address
33 inc ptr1+1 ; fix return address
35 stx tmp1 ; preserve stack pointer
36 jsr _SleepExit ; call Sleep
37 jmp MainLoop ; immediate return here - go to idle loop