0 Members and 1 Guest are viewing this topic.
Depends on the model! On the models with crystal timers yes, On the models with out sadly no.
Interrupt:exx64 loop for yld i,(breakSave) // change the interrupt location (I know you can't just set I)12 loop for xset interrupt to trigger in ~25 clock ticks (15 for next 2 instructions and 10 for after)exxret//go and execute 1 or 2 instructions while we wait for the lcd to be readybreakSave: //when the interrupt triggers it will jump to right hereexxout ($10),a // write to the lcdendXLoop:endyLoop:ld i,(Interrupt) // restore the interrupt locationexxret
I believe there is a way to set an interrupt on a certain number of cpu cycles having elapsed. I haven't ever used it, though.http://wikiti.brandonw.net/index.php?title=83Plus:Ports:30From what I understand about the timers, you could set the counter to 15, and the on/off port to 0x80 to get interrupts every 15 ticks.