Page 1 of 1

Register-less Interruptus

Posted: Thu Oct 01, 2009 9:53 am
by Twilighte
Purely as an exploration(atm) i wondered what range of operations could be performed on the system through an interrupt without using x,y or a register.
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..

Code: Select all

      BIT DirFlag
      BMI
      INC PortA
      JMP skip1
      DEC PortA
skip1 ASL DirFlag
      BCC skip2
      ROL DirFlag
skip2
Or something like this?