Posted By
gerliczer on 2023-10-14 13:10:14
| Re: program a timer
It is not too complicated. Set the timer you want as an interrupt source in the Interrupt Control Register ($FF09) and set the timer value in the corresponding Timer Register ($FF00/$FF01|$FF02/$FF03|$FF04/$FF05). I'm not sure which is the correct write sequence high-low or low-high, that you should find in some documentation. The first timer is repeating, the other two are on shot types and they will continue with a full cycle after finishing. There is a simple description of TED Registers in the Plus/4 Encyclopedia under the Programming/Assembly section. Csabo has an example for one in Defiance's music routine.
|