Merge branch 'v8_maintenance'

# Conflicts:
#	compiler/res/prog8lib/cx16/syslib.p8
#	examples/test.p8
This commit is contained in:
Irmen de Jong 2023-05-21 15:05:17 +02:00
commit b24f2f1756

View File

@ -70,7 +70,9 @@ asmsub RDTIM16() -> uword @AY {
; -- like RDTIM() but only returning the lower 16 bits in AY for convenience ; -- like RDTIM() but only returning the lower 16 bits in AY for convenience
%asm {{ %asm {{
phx phx
sei
jsr cbm.RDTIM jsr cbm.RDTIM
cli
pha pha
txa txa
tay tay
@ -933,9 +935,13 @@ _loop lda P8ZP_SCRATCH_W1
plx plx
rts rts
+ jsr cbm.RDTIM + sei
jsr cbm.RDTIM
cli
sta P8ZP_SCRATCH_B1 sta P8ZP_SCRATCH_B1
- jsr cbm.RDTIM - sei
jsr cbm.RDTIM
cli
cmp P8ZP_SCRATCH_B1 cmp P8ZP_SCRATCH_B1
beq - beq -