Re: A86: state flags


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

Re: A86: state flags




1) no, all the safe space was used up by the last guy who asked that
question.  one place i'll bet no one uses is the start of ram page 7
(except now everyone will use it and your program won't work if somebody
else's program is on the calc).  the calc will only use this space if the
vat table (var names only) gets big (close to 16k).  if you've got that
many vars on your calc, chances are memory is full anyway and nothing
will run.

2) write a sqrtKEY program instead, hack _cxMain, or check _kbdScanCode
or _kbdkey (calling _getcsc would do the trick)

-josh

On Mon, 08 Nov 1999 16:34:59 -0800 Cassady Roop <croop@oregontrail.net>
writes:
>
>hmmm... that sounds rather complicated.  I now have two questions:
>1)  Yeah, I know, this is one of the most asked questions on the 
>list,
>but I deleted most of them...  Is there any place in memory that is
>relatively safe, even after your program has run?  I'm making an
>interrupt TSR that may take up more than 200 bytes, but I don't want 
>to
>be dependent on a PRGM variable or anything.  Hopefully I could store 
>my
>extra code somewhere that the calc doesn't use. Is there such a 
>place?
>
>2)  How would I go about detecting a specific keypress at the 
>homescreen
>from inside an interrupt TSR?  I don't suppose there's a temporary
>keypress buffer or something?
>
>Thanks,
>
>Cassady Roop
>
>Joshua J Seagoe wrote:
>> 
>> changing _CXCURAPP would not actually change what the current 
>running
>> application is, it's only there for a quick way to figure it out.  
>if you
>> actually wanted to change state, you would need to change the six 
>_cx...
>> pointers and the context state flags under (iy+something), for most 
>apps,
>> there are rom calls to set them up (at least partially)
>> technically, i wouldn't really call _CXCURAPP a flag, it's a byte 
>sized
>> variable identifying the current application context.  (blah, blah,
>> blah...)
>> 
>> -josh
>> 
>> On Mon, 08 Nov 1999 06:55:37 -0800 Cassady Roop 
><croop@oregontrail.net>
>> writes:
>> >
>> >so those state flags, like _CXCURAPP, tell the calc where it is...
>> >
>> >Does that have values corresponding to apps like the PRGM menu and
>> >the
>> >POLY, SIMULT, and others?  If I loaded, say, the value for the 
>PRGM
>> >menu
>> >to this location, and then exited my program, would the PRGM menu 
>be
>> >brought up?  Also, if it were already in the prgm menu, and I 
>loaded
>> >a
>> >different value, like the homescreen, each time the user tried to 
>go
>> >to
>> >the program menu, would it seem to them like the PRGM button had
>> >stopped
>> >working?
>> >
>> >Cassady Roop
>> >
>> 
>> ___________________________________________________________________
>> Get the Internet just the way you want it.
>> Free software, free e-mail, and free Internet access for a month!
>> Try Juno Web: http://dl.www.juno.com/dynoget/tagj.
>

___________________________________________________________________
Get the Internet just the way you want it.
Free software, free e-mail, and free Internet access for a month!
Try Juno Web: http://dl.www.juno.com/dynoget/tagj.