0 Members and 1 Guest are viewing this topic.
This is kind of a bad idea in general, because you won't be able to respond to an interrupt in 16 clock cycles.
ld A,$88out ($30),A
I wouldn't trust this as I've never tried it before but what I got for setting the timers at cpu speed /16 was this:Code: [Select]ld A,$88out ($30),A
start: ex af, af' ld a, 3 ;3 because you want interrupts, and you want it to loop out ($31), a exx ;don't check for which interrupt caused ;only have timers enabled ;do something quick exx ex af, af' retend:
I may be wrong, but couldn't you get the exact number of cycles you wanted (up to 255 or maybe 256) by outputting the desired number of cycles to the counter port and setting the timer speed to the CPU clock speed?
Is that what you were originally asking about, Hot_Dog?