DAWN !! you're right
I wonder what it works despite this massive design mistake .. how weird ..
DAWN !! you're right
Code: Select all
from LetItWhip import Out
Code: Select all
python util\genbuf.py
Code: Select all
osdk_build.bat && osdk_execute.bat
is it better that way ?Dbug wrote: ↑Sat Aug 07, 2021 7:52 pmIf you save registers like that, your IRQ is not reentrant, they will overwrite the status.jbperin wrote: ↑Sat Aug 07, 2021 7:44 pm This is why I put the bit $304 just after the jsr TASK_4KHZ and before the 25Hz stuffs in the irq_handler.Code: Select all
;Preserve registers sta irq_A: stx irq_X: sty irq_Y jsr TASK_4KHZ ; TASK_4KHZ_4BITS ; bit $304
For reentrant IRQ you need to use different locations for the various calls, generally done using the stack.
I removed the useless saving of registers here