;Memory equates RAMChecksum EQU 0FFFEh ;word nextRAMoffset EQU 0FFFCh ;word, the location of the first free RAM for file storage nextRAMpage EQU 0FFFBh ;byte, the page of the first free RAM for file storage errorHandler EQU 0FFF9h ;word, the location to jump to when an error occurs (SP is reset too) stackStart EQU 0FFE0h stackBottom EQU 0FD00h plotsscreen EQU 0FA00h ;768 bytes flags EQU plotsscreen-37 ;37 bytes, system flags varTableEnd EQU flags-2 ;word cursorY EQU varTableEnd-1 ;byte cursorX EQU cursorY-1 ;byte contrast EQU cursorY-1 ;byte folderRAMmax EQU contrast-1 ;byte, this is the highest folder number currently existing keyCode EQU folderRAMmax-1 ;byte this is the keycode for _getscancode lastKey EQU keyCode-1 ;byte, this is the last key value returned spriteMask EQU lastKey-1 ;miscellaneous, used for sprite masks userInput EQU spriteMask-50 ;the user's input in the CLI, 50 bytes userInputLen EQU userInput-1 ;byte, this is the length of the user's input in the CLI folderCurrentRAM EQU userInputLen-1 ;byte, this is the current folder for the RAM interruptCount EQU folderCurrentRAM-1 ;byte, this is used to count IM 1s promptOffset EQU interruptCount-1 ;byte, this is used to store the X coordinate for the command prompt fileOP1 EQU promptOffset-11 ;11 bytes, this is a general-purpose file register ;In betweeen is reserved for future expansion variableTable EQU 0F900h ;Keypress equates skYEqu EQU 65h skWindow EQU 64h skZoom EQU 63h skTrace EQU 62h skGraph EQU 61h sk2nd EQU 66h skMode EQU 67h skDel EQU 68h skLeft EQU 02h skUp EQU 04h skRight EQU 02h skDown EQU 01h skAlpha EQU 58h skMath EQU 57h skInverse EQU 56h skSquared EQU 55h skLog EQU 54h skLn EQU 53h skSto EQU 52h skGraphvar EQU 48h skApps EQU 47h skSin EQU 46h skComma EQU 45h sk7 EQU 44h sk4 EQU 43h sk1 EQU 42h sk0 EQU 41h skStat EQU 38h skPrgm EQU 37h skCos EQU 36h skLParen EQU 35h sk8 EQU 34h sk5 EQU 33h sk2 EQU 32h skPeriod EQU 31h skVars EQU 27h skTan EQU 26h skRParen EQU 25h sk9 EQU 24h sk6 EQU 23h sk3 EQU 22h skNegative EQU 21h skClear EQU 17h skPower EQU 16h skDivide EQU 15h skMultiply EQU 14h skMinus EQU 13h skPlus EQU 12h skEnter EQU 11h ;Flags equates keyFlags EQU 0 ;Flags dealing with keypresses alphaOn EQU 0 ;Set if ALPHA-lock is on, reset if off onKey EQU 1 ;Set if ON has been pressed...programs must reset this themselves memoryFlags EQU 1 ;Flags for memory/disk use driveActive EQU 0 ;0 for flash, 1 for RAM miscFlags EQU 2 ;Flags that weren't like enough to get a whole byte cursorEnabled EQU 0 ;1 if the cursor is enabled cursorOn EQU 1 ;1 if the cursor is currently on stupidFlags EQU 37 flashWrite EQU 1 ;Needed to write flash for boot page routines ;RST routines rLCD_Delay EQU 08h rMovToFileOP1 EQU 20h rInterrupt EQU 38h