Calculator Community > ASM

Using APD in your program

<< < (2/2)

E37:

--- Quote from: Xeda112358 on October 18, 2019, 10:36:34 am ---As long as the user doesn't disable the RAM execution limit, you could `jp $C000` and that automatically crashes the calc.

--- End quote ---
I have no problems resetting ram. Im trying to set up memory so that IF the os regains control, the calc will crash but if the programs gets control I can recover and easily undo whatever I did. Like setting the floating point stack to somewhere random. That wouldn't result in an instant crash for a program (and is easy to set back to the right value) but if the OS got control with the pointer to the floating point stack set to some garbage location it would crash. (Im not entirely sure that is how the floating point stack works since I have never really messed with it)

Xeda112358:
Oh, I see what you mean. I know there must be a better way, but maybe set up a context hook that is just

--- Code: ---.db $83
rst 0

--- End code ---
This way it always crashes if the "context" changes.
http://wikiti.brandonw.net/index.php?title=83Plus:BCALLs:502C

The "apps" that it refers to are, for example, the program editor, homescreen, and others. You can find them in the ti83plus.inc file in the section of equates that start with "cx" (not "_cx" !)

Navigation

[0] Message Index

[*] Previous page

Go to full version