Register-less Interruptus

Here you can ask questions or provide insights about how to use efficiently 6502 assembly code on the Oric.
Post Reply
User avatar
Twilighte
Game master
Posts: 819
Joined: Sat Jan 07, 2006 12:07 am
Location: Luton, UK
Contact:

Register-less Interruptus

Post by Twilighte » Thu Oct 01, 2009 9:53 am

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?

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests