Saferam Areas ------------- Michael Vincent - michael@radicalsoft.org ** IMPORTANT! This document merely lists all areas available if your ASM program was running in the TI-OS. Ion, TSE, and MirageOS all use at least one of these areas for themselves. So check your documentation before using an area. ** Areas defined by TI: OP registers - 8478h - 66 bytes. Don't use any math calls. textmem - 8508h - 128 bytes. Used to keep a copy of the large font on screen by the TI-OS, but that's not needed in your program. cmdshadow - 966Eh - 128 bytes. Not sure, but it's safe to use. tempSwapArea - 82A5h - 323 bytes. If used, AVOID archiving variables in your program. (that's what this area is used for) iMathPtr1 - 84D3h - 10 bytes. Don't use math calls in your program. savesscreen - 86ECh - 768 bytes. Used during APD, disable APD in your program first with bcall(_disableapd). statvars - 8A3Ah - 531 bytes. Don't use statistics, and invalidate the results with bcall(_delres). appbackupscreen - 9872h - 768 bytes. Free to use. ** Undefined areas, possibly risky 8000h-8100h - 256 bytes - My examination seems to show that this area is only used during garbage collection. So don't archive any variables. FE6Ah-FF50h - 230 bytes - This is part of the 400 byte reserved stack space. Sort of a gamble that the stack doesn't need that much space. Most programs will never have enough calls or pushes to get the stack pointer down to FF50h so you can try it. If you have a lot of pushes on at one time (like 20 or so) then you might not want to store data up to FF50h. But you could go to FF00h or so, try with each program to see how much stack space you actually need. ** TOTAL FREE RAM If you add the space of every area listed in this document, and you run your ASM program from the TI-OS so you can use each one, you have 3 KB of free memory to use. That should be plenty for most ASM programs.