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

Re: Why is this code exiting to the basic prompt?



BLuRry <brendan.robert@gmail.com> wrote:

> 
> Because I was going off the SSC reference guide, and assumed the //c
> was basically similar **whoops**, this whole buffering thing eluded me.

> But man, talk about STRANGE.  I never thought I would see a BPL fail to
> work normally.  Makes me wonder how [and/or if] that whole buffering
> code works to begin with!

BLuRry, guess what ?
The interrupts coming from the ACIA are being generated by...

KEYSTROKES !!!

That's why this

248B: LDA $c010 ;clear strobe
248E: LDA $c000 ;get key
2491: BPL $248E ;wait for keypress
2493: LDA $c010 ;clear strobe

misbehaved so badly...

I'm discovering it all in the IIc tech. ref. manual : both keystrokes
*and* accesses to $c010 generate interrupts through the ACIA...

-- 
Jorge Chamorro Bieling