0x10code icon indicating copy to clipboard operation
0x10code copied to clipboard

Clock will not jump with IAS

Open hfxdesign opened this issue 12 years ago • 2 comments

Clock WILL NOT jump to a subroutine specified by IAS [subroutine]. Has a tendency to RFI to beginning of entire program as well. I think IAS might just be broken.

hfxdesign avatar Oct 19 '12 01:10 hfxdesign

IAS works fine. Perhaps you aren't turning the clock on? To enable the clock, you have to use interrupt 0.

Basically, set A to 0 to specify interrupt 0. Then, set B to the frequency that you want the clock to tick at (it will tick 60/B times per second). Finally, call HWI.

Then you enable interrupts on the clock. Set A to 2, B to the interrupt message, and call HWI.

Here's an example.

cassiebeckley avatar Nov 05 '12 20:11 cassiebeckley

Yikes, that's hypnotic.

cassiebeckley avatar Nov 05 '12 20:11 cassiebeckley