A83: Re: Re: Assembly-83 Digest V1 #466


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

A83: Re: Re: Assembly-83 Digest V1 #466




I'm not 100% sure, but I think if you exchange all the registers then push
them all, you can run an entire program. After the program is finished,
simply pop all the registers. The program should do an im 1 at the beginning
though to prevent it from starting more than once which would cause all the
stack space to be used up. You'd also have to preserve any values the
program you run uses (currow, op1, etc) in case the calculator was using
those at the time. Probably more work that it would be worth...

The key press is stored at $8001 on the TI-83.  The values are the same as
those returned in register a by getk I believe.

Joe Wingbermuehle
http://www.usmo.com/~joewing/

-----Original Message-----
From: Ian Graf <ian_graf@geocities.com>
To: assembly-83@lists.ticalc.org <assembly-83@lists.ticalc.org>
Date: Wednesday, September 09, 1998 10:06 PM
Subject: A83: Re: Assembly-83 Digest V1 #466


>
>>Is it possiable to make a interupt-based program call another program,
>>and have the program work normaly?  I know that from within the interupt
>>program you have to do everything from direct access to the calc, but
>>can it call programs that use the calc's functions?
>
>no. one, interrupts are supposed to only take a fraction of a second.
>running an entire program would definately cause a crash. two, even if a
>seperate program is running, the calculator would still be subject to
>all the normal problems. because, after all the program would be running
>on the same calculator.
>
>
>>Also is it possiable to make the calculator think a key was pressed.
>>(it wasent pressed, but make the TI-OS think it was)
>
>yes. the normal interrupt routine ($0038) checks for key presses, and if
>it detects any they are stored in a memory location. on the 82 its at
>$8000. the only problem is there are also many other factors. the
>translated scancode of key currently pressed, the flag if more than one
>key is pressed, and the countdown until keyrepeat. i don't know what are
>legal values for these locations, but i bet pat does (he worked on the
>83 if you didn't know).
>