[A86] Weird interrupts problem


[Prev][Next][Index][Thread]

[A86] Weird interrupts problem




I've been working on a TI-86 program that uses ports to read keys, and
updates the screen whenever a key is released.  My key handling
routine was having lots of really strange bugs, but after about an
hour of experimenting I discovered it worked only if interrupts were
disabled.  I really don't want to turn interrupts off, but it seems
that some interrupt routine is altering the flags, and I didn't think
they were meant to do that.

http://www.btinternet.com/~mike_r/hw.asm is the current code, it's not
finished but it is working.  Try deleting the di on line 56 and see
what happens.

Is there any way to prevent this problem while keeping interrupts
enabled?

I'm using rom version 1.5.  Thanks for any help.




Follow-Ups: