2 ; Maciej 'YTM/Elysium' Witkowiak
6 ; void Sleep (int jiffies);
12 .include "jumptab.inc"
13 .include "geossym.inc"
16 jsr Sleep ; call Sleep
18 txs ; restore stack pointer
19 jmp (ptr1) ; when timeouts control will reach here
27 sta ptr1+1 ; preserve return address
30 inc ptr1+1 ; fix return address
32 stx tmp1 ; preserve stack pointer
33 jsr _SleepExit ; call Sleep
34 jmp MainLoop ; immediate return here - go to idle loop