For example i know we can check the interrupt that occurs using BIT followed by a branch (neither affecting registers).
We can also reset the IRQ with CMP or BIT.
One example is generating a triangle wave on Port A..
Or something like this?
Code: Select all
BIT DirFlag BMI INC PortA JMP skip1 DEC PortA skip1 ASL DirFlag BCC skip2 ROL DirFlag skip2