diff --git a/compiler/res/prog8lib/cx16/syslib.p8 b/compiler/res/prog8lib/cx16/syslib.p8 index ea4124c0b..7fb5cb991 100644 --- a/compiler/res/prog8lib/cx16/syslib.p8 +++ b/compiler/res/prog8lib/cx16/syslib.p8 @@ -70,7 +70,9 @@ asmsub RDTIM16() -> uword @AY { ; -- like RDTIM() but only returning the lower 16 bits in AY for convenience %asm {{ phx + sei jsr cbm.RDTIM + cli pha txa tay @@ -933,9 +935,13 @@ _loop lda P8ZP_SCRATCH_W1 plx rts -+ jsr cbm.RDTIM ++ sei + jsr cbm.RDTIM + cli sta P8ZP_SCRATCH_B1 -- jsr cbm.RDTIM +- sei + jsr cbm.RDTIM + cli cmp P8ZP_SCRATCH_B1 beq -