84PCE:OS:Include File

From WikiTI
Jump to: navigation, search

Equates

;TI-84 Plus CE Include File

;Various Parts Contributed by
;- BrandonW
;- calc84
;- tr1p1ea
;- MateoConLechuga
;- Texas Instruments (ti83plus.inc)
.nolist

#ifndef TI84PCE
#define TI84PCE

;Included for Assembler Compatibility
;------------------------------------
#define equ .equ
#define EQU .equ
#define end .end
#define END .end

;Hardware Defines
;------------------------------
lcdWidth		equ 320
lcdHeight		equ 240

;System Calls
;Jump Table located at 020104h
;--------------------------------
_OSSize			equ 0020104h
_BootOS			equ 0020108h
_intErrUptHandler	equ 002010Ch
_rst10Handler		equ 0020110h
_rst18Handler		equ 0020114h
_rst20Handler		equ 0020118h
_rst28Handler		equ 002011Ch
_rst30Handler		equ 0020120h
;0020124h
;0020128h
_JErrorNo		equ 002012Ch
_CallFontHook		equ 0020130h
_CallLocalizeHook	equ 0020134h
_LdHLInd_s		equ 0020138h
_cpHLDE			equ 002013Ch
_DivHLby10_s		equ 0020140h
_DivHLbyA_s		equ 0020144h
_KBDscan		equ 0020148h
_GetCSC			equ 002014Ch
_CoorMon		equ 0020150h
_Mon			equ 0020154h
_MonForceKey		equ 0020158h
_SendKPress		equ 002015Ch
_JForceCmdNoChar	equ 0020160h
_JForceCmd		equ 0020164h
_SysErrHandler		equ 0020168h
_NewContext		equ 002016Ch
_NewContext0		equ 0020170h
_PPutawayPrompt		equ 0020174h
_PPutAway		equ 0020178h
_PutAway		equ 002017Ch
_SizeWInd		equ 0020180h
_ErrorEP		equ 0020184h
_CallMain		equ 0020188h
_MonErrHand		equ 002018Ch
_AppInit		equ 0020190h
_Initialize		equ 0020194h
_Min			equ 0020198h
_Max			equ 002019Ch
_AbsO1PAbsO2		equ 00201A0h
_Intgr			equ 00201A4h
_TRunc			equ 00201A8h
_InvSub			equ 00201ACh
_Times2String		equ 00201B0h
_Plus1			equ 00201B4h
_Minus1			equ 00201B8h
_FPSub			equ 00201BCh
_FPAdd			equ 00201C0h
_DToR			equ 00201C4h
_RToD			equ 00201C8h
_Cube			equ 00201CCh
_TimesPT5		equ 00201D0h
_FPSquare		equ 00201D4h
_FPMult			equ 00201D8h
_LjRnd			equ 00201DCh
_InvOP1Sc		equ 00201E0h
_InvOP1S		equ 00201E4h
_InvOP2S		equ 00201E8h
_Frac			equ 00201ECh
_FPRecip		equ 00201F0h
_FPDiv			equ 00201F4h
_SqRoot			equ 00201F8h
_RndGuard		equ 00201FCh
_Rnfx			equ 0020200h
_Int			equ 0020204h
_Round			equ 0020208h
_LnX			equ 002020Ch
_LogX			equ 0020210h
_LjnoRnd		equ 0020214h
_EToX			equ 0020218h
_TenX			equ 002021Ch
_SinCosRad		equ 0020220h
_Sin			equ 0020224h
_Cos			equ 0020228h
_Tan			equ 002022Ch
_SinhCosh		equ 0020230h
_Tanh			equ 0020234h
_Cosh			equ 0020238h
_Sinh			equ 002023Ch
_AcosRad		equ 0020240h
_AtanRad		equ 0020244h
_Atan2Rad		equ 0020248h
_AsinRad		equ 002024Ch
_Acos			equ 0020250h
_Atan			equ 0020254h
_Asin			equ 0020258h
_Atan2			equ 002025Ch
_Atanh			equ 0020260h
_Asinh			equ 0020264h
_Acosh			equ 0020268h
_PToR			equ 002026Ch
_RTOP			equ 0020270h
_HLTimes9		equ 0020274h
_CkOP1Cplx		equ 0020278h
_CkOP1Real		equ 002027Ch
_Angle			equ 0020280h
_COP1Set0		equ 0020284h
_Cpop4OP3		equ 0020288h
_Mov9OP2cp		equ 002028Ch
_abso1o2cp		equ 0020290h
_cpop1OP2		equ 0020294h
_OP3ToOP4		equ 0020298h
_OP1ToOP4		equ 002029Ch
_OP2ToOP4		equ 00202A0h
_OP4ToOP2		equ 00202A4h
_OP3ToOP2		equ 00202A8h
_OP1ToOP3		equ 00202ACh
_OP5ToOP2		equ 00202B0h
_OP5ToOP6		equ 00202B4h
_OP5ToOP4		equ 00202B8h
_OP1ToOP2		equ 00202BCh
_OP6ToOP2		equ 00202C0h
_OP6ToOP1		equ 00202C4h
_OP4toOP1		equ 00202C8h
_OP5ToOP1		equ 00202CCh
_OP3ToOP1		equ 00202D0h
_OP6ToOP5		equ 00202D4h
_OP4ToOP5		equ 00202D8h
_OP3ToOP5		equ 00202DCh
_OP2ToOP5		equ 00202E0h
_OP2ToOP6		equ 00202E4h
_OP1ToOP6		equ 00202E8h
_OP1ToOP5		equ 00202ECh
_OP2ToOP1		equ 00202F0h
_Mov11b			equ 00202F4h
_Mov10b			equ 00202F8h
_Mov9b			equ 00202FCh
_Mov9b_duplicate	equ 0020300h
_Mov8b			equ 0020304h
_Mov7b			equ 0020308h
_Mov7b_duplicate	equ 002030Ch
_OP2toOP3		equ 0020310h
_OP4toOP3		equ 0020314h
_OP5toOP3		equ 0020318h
_OP4toOP6		equ 002031Ch
_mov9toOP1		equ 0020320h
_mov9OP1OP2		equ 0020324h
_mov9toOP2		equ 0020328h
_movfrOP1		equ 002032Ch
_OP4Set1		equ 0020330h
_OP3Set1		equ 0020334h
_OP2Set8		equ 0020338h
_OP2Set5		equ 002033Ch
_OP2Seta		equ 0020340h
_OP2Set4		equ 0020344h
_OP2Set3		equ 0020348h
_OP1Set1		equ 002034Ch
_OP1Set4		equ 0020350h
_OP1Set3		equ 0020354h
_OP3Set2		equ 0020358h
_OP1Set2		equ 002035Ch
_OP2Set2		equ 0020360h
_OP2Set1		equ 0020364h
_Zero16d		equ 0020368h
_OP5Set0		equ 002036Ch
_OP4Set0		equ 0020370h
_OP3Set0		equ 0020374h
_OP2Set0		equ 0020378h
_OP1Set0		equ 002037Ch
_SetNum0		equ 0020380h
_ZeroOP1		equ 0020384h
_ZeroOP2		equ 0020388h
_ZeroOP3		equ 002038Ch
_ZeroOP			equ 0020390h
_ClrLP			equ 0020394h
_ShrACC			equ 0020398h
_ShlACC			equ 002039Ch
_Shr18			equ 00203A0h
_Shr18a			equ 00203A4h
_Shr16			equ 00203A8h
_Shr14			equ 00203ACh
_Shl16			equ 00203B0h
_Shl14			equ 00203B4h
_Srdo1			equ 00203B8h
_ShrdRnd		equ 00203BCh
_MantPa			equ 00203C0h
_AddPrOP		equ 00203C4h
_AddPrOPlP		equ 00203C8h
_Add16d			equ 00203CCh
_Add14d			equ 00203D0h
_Sub16d			equ 00203D4h
_Sub14d			equ 00203D8h
_OP2exOP6		equ 00203DCh
_OP5exOP6		equ 00203E0h
_OP1exOP5		equ 00203E4h
_OP1exOP6		equ 00203E8h
_OP2exOP4		equ 00203ECh
_OP2exOP5		equ 00203F0h
_OP1exOP3		equ 00203F4h
_OP1exOP4		equ 00203F8h
_OP1exOP2		equ 00203FCh
_ExLP			equ 0020400h
_CkOP1c0		equ 0020404h
_CkOP1fp0		equ 0020408h
_CkOP2fp0		equ 002040Ch
_PosNo0Int		equ 0020410h
_CkPosInt		equ 0020414h
_CkInt			equ 0020418h
_CkOdd			equ 002041Ch
_CkOP1M			equ 0020420h
_GetCon1		equ 0020424h
_GetCon			equ 0020428h
_PIDiv2			equ 002042Ch
_PIDiv4			equ 0020430h
_TWOPI			equ 0020434h
_PICON			equ 0020438h
_ExpToHex		equ 002043Ch
_OP1expToDec		equ 0020440h
_CkOP2Pos		equ 0020444h
_CkOP1Pos		equ 0020448h
_ClrOP2s		equ 002044Ch
_ClrOP1s		equ 0020450h
_FDiv100		equ 0020454h
_FDiv10			equ 0020458h
_DecO1exp		equ 002045Ch
_IncO1exp		equ 0020460h
_Incexp			equ 0020464h
_CkValidNum		equ 0020468h
_GetExp			equ 002046Ch
_HtimesL		equ 0020470h
_EOP1notReal		equ 0020474h
_ThetaName		equ 0020478h
_RName			equ 002047Ch
_RegEqName		equ 0020480h
_ReCurnName		equ 0020484h
_XName			equ 0020488h
_YName			equ 002048Ch
_TName			equ 0020490h
_RealName		equ 0020494h
_SetEStoFPS		equ 0020498h
_ChkTempDirt		equ 002049Ch
_OP1mOP2exp		equ 00204A0h
_OP1expmDE		equ 00204A4h
_ChkErrBreak		equ 00204A8h
_Isa2ByteTok		equ 00204ACh
_GetLastEntry		equ 00204B0h
_GetLastEntryPtr	equ 00204B4h
_RegRclrChng		equ 00204B8h
_ResetWinTOP		equ 00204BCh
_IsO1nonTLstorProg	equ 00204C0h
_IsO1nonTempLst		equ 00204C4h
_Is_A_LstoRcLst		equ 00204C8h
_Chk_HL_999		equ 00204CCh
_Equ_or_NewEqu		equ 00204D0h
_Errd_OP1notpos		equ 00204D4h
_Errd_OP1not_r		equ 00204D8h
_Errd_OP1notposint	equ 00204DCh
_Errd_OP1_le_0		equ 00204E0h
_Errd_OP1_0		equ 00204E4h
_FindSym_Get_size	equ 00204E8h
_Sto_StatVar		equ 00204ECh
_Rcl_StatVar		equ 00204F0h
_ckOP2Real		equ 00204F4h
_Get_x_Indirect		equ 00204F8h
_MemChk			equ 00204FCh
_CmpPrgNamLen1		equ 0020500h
_CmpPrgNamLen		equ 0020504h
_FindProgSym		equ 0020508h
_ChkFindSym		equ 002050Ch
_FindSym		equ 0020510h
_InsertMem		equ 0020514h
_InsertMema		equ 0020518h
_EnoughMem		equ 002051Ch
_CmpMemneed		equ 0020520h
_createpVar4		equ 0020524h
_createpVar3		equ 0020528h
_createVar3		equ 002052Ch
_createcplx		equ 0020530h
_createReal		equ 0020534h
_createtrlIst		equ 0020538h
_createrlIst		equ 002053Ch
_createtclIst		equ 0020540h
_createclIst		equ 0020544h
_createtrmat		equ 0020548h
_creatermat		equ 002054Ch
_createtStrng		equ 0020550h
_createStrng		equ 0020554h
_create0Equ		equ 0020558h
_createtEqu		equ 002055Ch
_createEqu		equ 0020560h
_creategdb		equ 0020564h
_createProg		equ 0020568h
_ChkDel			equ 002056Ch
_ChkDela		equ 0020570h
_Adjparser		equ 0020574h
_Adjmath		equ 0020578h
_Adjm7			equ 002057Ch
_DelMema		equ 0020580h
_Get_Form_Num		equ 0020584h
_DelVar			equ 0020588h
_DelVario		equ 002058Ch
_DelMem			equ 0020590h
_DelVar3d		equ 0020594h
_DelVar3c		equ 0020598h
_DelVar3dc		equ 002059Ch
_Sym_Prog_non_t_Lst	equ 00205A0h
_AdjSymPtrs		equ 00205A4h
_datasizea		equ 00205A8h
_datasize		equ 00205ACh
_popmcplxo1		equ 00205B0h
_popmcplx		equ 00205B4h
_movcplx		equ 00205B8h
_popOP5			equ 00205BCh
_popOP3			equ 00205C0h
_popOP1			equ 00205C4h
_popRealo6		equ 00205C8h
_popRealo5		equ 00205CCh
_popRealo4		equ 00205D0h
_popRealo3		equ 00205D4h
_popRealo2		equ 00205D8h
_popRealo1		equ 00205DCh
_popReal		equ 00205E0h
_fpopcplx		equ 00205E4h
_fpopReal		equ 00205E8h
_fpopFPS		equ 00205ECh
_DeallocFPS		equ 00205F0h
_DeallocFPS1		equ 00205F4h
_AllocFPS		equ 00205F8h
_AllocFPS1		equ 00205FCh
_PushRealo6		equ 0020600h
_PushRealo5		equ 0020604h
_PushRealo4		equ 0020608h
_PushRealo3		equ 002060Ch
_PushRealo2		equ 0020610h
_PushRealo1		equ 0020614h
_PushReal		equ 0020618h
_PushOP5		equ 002061Ch
_PushOP3		equ 0020620h
_Pushmcplxo3		equ 0020624h
_PushOP1		equ 0020628h
_Pushmcplxo1		equ 002062Ch
_Pushmcplx		equ 0020630h
_exmcplxo1		equ 0020634h
_exch9			equ 0020638h
_CpyTo1FPS11		equ 002063Ch
_CpyTo2FPS5		equ 0020640h
_CpyTo1FPS5		equ 0020644h
_CpyTo2FPS6		equ 0020648h
_CpyTo1FPS6		equ 002064Ch
_CpyTo2FPS7		equ 0020650h
_CpyTo1FPS7		equ 0020654h
_CpyTo1FPS8		equ 0020658h
_CpyTo2FPS8		equ 002065Ch
_CpyTo1FPS10		equ 0020660h
_CpyTo1FPS9		equ 0020664h
_CpyTo2FPS4		equ 0020668h
_CpyTo6FPS3		equ 002066Ch
_CpyTo6FPS2		equ 0020670h
_CpyTo2FPS3		equ 0020674h
_Cpycto1FPS3		equ 0020678h
_CpyTo1FPS3		equ 002067Ch
_CpyFPS3		equ 0020680h
_CpyTo1FPS4		equ 0020684h
_CpyTo3FPS2		equ 0020688h
_CpyTo5FPSt		equ 002068Ch
_CpyTo6FPSt		equ 0020690h
_CpyTo4FPSt		equ 0020694h
_CpyTo3FPSt		equ 0020698h
_CpyTo2FPSt		equ 002069Ch
_CpyTo1FPSt		equ 00206A0h
_CpyFPSt		equ 00206A4h
_Cpystack		equ 00206A8h
_CpyTo3FPS1		equ 00206ACh
_CpyTo2FPS1		equ 00206B0h
_CpyTo1FPS1		equ 00206B4h
_CpyFPS1		equ 00206B8h
_CpyTo2FPS2		equ 00206BCh
_CpyTo1FPS2		equ 00206C0h
_CpyFPS2		equ 00206C4h
_Cpyo3toFPSt		equ 00206C8h
_Cpyo2toFPSt		equ 00206CCh
_Cpyo6toFPSt		equ 00206D0h
_Cpyo1toFPSt		equ 00206D4h
_CpyToFPSt		equ 00206D8h
_CpyTostack		equ 00206DCh
_Cpyo3toFPS1		equ 00206E0h
_Cpyo5toFPS1		equ 00206E4h
_Cpyo2toFPS1		equ 00206E8h
_Cpyo1toFPS1		equ 00206ECh
_CpyToFPS1		equ 00206F0h
_Cpyo2toFPS2		equ 00206F4h
_Cpyo3toFPS2		equ 00206F8h
_Cpyo6toFPS2		equ 00206FCh
_Cpyo1toFPS2		equ 0020700h
_CpyToFPS2		equ 0020704h
_Cpyo5toFPS3		equ 0020708h
_Cpyo2toFPS3		equ 002070Ch
_Cpyo1toFPS3		equ 0020710h
_CpyToFPS3		equ 0020714h
_Cpyo1toFPS6		equ 0020718h
_Cpyo1toFPS7		equ 002071Ch
_Cpyo1toFPS5		equ 0020720h
_Cpyo2toFPS4		equ 0020724h
_Cpyo1toFPS4		equ 0020728h
_ErrnotEnoughMem	equ 002072Ch
_FPSminus9		equ 0020730h
_HLminus9		equ 0020734h
_ErrOverflow		equ 0020738h
_ErrDivby0		equ 002073Ch
_ErrSingularMat		equ 0020740h
_ErrDomain		equ 0020744h
_ErrIncrement		equ 0020748h
_Errnon_Real		equ 002074Ch
_ErrSyntax		equ 0020750h
_ErrDataType		equ 0020754h
_ErrArgument		equ 0020758h
_ErrdimmIsmatch		equ 002075Ch
_Errdimension		equ 0020760h
_Errundefined		equ 0020764h
_ErrMemory		equ 0020768h
_Errinvalid		equ 002076Ch
_ErrBreak		equ 0020770h
_ErrStat		equ 0020774h
_ErrSignchange		equ 0020778h
_ErrIterations		equ 002077Ch
_ErrBadGuess		equ 0020780h
_ErrTolTooSmall		equ 0020784h
_ErrStatPlot		equ 0020788h
_ErrLinkXmit		equ 002078Ch
_JError			equ 0020790h
_noErrorEntry		equ 0020794h
_PushErrorhandler	equ 0020798h
_popErrorhandler	equ 002079Ch
_StrcOPy		equ 00207A0h
_Strcat_ez80		equ 00207A4h
_IsInSet		equ 00207A8h
_GeqNamea		equ 00207ACh
_RecName		equ 00207B0h
_Putmap			equ 00207B4h
_Putc			equ 00207B8h
_Disphl_s		equ 00207BCh
_Puts			equ 00207C0h
_Putpsb			equ 00207C4h
_Putps			equ 00207C8h
_wPutps			equ 00207CCh
_Putbuf			equ 00207D0h
_Putbuf1		equ 00207D4h
_wPutc			equ 00207D8h
_wPuts			equ 00207DCh
_wPutsEOL		equ 00207E0h
_wDispEOL		equ 00207E4h
_wHomeUp		equ 00207E8h
_SetNumWIndow		equ 00207ECh
_NewLine		equ 00207F0h
_MoveDown		equ 00207F4h
_ScrollUp		equ 00207F8h
_ShrinkWIndow		equ 00207FCh
_MoveUp			equ 0020800h
_ScrollDown		equ 0020804h
_Clrlcdfull		equ 0020808h
_Clrlcd			equ 002080Ch
_Clrscrnfull		equ 0020810h
_Clrscrn		equ 0020814h
_Clrtxtshd		equ 0020818h
_ClrWIndow		equ 002081Ch
_eraseEOL		equ 0020820h
_eraseEOW		equ 0020824h
_HomeUp			equ 0020828h
_GetCurloc		equ 002082Ch
_vPutmap		equ 0020830h
_vPuts			equ 0020834h
_vPutsn			equ 0020838h
_vPutsng		equ 002083Ch
_vPutsnt		equ 0020840h
_RunIndicon		equ 0020844h
_RunIndicoff		equ 0020848h
_SaveCmdShadow		equ 002084Ch
_SaveShadow		equ 0020850h
_RStrShadow		equ 0020854h
_RStrpartial		equ 0020858h
_RStrCurrow		equ 002085Ch
_RStrundermenu		equ 0020860h
_RStrbotrow		equ 0020864h
_GetKeypress		equ 0020868h
_GetTokLen		equ 002086Ch
_Get_Tok_Strng		equ 0020870h
_GetTokString		equ 0020874h
_Putbpatbuf2		equ 0020878h
_Putbpatbuf		equ 002087Ch
_Putbpat		equ 0020880h
_PutcChkScroll		equ 0020884h
_DispEOL		equ 0020888h
_FDispEOL		equ 002088Ch
_MakeRowCmd		equ 0020890h
_totoStrp		equ 0020894h
;0020898h
_DispDone		equ 002089Ch
_FinIshOutPut		equ 00208A0h
_CurBlink		equ 00208A4h
_Cursoroff		equ 00208A8h
_HideCursor		equ 00208ACh
_Cursoron		equ 00208B0h
_ShowCursor		equ 00208B4h
_KeyToString		equ 00208B8h
_PullDownChk		equ 00208BCh
_Menucatcommon		equ 00208C0h
_LoadCurcat		equ 00208C4h
_Ncifprgmedmode		equ 00208C8h
_LoadMenuNum		equ 00208CCh
_LoadMenuNuml		equ 00208D0h
_MenuEdKey		equ 00208D4h
_MenCatRet		equ 00208D8h
_NotAlphNum		equ 00208DCh
;00208E0h
;00208E4h
;00208E8h
;00208ECh
_DispLIstName		equ 00208F0h
_DispLAlphaName		equ 00208F4h
_AbortPrgmode		equ 00208F8h
_Is_FullCntx		equ 00208FCh
_AdrMRow		equ 0020900h
_AdrmeLE		equ 0020904h
_GetmatOP1A		equ 0020908h
_Getm1toOP1		equ 002090Ch
_Getm1tOP1A		equ 0020910h
_GetmtoOP1		equ 0020914h
_Puttom1a		equ 0020918h
_Puttoma1		equ 002091Ch
_PutToMat		equ 0020920h
_Mat_EL_Div		equ 0020924h
_CMatFun		equ 0020928h
_RowEch_Poly		equ 002092Ch
_RowEchelon		equ 0020930h
_AdrLELE		equ 0020934h
_Getl1ToOP1		equ 0020938h
_Getl1TOP1A		equ 002093Ch
_GetlToOP1		equ 0020940h
_Getl1ToOP2		equ 0020944h
_Getl1TOP2A		equ 0020948h
_Getl2TOP1A		equ 002094Ch
_PutTola1		equ 0020950h
_PutToL			equ 0020954h
_MaxMinLst		equ 0020958h
_LLow			equ 002095Ch
_LHigh			equ 0020960h
_LSum			equ 0020964h
_CumSum			equ 0020968h
_ToFrac			equ 002096Ch
_SeqSet			equ 0020970h
_SeqSolve		equ 0020974h
_Cmp_Num_Init		equ 0020978h
_BinopExec		equ 002097Ch
_ExMeanL		equ 0020980h
_Set2MVLPtrs		equ 0020984h
_SetMat1		equ 0020988h
_CreateTLIst		equ 002098Ch
_UnopExec		equ 0020990h
_ThreeExec		equ 0020994h
_ReStoreErrNo		equ 0020998h
_FourExec		equ 002099Ch
_FiveExec		equ 00209A0h
_CpyTo2ES1		equ 00209A4h
_CpyTo6ES1		equ 00209A8h
_CpyTo1ES1		equ 00209ACh
_CpyTo3ES1		equ 00209B0h
_CpyTo3ES2		equ 00209B4h
_CpyTo2ES2		equ 00209B8h
_CpyTo1ES2		equ 00209BCh
_CpyTo2ES3		equ 00209C0h
_CpyTo1ES3		equ 00209C4h
_CpyTo3ES4		equ 00209C8h
_CpyTo6ES3		equ 00209CCh
_CpyTo2ES4		equ 00209D0h
_CpyTo1ES4		equ 00209D4h
_CpyTo2ES5		equ 00209D8h
_CpyTo1ES5		equ 00209DCh
_CpyTo4ESt		equ 00209E0h
_CpyTo2ESt		equ 00209E4h
_CpyTo1ESt		equ 00209E8h
_CpyTo2ES6		equ 00209ECh
_CpyTo1ES6		equ 00209F0h
_CpyTo2ES7		equ 00209F4h
_CpyTo1ES7		equ 00209F8h
_CpyTo2ES8		equ 00209FCh
_CpyTo1ES8		equ 0020A00h
_CpyTo1ES9		equ 0020A04h
_CpyTo2ES9		equ 0020A08h
_CpyTo2ES10		equ 0020A0Ch
_CpyTo1ES10		equ 0020A10h
_CpyTo2ES11		equ 0020A14h
_CpyTo1ES11		equ 0020A18h
_CpyTo2ES12		equ 0020A1Ch
_CpyTo1ES12		equ 0020A20h
_CpyTo2ES13		equ 0020A24h
_CpyTo1ES13		equ 0020A28h
_CpyTo1ES14		equ 0020A2Ch
_CpyTo1ES16		equ 0020A30h
_CpyTo1ES17		equ 0020A34h
_CpyTo1ES18		equ 0020A38h
_CpyTo1ES15		equ 0020A3Ch
_CpyTo2ES15		equ 0020A40h
_CpyO1ToESt		equ 0020A44h
_CpyO1ToES1		equ 0020A48h
_CpyO6ToES1		equ 0020A4Ch
_CpyO6ToES3		equ 0020A50h
_CpyO1ToES2		equ 0020A54h
_CpyO2ToES2		equ 0020A58h
_CpyO1ToES3		equ 0020A5Ch
_CpyO1ToES4		equ 0020A60h
_CpyO1ToES5		equ 0020A64h
_CpyO1ToES6		equ 0020A68h
_CpyO1ToES7		equ 0020A6Ch
_CpyO2ToES4		equ 0020A70h
_CpyO2ToES5		equ 0020A74h
_CpyO2ToES6		equ 0020A78h
_CpyO2ToES7		equ 0020A7Ch
_CpyO2ToES8		equ 0020A80h
_CpyO2ToES9		equ 0020A84h
_CpyO1ToES8		equ 0020A88h
_CpyO1ToES9		equ 0020A8Ch
_CpyO1ToES10		equ 0020A90h
_CpyO1ToES11		equ 0020A94h
_CpyO1ToES12		equ 0020A98h
_CpyO1ToES13		equ 0020A9Ch
_CpyO1ToES14		equ 0020AA0h
_EvalF3A		equ 0020AA4h
_GetK			equ 0020AA8h
_SetTitle		equ 0020AACh
_DispVarVal		equ 0020AB0h
_RecallEd		equ 0020AB4h
_SetUpBuffer		equ 0020AB8h
_CreateNumEditBuf	equ 0020ABCh
_CallCommon		equ 0020AC0h
_CommonKeys		equ 0020AC4h
_LeftMore		equ 0020AC8h
_fDel			equ 0020ACCh
_fClear			equ 0020AD0h
_fInsDisp		equ 0020AD4h
_fInsDisp02		equ 0020AD8h
_SetIndicator		equ 0020ADCh
_dsplstsnor		equ 0020AE0h
_ReleaseBuffer		equ 0020AE4h
_VarNameToOP1HL		equ 0020AE8h
_NameToOP1		equ 0020AECh
_NumpPutAway		equ 0020AF0h
_NumReDisp		equ 0020AF4h
_NumError02		equ 0020AF8h
_Load_Sfont		equ 0020AFCh
_Sfont_Len		equ 0020B00h
_InitNumVec		equ 0020B04h
_SetxxOP1		equ 0020B08h
_SetxxOP2		equ 0020B0Ch
_SetxxxxOP2		equ 0020B10h
_uCLines		equ 0020B14h
_CLine			equ 0020B18h
_CLines			equ 0020B1Ch
_XrootY			equ 0020B20h
_YtoX			equ 0020B24h
;0020B28h
;0020B2Ch
;0020B30h
;0020B34h
;0020B38h
;0020B3Ch
;0020B40h
;0020B44h
;0020B48h
;0020B4Ch
;0020B50h
;0020B54h
;0020B58h
;0020B5Ch
;0020B60h
;0020B64h
;0020B68h
;0020B6Ch
_Mov18b			equ 0020B70h
_DarkLine		equ 0020B74h
_ILine			equ 0020B78h
_IPoint			equ 0020B7Ch
_XYRNDBOTH		equ 0020B80h
_XYRND			equ 0020B84h
_CheckTOP		equ 0020B88h
_CheckXY		equ 0020B8Ch
_DarkPnt		equ 0020B90h
_CPointS		equ 0020B94h
_WTOV			equ 0020B98h
_VtoWHLDE		equ 0020B9Ch
_Xitof			equ 0020BA0h
_YftoI			equ 0020BA4h
_XftoI			equ 0020BA8h
_TraceOff		equ 0020BACh
_GrRedisp		equ 0020BB0h
_GDISPTOKEN		equ 0020BB4h
_GRDECODA		equ 0020BB8h
_LABCOOR		equ 0020BBCh
_COORDISP		equ 0020BC0h
_TMPEQUNOSRC		equ 0020BC4h
_GRLABELS		equ 0020BC8h
_YPIXSET		equ 0020BCCh
_XPIXSET		equ 0020BD0h
_COPYRNG		equ 0020BD4h
_VALCUR			equ 0020BD8h
_GRPUTAWAY		equ 0020BDCh
_RSTGFLAGS		equ 0020BE0h
_GRReset		equ 0020BE4h
_XYCENT			equ 0020BE8h
_ZOOMXYCMD		equ 0020BECh
_CPTDELY		equ 0020BF0h
_CPTDELX		equ 0020BF4h
_SetFuncM		equ 0020BF8h
_SetSeqM		equ 0020BFCh
_SetPolM		equ 0020C00h
_SetParM		equ 0020C04h
_ZmInt			equ 0020C08h
_ZmDecml		equ 0020C0Ch
_ZmPrev			equ 0020C10h
_ZmUsr			equ 0020C14h
_SETUZM			equ 0020C18h
_ZmFit			equ 0020C1Ch
_ZmSquare		equ 0020C20h
_ZmTrig			equ 0020C24h
_SetXMinMax		equ 0020C28h
_ZooDefault		equ 0020C2Ch
;0020C30h
;0020C34h
;0020C38h
;0020C3Ch
;0020C40h
;0020C44h
;0020C48h
;0020C4Ch
;0020C50h
;0020C54h
_ChkTextCurs		equ 0020C58h
;0020C5Ch
_Dorefflags02		equ 0020C60h
_INITNSEQ		equ 0020C64h
_YRes			equ 0020C68h
_Ceiling		equ 0020C6Ch
_PutXY			equ 0020C70h
_PUTEQUNO		equ 0020C74h
_PdspGrph		equ 0020C78h
_HorizCmd		equ 0020C7Ch
_VertCmd		equ 0020C80h
_LineCmd		equ 0020C84h
_UnLineCmd		equ 0020C88h
_PointCmd		equ 0020C8Ch
_PixelTest  		equ 0020C90h
_PixelCmd		equ 0020C94h
_TanLnF			equ 0020C98h
_DRAWCMD_INIT		equ 0020C9Ch
_DrawCmd		equ 0020CA0h
_ShadeCmd		equ 0020CA4h
_InvCmd			equ 0020CA8h
_STATSHADE		equ 0020CACh
_dspmattable		equ 0020CB0h
_dsplsts		equ 0020CB4h
_closeEditBuf		equ 0020CB8h
_parseEditBuf		equ 0020CBCh
_PutSM			equ 0020CC0h
_DspCurTbl		equ 0020CC4h
_DSPGRTBL		equ 0020CC8h
_ZeroTemplate		equ 0020CCCh
_settblrefs		equ 0020CD0h
_dispTblBot		equ 0020CD4h
_DispTblTOP		equ 0020CD8h
_dispTblbody		equ 0020CDCh
_VPutBlank		equ 0020CE0h
_TBLTRACE		equ 0020CE4h
_DispLIstNameY		equ 0020CE8h
_CurNameLength		equ 0020CECh
_NameToBuf		equ 0020CF0h
_JpromptCursor		equ 0020CF4h
_BufLeft		equ 0020CF8h
_BufRight		equ 0020CFCh
_BufInsert		equ 0020D00h
_BufQueueChar		equ 0020D04h
_BufReplace		equ 0020D08h
_BufDelete		equ 0020D0Ch
_BufPeek		equ 0020D10h
_BufPeek1		equ 0020D14h
_BufPeek2		equ 0020D18h
_BufPeek3		equ 0020D1Ch
_BufToBtm		equ 0020D20h
_SetUpEditEqu		equ 0020D24h
_BufToTOP		equ 0020D28h
_IsEditFull		equ 0020D2Ch
_IsEditEmpty		equ 0020D30h
_IsAtTOP		equ 0020D34h
_IsAtBtm		equ 0020D38h
;0020D3Ch
_JCursorFirst		equ 0020D40h
_JCursorLast		equ 0020D44h
_JursorLeft		equ 0020D48h
_JCursorRight		equ 0020D4Ch
_JCursorUp		equ 0020D50h
_JursorDown		equ 0020D54h
_CursortooffSet		equ 0020D58h
_InsDisp		equ 0020D5Ch
_FDispBOL1		equ 0020D60h
_FDispBOL		equ 0020D64h
_DispEOW		equ 0020D68h
_DispHead		equ 0020D6Ch
_DispTail		equ 0020D70h
_PutTokString		equ 0020D74h
_SetUpEditCmd		equ 0020D78h
_SetEmptyeditEqu	equ 0020D7Ch
_SetEmptyEditPtr	equ 0020D80h
_CloseEditEqu		equ 0020D84h
_GetPrevTok		equ 0020D88h
_GetKey			equ 0020D8Ch
_canIndic		equ 0020D90h
;0020D94h
;0020D98h
;0020D9Ch
;0020DA0h
;0020DA4h
;0020DA8h
;0020DACh
;0020DB0h
;0020DB4h
;0020DB8h
;0020DBCh
;0020DC0h
;0020DC4h
;0020DC8h
;0020DCCh
;0020DD0h
;0020DD4h
;0020DD8h
;0020DDCh
;0020DE0h
;0020DE4h
;0020DE8h
;0020DECh
;0020DF0h
;0020DF4h
;0020DF8h
;0020DFCh
;0020E00h
;0020E04h
;0020E08h
;0020E0Ch
;0020E10h
;0020E14h
;0020E18h
;0020E1Ch
;0020E20h
;0020E24h
;0020E28h
;0020E2Ch
;0020E30h
;0020E34h
;0020E38h
;0020E3Ch
;0020E40h
;0020E44h
;0020E48h
;0020E4Ch
;0020E50h
;0020E54h
;0020E58h
_DelRes			equ 0020E5Ch
;0020E60h
;0020E64h
;0020E68h
;0020E6Ch
;0020E70h
;0020E74h
;0020E78h
;0020E7Ch
;0020E80h
;0020E84h
;0020E88h
;0020E8Ch
;0020E90h
;0020E94h
;0020E98h
;0020E9Ch
;0020EA0h
;0020EA4h
;0020EA8h
;0020EACh
;0020EB0h
_ret_Duplicate		equ 0020EB4h
;0020EB8h
;0020EBCh
;0020EC0h
;0020EC4h
;0020EC8h
;0020ECCh
;0020ED0h
;0020ED4h
;0020ED8h
;0020EDCh
;0020EE0h
;0020EE4h
;0020EE8h
;0020EECh
;0020EF0h
;0020EF4h
;0020EF8h
;0020EFCh
;0020F00h
_ParseOff		equ 0020F04h
;0020F08h
;0020F0Ch
;0020F10h
;0020F14h
;0020F18h
_OP2Set60		equ 0020F1Ch
_GetStatPtr		equ 0020F20h
_Cmp_StatPtr		equ 0020F24h
_VarSYSADR		equ 0020F28h
_StoSyStok		equ 0020F2Ch
_StoAns			equ 0020F30h
_StoTheta		equ 0020F34h
_StoR			equ 0020F38h
_StoY			equ 0020F3Ch
_StoN			equ 0020F40h
_StoT			equ 0020F44h
_StoX			equ 0020F48h
_StoOther		equ 0020F4Ch
_RclAns			equ 0020F50h
_RclY			equ 0020F54h
_RclN			equ 0020F58h
_RclX			equ 0020F5Ch
_RclVarSym		equ 0020F60h
_RclsyStok		equ 0020F64h
_StMatel		equ 0020F68h
_StLstvecel		equ 0020F6Ch
_convOP1		equ 0020F70h
_Find_parse_Formula	equ 0020F74h
_parse_Formula		equ 0020F78h
_StrngEnt1		equ 0020F7Ch
_Prgrdlp		equ 0020F80h
_VarEnt			equ 0020F84h
_ParseOnc		equ 0020F88h
_ParseOn		equ 0020F8Ch
_ParseCmd		equ 0020F90h
_StoType		equ 0020F94h
_CreatePair		equ 0020F98h
_PushNum		equ 0020F9Ch
_IncCurPCErrEnd		equ 0020FA0h
_ErrEnd			equ 0020FA4h
_CommaErrF		equ 0020FA8h
_CommaErr		equ 0020FACh
_StEQArg2		equ 0020FB0h
_StEQArg		equ 0020FB4h
_InpArg			equ 0020FB8h
_StEQArg3		equ 0020FBCh
_NxtFetch		equ 0020FC0h
_CkFetchVar		equ 0020FC4h
_FetchVarA		equ 0020FC8h
_FetchVar		equ 0020FCCh
_CkEndLin		equ 0020FD0h
_CkEndExp		equ 0020FD4h
_CkParsEnd		equ 0020FD8h
_StoTypeArg		equ 0020FDCh
_ConvDim		equ 0020FE0h
_ConvDim00		equ 0020FE4h
_AHEADEQUAL		equ 0020FE8h
_ParsaHeads		equ 0020FECh
_PARSAHEAD 		equ 0020FF0h
_AnsName		equ 0020FF4h
_STOCMPREALS		equ 0020FF8h
_GETDEPTR		equ 0020FFCh
_PUSH2BOPER		equ 0021000h
_POP2BOPER		equ 0021004h
_PUSHOPER		equ 0021008h
_POPOPER		equ 002100Ch
;0021010h
;0021014h
;0021018h
;002101Ch
;0021020h
;0021024h
;0021028h
;002102Ch
_Random			equ 0021030h
_StoRand		equ 0021034h
_RandInit		equ 0021038h
_ResetStacks		equ 002103Ch
;0021040h
;0021044h
;0021048h
;002104Ch
;0021050h
;0021054h
;0021058h
;002105Ch
;0021060h
;0021064h
;0021068h
;002106Ch
;0021070h
;0021074h
;0021078h
;002107Ch
;0021080h
;0021084h
;0021088h
;002108Ch
;0021090h
;0021094h
;0021098h
;002109Ch
;00210A0h
;00210A4h
;00210A8h
;00210ACh
;00210B0h
;00210B4h
;00210B8h
;00210BCh
;00210C0h
;00210C4h
;00210C8h
;00210CCh
;00210D0h
;00210D4h
;00210D8h
_MemClear		equ 00210DCh
_MemSet			equ 00210E0h
_PointOn		equ 00210E4h
_ExecuteNewPrgm		equ 00210E8h
_StrLength		equ 00210ECh
_VPutMapRec		equ 00210F0h
;00210F4h
;00210F8h
;00210FCh
;0021100h
;0021104h
;0021108h
;002110Ch
;0021110h
;0021114h
;0021118h
;002111Ch
_GetBaseVer		equ 0021120h
_SetLocDEtoFP0		equ 0021124h
;0021128h
_SetIgnoreKey		equ 002112Ch
_SetSendThIsKeyBack	equ 0021130h
_DisableAPD		equ 0021134h
_EnableAPD		equ 0021138h
_set2IY34		equ 002113Ch
_forcecmd		equ 0021140h
_ApdSetup		equ 0021144h
_Get_NumKey		equ 0021148h
_AppSetup		equ 002114Ch
_ReleaseSedit		equ 0021150h
_initsmalleditline	equ 0021154h
_startsmalledit		equ 0021158h
;002115Ch
_SGetTokString		equ 0021160h
_LoadPattern		equ 0021164h
_SStringLength		equ 0021168h
_RestorePenCol		equ 002116Ch
;0021170h
_EmptyHook		equ 0021174h
;0021178h
;002117Ch
;0021180h
;0021184h
;0021188h
;002118Ch
;0021190h
;0021194h
;0021198h
;002119Ch
;00211A0h
;00211A4h
;00211A8h
;00211ACh
;00211B0h
;00211B4h
;00211B8h
;00211BCh
;00211C0h
;00211C4h
;00211C8h
;00211CCh
;00211D0h
;00211D4h
;00211D8h
;00211DCh
;00211E0h
;00211E4h
;00211E8h
;00211ECh
_ret_Duplicate_2		equ 00211F0h
;00211F4h
;00211F8h
;00211FCh
;0021200h
;0021204h
;0021208h
_ErrAB			equ 002120Ch
_ErrAC			equ 0021210h
;0021214h
;0021218h
;002121Ch
;0021220h
;0021224h
;0021228h
;002122Ch
;0021230h
;0021234h
;0021238h
;002123Ch
;0021240h
;0021244h
;0021248h
;002124Ch
;0021250h
;0021254h
;0021258h
;002125Ch
;0021260h
;0021264h
;0021268h
;002126Ch
;0021270h
;0021274h
;0021278h
;002127Ch
;0021280h
;0021284h
;0021288h
;002128Ch
;0021290h
;0021294h
;0021298h
;002129Ch
;00212A0h
;00212A4h
;00212A8h
;00212ACh
;00212B0h
;00212B4h
;00212B8h
;00212BCh
;00212C0h
;00212C4h
;00212C8h
;00212CCh
;00212D0h
;00212D4h
;00212D8h
;00212DCh
;00212E0h
;00212E4h
;00212E8h
;00212ECh
;00212F0h
;00212F4h
;00212F8h
;00212FCh
;0021300h
;0021304h
;0021308h
;002130Ch
;0021310h
;0021314h
;0021318h
;002131Ch
_GetStringInput		equ 0021320h
_GetStringInput2	equ 0021324h
_WaitEnterKeyValue	equ 0021328h
_HorizontalLine		equ 002132Ch
_CreateAppVar		equ 0021330h
_CreateProtProg		equ 0021334h
_CreateVar		equ 0021338h
_AsmComp		equ 002133Ch
_GetAsmSize		equ 0021340h
_SquishPrgm		equ 0021344h
_ExecutePrgm		equ 0021348h
_ChkFindSymAsm		equ 002134Ch
_ParsePrgmName		equ 0021350h
_CAdd			equ 0021354h
_CSqaure		equ 0021358h
_CMult			equ 002135Ch
_CRecip			equ 0021360h
_CDiv			equ 0021364h
_CAbs			equ 0021368h
_AddSquares		equ 002136Ch
_CSqroot		equ 0021370h
_CLn			equ 0021374h
_CLog			equ 0021378h
_CTenX			equ 002137Ch
_CEtoX			equ 0021380h
_CXrootY		equ 0021384h
;0021388h
_CYtoX			equ 002138Ch
_InvertNonReal		equ 0021390h
_CplxMult		equ 0021394h
_CplxDiv		equ 0021398h
_CplxTrunc		equ 002139Ch
_CplxFrac		equ 00213A0h
_CplxFloor		equ 00213A4h
;00213A8h
_FlashWriteDisable	equ 00213ACh
_Disp			equ 00213B0h
_GetBytePaged_Unpaged	equ 00213B4h
_RunCursorHook		equ 00213B8h
_RunLibraryHook		equ 00213BCh
_RunRawkeyHook		equ 00213C0h
_SetCursorHook		equ 00213C4h
_SetLibraryHook		equ 00213C8h
_SetGetKeyHook		equ 00213CCh
_ClrCursorHook		equ 00213D0h
_ClrLibraryHook		equ 00213D4h
_ClrRawKeyHook		equ 00213D8h
;00213DCh
_getKeyHook		equ 00213E0h
_ClrGetKeyHook		equ 00213E4h
_SetCatalog2Hook	equ 00213E8h
_ClrCatalog2Hook	equ 00213ECh
_SetLocalizeHook	equ 00213F0h
_ClrLocalizeHook	equ 00213F4h
_SetTokenHook		equ 00213F8h
_ClrTokenHook		equ 00213FCh
;0021400h
;0021404h
_DispListElementOffLA	equ 0021408h
_Bit_VertSplit		equ 002140Ch
_SetHomescreenHook	equ 0021410h
_ClrHomescreenHook	equ 0021414h
_SetWIndowHook		equ 0021418h
_ClrWIndowHook		equ 002141Ch
_SetGraphModeHook	equ 0021420h
_ClrGraphModeHook	equ 0021424h
_ParseAndStoreSysVar	equ 0021428h
_DisplayEditSysVar	equ 002142Ch
_JForceWIndowSettings	equ 0021430h
_DelVarArc		equ 0021434h
_DelVarNoArc		equ 0021438h
_SetAllPlots		equ 002143Ch
_SetYeditHook		equ 0021440h
_ClrYeditHook		equ 0021444h
_Arc_Unarc		equ 0021448h
;002144Ch
;0021450h
_SetFontHook		equ 0021454h
_ClrFontHook		equ 0021458h
_SetRegraphHook		equ 002145Ch
_ClrRegraphHook		equ 0021460h
_RunGraphingHook	equ 0021464h
_SetTraceHook		equ 0021468h
_ClrTraceHook		equ 002146Ch
_RunTraceHook		equ 0021470h
_NDeriv			equ 0021474h
_PolarDerivative	equ 0021478h
_JForceGraphNoKey	equ 002147Ch
_JForceGraphKey		equ 0021480h
_PowerOff		equ 0021484h
_GetKeyRetOff		equ 0021488h
_FindGroUpSym		equ 002148Ch
_LoadDEIndPaged_Unpaged	equ 0021490h
_SetUpPagedPtr_Unpaged	equ 0021494h
_PagedGet_Unpaged	equ 0021498h
_SetParserHook		equ 002149Ch
_ClrParserHook		equ 00214A0h
_SetAppChangeHook	equ 00214A4h
_ClrAppChangeHook	equ 00214A8h
_SetGraphicsHook	equ 00214ACh
_ClrGraphicsHook	equ 00214B0h
_ILineNoGraphicsHook	equ 00214B4h
_ILineNoHook		equ 00214B8h
;00214BCh
_DeleteTempPrograms	equ 00214C0h
_SetCatalog1Hook	equ 00214C4h
_ClrCatalog1Hook	equ 00214C8h
_SetHelpHook		equ 00214CCh
_ClrHelpHook		equ 00214D0h
_DispCatalogEnd		equ 00214D4h
_GetMenuKeypress	equ 00214D8h
_GetCatalogItem		equ 00214DCh
_RunCatalog2Hook	equ 00214E0h
_RunCatalog1Hook	equ 00214E4h
;00214E8h
;00214ECh
_DispMenuTitle		equ 00214F0h
;00214F4h
_SetcxReDispHook	equ 00214F8h
_ClrcxReDispHook	equ 00214FCh
;0021500h
;0021504h
;0021508h
;002150Ch
;0021510h
;0021514h
_SetMenuHook		equ 0021518h
_ClrMenuHook		equ 002151Ch
_GetBCOffSetIX		equ 0021520h
;0021524h
_ForceFullScreen	equ 0021528h
_HLminus5		equ 002152Ch
;0021530h
;0021534h
;0021538h
_Arc_Unarc_Duplicate	equ 002153Ch
;0021540h
;0021544h
;0021548h
;002154Ch
;0021550h
;0021554h
;0021558h
;002155Ch
;0021560h
;0021564h
;0021568h
;002156Ch
;0021570h
;0021574h
;0021578h
;002157Ch
;0021580h
;0021584h
;0021588h
;002158Ch
;0021590h
;0021594h
;0021598h
;002159Ch
;00215A0h
;00215A4h
;00215A8h
;00215ACh
;00215B0h
_ClockOff		equ 00215B4h
_ClockOn		equ 00215B8h
;00215BCh
;00215C0h
;00215C4h
;00215C8h
;00215CCh
;00215D0h
;00215D4h
;00215D8h
;00215DCh
;00215E0h
;00215E4h
;00215E8h
;00215ECh
;00215F0h
;00215F4h
;00215F8h
;00215FCh
;0021600h
;0021604h
;0021608h
;002160Ch
;0021610h
;0021614h
;0021618h
;002161Ch
;0021620h
;0021624h
;0021628h
;002162Ch
;0021630h
;0021634h
;0021638h
;002163Ch
;0021640h
;0021644h
;0021648h
;002164Ch
;0021650h
;0021654h
;0021658h
;002165Ch
;0021660h
;0021664h
;0021668h
;002166Ch
;0021670h
;0021674h
;0021678h
;002167Ch
;0021680h
;0021684h
;0021688h
;002168Ch
;0021690h
;0021694h
;0021698h
;002169Ch
;00216A0h
_NumError02_Dup		equ 00216A4h
;00216A8h
;00216ACh
;00216B0h
;00216B4h
;00216B8h
;00216BCh
;00216C0h
;00216C4h
;00216C8h
;00216CCh
;00216D0h
;00216D4h
;00216D8h
;00216DCh
;00216E0h
;00216E4h
;00216E8h
;00216ECh
;00216F0h
;00216F4h
;00216F8h
;00216FCh
;0021700h
;0021704h
;0021708h
;002170Ch
;0021710h
;0021714h
;0021718h
;002171Ch
;0021720h
;0021724h
;0021728h
;002172Ch
;0021730h
;0021734h
;0021738h
;002173Ch
;0021740h
;0021744h
;0021748h
;002174Ch
;0021750h
;0021754h
;0021758h
;002175Ch
;0021760h
;0021764h
;0021768h
;002176Ch
;0021770h
;0021774h
;0021778h
;002177Ch
;0021780h
;0021784h
;0021788h
;002178Ch
;0021790h
;0021794h
;0021798h
;002179Ch
;00217A0h
;00217A4h
;00217A8h
;00217ACh
;00217B0h
;00217B4h
;00217B8h
;00217BCh
;00217C0h
;00217C4h
;00217C8h
;00217CCh
;00217D0h
;00217D4h
;00217D8h
;00217DCh
;00217E0h
;00217E4h
;00217E8h
;00217ECh
;00217F0h
;00217F4h
;00217F8h
;00217FCh
;0021800h
;0021804h
;0021808h
;002180Ch
;0021810h
;0021814h
;0021818h
;002181Ch
;0021820h
;0021824h
;0021828h
;002182Ch
;0021830h
;0021834h
;0021838h
;002183Ch
;0021840h
;0021844h
;0021848h
;002184Ch
;0021850h
;0021854h
;0021858h
;002185Ch
;0021860h
;0021864h
;0021868h
;002186Ch
;0021870h
;0021874h
;0021878h
;002187Ch
;0021880h
;0021884h
;0021888h
;002188Ch
;0021890h
;0021894h
;0021898h
;002189Ch
;00218A0h
;00218A4h
;00218A8h
;00218ACh
;00218B0h
;00218B4h
;00218B8h
;00218BCh
;00218C0h
;00218C4h
;00218C8h
;00218CCh
;00218D0h
;00218D4h
;00218D8h
;00218DCh
;00218E0h
;00218E4h
;00218E8h
;00218ECh
;00218F0h
;00218F4h
;00218F8h
;00218FCh
;0021900h
;0021904h
;0021908h
;002190Ch
;0021910h
;0021914h
;0021918h
;002191Ch
;0021920h
;0021924h
;0021928h
;002192Ch
;0021930h
;0021934h
;0021938h
;002193Ch
_commonKeys_Dup		equ 0021940h
;0021944h
;0021948h
;002194Ch
;0021950h
;0021954h
;0021958h
;002195Ch
;0021960h
;0021964h
;0021968h
;002196Ch
;0021970h
;0021974h
;0021978h
;002197Ch
;0021980h
;0021984h
;0021988h
;002198Ch
;0021990h
;0021994h
;0021998h
;002199Ch
;00219A0h
;00219A4h
;00219A8h
;00219ACh
;00219B0h
;00219B4h
;00219B8h
;00219BCh
;00219C0h
;00219C4h
;00219C8h
;00219CCh
;00219D0h
;00219D4h
;00219D8h
;00219DCh
;00219E0h
;00219E4h
;00219E8h
;00219ECh
;00219F0h
;00219F4h
;00219F8h
;00219FCh
;0021A00h
;0021A04h
;0021A08h
;0021A0Ch
;0021A10h
;0021A14h
;0021A18h
;0021A1Ch
;0021A20h
;0021A24h
;0021A28h
;0021A2Ch
;0021A30h
;0021A34h
;0021A38h
_DrawStatusBar		equ 0021A3Ch
;0021A40h
;0021A44h
;0021A48h
;0021A4Ch
;0021A50h
;0021A54h
;0021A58h
;0021A5Ch
;0021A60h
;0021A64h
;0021A68h
;0021A6Ch
;0021A70h
;0021A74h
;0021A78h
;0021A7Ch
;0021A80h
;0021A84h
;0021A88h
;0021A8Ch
;0021A90h
;0021A94h
;0021A98h
;0021A9Ch
;0021AA0h
;0021AA4h
;0021AA8h
;0021AACh
;0021AB0h
_DrawStatusBarInfo	equ 0021AB4h
;0021AB8h
;0021ABCh
;0021AC0h
;0021AC4h
;0021AC8h
;0021ACCh
;0021AD0h
;0021AD4h
;0021AD8h
;0021ADCh
;0021AE0h
_SetTextFGBGcolors	equ 0021AE4h
_SetTextBGcolor		equ 0021AE8h
;0021AECh
;0021AF0h
;0021AF4h
;0021AF8h
;0021AFCh
;0021B00h
;0021B04h
;0021B08h
;0021B0Ch
;0021B10h
;0021B14h
;0021B18h
;0021B1Ch
;0021B20h
;0021B24h
;0021B28h
;0021B2Ch
;0021B30h
;0021B34h
;0021B38h
;0021B3Ch
;0021B40h
;0021B44h
;0021B48h
;0021B4Ch
;0021B50h
;0021B54h
;0021B58h
;0021B5Ch
;0021B60h
;0021B64h
;0021B68h
;0021B6Ch
;0021B70h
;0021B74h
;0021B78h
;0021B7Ch
;0021B80h
;0021B84h
;0021B88h
;0021B8Ch
;0021B90h
;0021B94h
;0021B98h
;0021B9Ch
;0021BA0h
;0021BA4h
;0021BA8h
_GetColorValue		equ 0021BACh
;0021BB0h
;0021BB4h
;0021BB8h
;0021BBCh
;0021BC0h
;0021BC4h
;0021BC8h
;0021BCCh
;0021BD0h
;0021BD4h
;0021BD8h
;0021BDCh
;0021BE0h
;0021BE4h
;0021BE8h
;0021BECh
;0021BF0h
;0021BF4h
;0021BF8h
;0021BFCh
;0021C00h
;0021C04h
;0021C08h
;0021C0Ch
;0021C10h
;0021C14h
;0021C18h
;0021C1Ch
;0021C20h
;0021C24h
;0021C28h
;0021C2Ch
;0021C30h
;0021C34h
;0021C38h
;0021C3Ch
;0021C40h
;0021C44h
;0021C48h
;0021C4Ch
;0021C50h
_ret_6			equ 0021C54h
;0021C58h
;0021C5Ch
;0021C60h
;0021C64h
;0021C68h
_SetFuncMode		equ 0021C6Ch
;0021C70h
;0021C74h
;0021C78h
_popErrorhandler_Dup	equ 0021C7Ch
;0021C80h
;0021C84h
;0021C88h
;0021C8Ch
;0021C90h
;0021C94h
;0021C98h
;0021C9Ch
;0021CA0h
;0021CA4h
;0021CA8h
;0021CACh
;0021CB0h
;0021CB4h
;0021CB8h
;0021CBCh
;0021CC0h
;0021CC4h
;0021CC8h
;0021CCCh
;0021CD0h
;0021CD4h
;0021CD8h
;0021CDCh
;0021CE0h
;0021CE4h
;0021CE8h
;0021CECh
;0021CF0h
;0021CF4h
;0021CF8h
;0021CFCh
;0021D00h
;0021D04h
;0021D08h
;0021D0Ch
;0021D10h
;0021D14h
;0021D18h
;0021D1Ch
;0021D20h
;0021D24h
;0021D28h
;0021D2Ch
;0021D30h
;0021D34h
;0021D38h
;0021D3Ch
;0021D40h
;0021D44h
_ChkbcIs0		equ 0021D48h
_ChkdeIs0		equ 0021D4Ch
_ChkhlIs0		equ 0021D50h
_Setatobcu		equ 0021D54h
_Setatodeu		equ 0021D58h
_Setatohlu		equ 0021D5Ch
_Setbcutoa		equ 0021D60h
_Setbcutob		equ 0021D64h
_Setdeutoa		equ 0021D68h
_Setdeutob		equ 0021D6Ch
_Sethlutoa		equ 0021D70h
_Sethlutob		equ 0021D74h
_signextendbc		equ 0021D78h
_signextendde_broken	equ 0021D7Ch
_signextendhl_broken	equ 0021D80h
_Setbcuto0		equ 0021D84h
_Setdeuto0		equ 0021D88h
_Sethluto0		equ 0021D8Ch
_Divhlbya		equ 0021D90h
_cphlde_s		equ 0021D94h
_cphlde_Dup		equ 0021D98h
_loaddeInd_s		equ 0021D9Ch
_loaddeInd		equ 0021DA0h
_cphldebc		equ 0021DA4h
_negbc			equ 0021DA8h
_negde			equ 0021DACh
_StrCmpre		equ 0021DB0h
_addhlanda		equ 0021DB4h
;0021DB8h
;0021DBCh
_swapHLendian		equ 0021DC0h
;0021DC4h
;0021DC8h
;0021DCCh
;0021DD0h
;0021DD4h
;0021DD8h
;0021DDCh
;0021DE0h
;0021DE4h
;0021DE8h
;0021DECh
;0021DF0h
;0021DF4h
;0021DF8h
;0021DFCh
;0021E00h
;0021E04h
;0021E08h
;0021E0Ch
;0021E10h
;0021E14h
;0021E18h
;0021E1Ch
;0021E20h
;0021E24h
;0021E28h
;0021E2Ch
;0021E30h
;0021E34h
;0021E38h
;0021E3Ch
;0021E40h
;0021E44h
;0021E48h
;0021E4Ch
;0021E50h
;0021E54h
;0021E58h
;0021E5Ch
;0021E60h
;0021E64h
;0021E68h
;0021E6Ch
;0021E70h
;0021E74h
;0021E78h
;0021E7Ch
;0021E80h
;0021E84h
;0021E88h
;0021E8Ch
;0021E90h
;0021E94h
;0021E98h
;0021E9Ch
;0021EA0h
;0021EA4h
;0021EA8h
;0021EACh
;0021EB0h
;0021EB4h
;0021EB8h
;0021EBCh
;0021EC0h
;0021EC4h
;0021EC8h
;0021ECCh
;0021ED0h
;0021ED4h
;0021ED8h
;0021EDCh
_Disphl			equ 0021EE0h
;0021EE4h
;0021EE8h
;0021EECh
;0021EF0h
;0021EF4h
;0021EF8h
;0021EFCh
;0021F00h
;0021F04h
;0021F08h
;0021F0Ch
;0021F10h
;0021F14h
;0021F18h
;0021F1Ch
;0021F20h
;0021F24h
;0021F28h
;0021F2Ch
;0021F30h
;0021F34h
;0021F38h
;0021F3Ch
;0021F40h
;0021F44h
;0021F48h
;0021F4Ch
;0021F50h
;0021F54h
;0021F58h
;0021F5Ch
;0021F60h
;0021F64h
;0021F68h
;0021F6Ch
;0021F70h
;0021F74h
;0021F78h
;0021F7Ch
;0021F80h
;0021F84h
;0021F88h
;0021F8Ch
;0021F90h
;0021F94h
_Chkinram		equ 0021F98h
;0021F9Ch
;0021FA0h
;0021FA4h
;0021FA8h
;0021FACh
;0021FB0h
;0021FB4h
;0021FB8h
;0021FBCh
;0021FC0h
;0021FC4h
;0021FC8h
;0021FCCh
;0021FD0h
;0021FD4h
;0021FD8h
;0021FDCh
;0021FE0h
;0021FE4h
;0021FE8h
;0021FECh
;0021FF0h
;0021FF4h
;0021FF8h
;0021FFCh
;0022000h
;0022004h
;0022008h
;002200Ch
;0022010h
;0022014h
;0022018h
;002201Ch
;0022020h
;0022024h
;0022028h
;002202Ch
;0022030h
;0022034h
;0022038h
;002203Ch
;0022040h
;0022044h
;0022048h
;002204Ch
;0022050h
;0022054h
;0022058h
;002205Ch
;0022060h
;0022064h
;0022068h
;002206Ch
;0022070h
_mov11toOP1		equ 0022074h
;0022078h
;002207Ch
;0022080h
;0022084h
;0022088h
_ret			equ 002208Ch
;0022090h
;0022094h
_RunLocalizeHook	equ 0022098h
;002209Ch
;00220A0h
;00220A4h
_nmihandler		equ 00220A8h

;RAM Equates
;--------------------------------
flags			equ 0D00080h

kbdScanCode		equ 0D00587h
kbdLGSC			equ 0D00588h
kbdPSC			equ 0D00589h
kbdWUR			equ 0D0058Ah
kbdDebncCnt		equ 0D0058Bh
kbdKey			equ 0D0058Ch
kbdGetKy		equ 0D0058Dh
keyExtend		equ 0D0058Eh
brightness		equ 0D0058Fh
apdSubTimer		equ 0D00590h
apdTimer		equ 0D00591h
curTime			equ 0D00594h
curRow			equ 0D00595h
curCol			equ 0D00596h
curOffset		equ 0D00597h
curUnder		equ 0D00598h
curY			equ 0D00599h
curXRow			equ 0D0059Ch
;something		equ 0D005A0h
lFont_record		equ 0D005A4h
sFont_record		equ 0D005C5h
tokVarPtr		equ 0D005E9h

OP1			equ 0D005F8h
OP1M			equ 0D005FAh
OP2			equ 0D00603h
OP2M			equ 0D00605h
OP2EXT			equ 0D0060Ch
OP3			equ 0D0060Eh
OP3M			equ 0D00610h
OP4			equ 0D00619h
OP4M			equ 0D0061Bh
OP5			equ 0D00624h
OP5M			equ 0D00626h
OP6			equ 0D0062Fh
OP6M			equ 0D00631h
OP6EXT			equ 0D00638h

onSp			equ 0D007FAh

penCol			equ 0D008D2h
penRow			equ 0D008D5h

errNo			equ 0D008DFh
errSP			equ 0D008E0h

statVarsOffset		equ 0D0117Fh
asm_prgm_size		equ 0D0118Ch
statVars		equ 0D01191h

uXmin			equ 0D01D61h
uXmax			equ 0D01D6Ah
uXscl			equ 0D01D73h
uYmin			equ 0D01D7Ch
uYmax			equ 0D01D85h
uYscl			equ 0D01D8Eh
uThetMin		equ 0D01D97h
uThetMax		equ 0D01DA0h
uThetStep		equ 0D01DA9h
uTmin			equ 0D01DB2h
uTmax			equ 0D01DBBh
uTStep			equ 0D01DC4h
uPlotStart		equ 0D01DCDh
unMax			equ 0D01DD6h
uu0			equ 0D01DDFh
uv0			equ 0D01DE8h
unMin			equ 0D01DF1h
uu02			equ 0D01DFAh
uv02			equ 0D01E03h
uw0			equ 0D01E0Ch
uPlotStep		equ 0D01E15h
uXres			equ 0D01E1Eh
uw02			equ 0D01E27h
Xmin			equ 0D01E33h
Xmax			equ 0D01E3Ch
Xscl			equ 0D01E45h
Ymin			equ 0D01E4Eh
Ymax			equ 0D01E57h
Yscl			equ 0D01E60h
ThetaMin		equ 0D01E69h
ThetaMax		equ 0D01E72h
ThetaStep		equ 0D01E7Bh
TminPar			equ 0D01E84h
TmaxPar			equ 0D01E8Dh
Tstep			equ 0D01E96h
PlotStart		equ 0D01E9Fh
nMax			equ 0D01EA8h
u0			equ 0D01EB1h
v0			equ 0D01EBAh
nMin			equ 0D01EC3h
u02			equ 0D01ECCh
v02			equ 0D01ED5h
w0			equ 0D01EDEh
PlotStep		equ 0D01EE7h
XresO			equ 0D01EF0h
w02			equ 0D01EF9h
un1			equ 0D01F02h
un2			equ 0D01F0Bh
vn1			equ 0D01F14h
vn2			equ 0D01F1Dh
wn1			equ 0D01F26h
wn2			equ 0D01F2Fh
fin_N			equ 0D01F38h
fin_I			equ 0D01F41h
fin_PV			equ 0D01F4Ah
fin_PMT			equ 0D01F53h
fin_FV			equ 0D01F5Ch
fin_PY			equ 0D01F65h
fin_CY			equ 0D01F6Eh
cal_N			equ 0D01F77h
cal_I			equ 0D01F80h
cal_PV			equ 0D01F89h
cal_PMT			equ 0D01F92h
cal_FV			equ 0D01F9Bh
cal_PY			equ 0D01FA4h

begPC			equ 0D02317h
curPC			equ 0D0231Ah
endPC			equ 0D0231Dh

tempMem			equ 0D02587h
FPSbase			equ 0D0258Ah
FPS			equ 0D0258Dh
OPBase			equ 0D02590h
OPS			equ 0D02593h

pTemp			equ 0D0259Ah
progPtr			equ 0D0259Dh

pagedGetPtr		equ 0D025A3h	; 2 bytes scrap

winTop			equ 0D02504h
winBtm			equ 0D02505h
winLeftEdge		equ 0D02506h
winLeft			equ 0D02507h

cursorHookPtr		equ 0D025D5h
libraryHookPtr		equ 0D025D8h
rawKeyHookPtr		equ 0D025DBh
getKeyHookPtr		equ 0D025DEh
homescreenHookPtr	equ 0D025E1h
windowHookPtr		equ 0D025E4h
graphHookPtr		equ 0D025E7h
yEqualsHookPtr		equ 0D025EAh
fontHookPtr		equ 0D025EDh
regraphHookPtr		equ 0D025F0h
graphicsHookPtr		equ 0D025F3h
traceHookPtr		equ 0D025E6h
parserHookPtr		equ 0D025F9h
appChangeHookPtr	equ 0D025FCh
catalog1HookPtr		equ 0D025FFh
helpHookPtr		equ 0D02602h
cxRedispHookPtr		equ 0D02605h
menuHookPtr		equ 0D02608h
catalog2HookPtr		equ 0D0260Bh
tokenHookPtr		equ 0D0260Eh
localizeHookPtr		equ 0D02611h
silentLinkHookPtr	equ 0D02614h
USBActivityHookPtr	equ 0D02617h

textBGcolor		equ 0D02688h
textFGcolor		equ 0D0268Ah

drawBGColor		equ 0D026AAh
drawFGColor		equ 0D026ACh
drawColorCode		equ 0D026AEh

scrapMem		equ 0D02AD7h	; 3 byte scrap (unstable)

;safeRAM Locations
;---------------------------------------------
pixelShadow		equ 0D031F6h ; 8400 bytes
pixelShadow2		equ 0D052C6h ; 8400 bytes	; (stable)
cmdPixelShadow		equ 0D07396h ; 8400 bytes
plotSScreen		equ 0D09466h ; 21945 bytes	; Set GraphDraw Flag to redraw graph if used
saveSScreen		equ 0D0EA1Fh ; 21945 bytes	; Set GraphDraw Flag to redraw graph if used
textShadow		equ 0D006C0h ; 260 bytes	; Call _ClrTxtShdw to put spaces in here
cmdShadow		equ 0D0232Dh ; 260 bytes

;RAM Equates Continued
;---------------------------------------------
userMem			equ 0D1A881h
symTable		equ 0D3FFFFh
vRam			equ 0D40000h
vRamEnd			equ 0D65800h

;Ports
;--------------------------------
pCpuSpeed		equ 0001h
pHardwareId		equ 0003h
pUsbRange		equ 3000h

;LCD Ports
;--------------------------------
pLcdCtrlRange		equ 4000h
mpLcdCtrlRange		equ 0E30000h
pLcdBase		equ 4010h
mpLcdBase		equ 0E30010h

pLcdCtrl		equ 4018h
mpLcdCtrl		equ 0E30018h

lcdEn			equ 01h
lcdTft			equ 20h
lcdBpp1			equ 0000b | lcdTft | lcdEn
lcdBpp2			equ 0010b | lcdTft | lcdEn
lcdBpp4			equ 0100b | lcdTft | lcdEn
lcdBpp8			equ 0110b | lcdTft | lcdEn
lcdBpp16Alt		equ 1000b | lcdTft | lcdEn
lcdBpp24		equ 1010b | lcdTft | lcdEn
lcdBpp16		equ 1100b | lcdTft | lcdEn ; Default LCD mode
lcdBpp12		equ 1110b | lcdTft | lcdEn
lcdBgr			equ 100h
lcdBigEndian		equ 200h
lcdBigEndianPixels	equ 400h
lcdPwr			equ 800h
lcdIntVSync		equ 00h
lcdIntBack		equ 1000h
lcdIntActiveVideo	equ 2000h
lcdIntFront		equ 4000h
lcdWatermark		equ 10000h
lcdNormalMode		equ lcdPwr | lcdBgr | lcdBpp16

pLcdPalette		equ 4200h
mpLcdPalette		equ 0E30200h
pLcdCursorImg		equ 4800h
mpLcdCursorImg		equ 0E30800h
pLcdCrsrCtrl		equ 4C00h
mpLcdCrsrCtrl		equ 0E30C00h
pLcdCrsrConfig		equ 4C04h
mpLcdCrsrConfig		equ 0E30C04h
pLcdCrsrPal0		equ 4C08h
mpLcdCrsrPal0		equ 0E30C08h
pLcdCrsrPal1		equ 4C0Ch
mpLcdCrsrPal1		equ 0E30C0Ch
pLcdCrsrXy		equ 4C10h
mpLcdCrsrXy		equ 0E30C10h
pLcdCrsrClip		equ 4C14h
mpLcdCrsrClip		equ 0E30C14h

;RTC Ports
;-----------------------------------
pRtcRange		equ 8000h
mpRtcRange		equ 0F30000h

;Backlight Ports
;-----------------------------------
pBlLevel		equ 0B024h
mpBlLevel		equ 0F60024h

; Boot Calls
;-----------------------------------
__getBootVerMajor	equ 0000080h
__getHardwareVersion	equ 0000084h
__getKeyID		equ 0000088h
__getBootVerMinor	equ 000008Ch
__getBootVerBuild	equ 0000090h
			   ;0000094h ;outputs A to 0FFFEh and locks up, only on certain hardware revision?
__memchr		equ 000009Ch
__memcmp		equ 00000A0h
__memcpy		equ 00000A4h
__memmove		equ 00000A8h
__memset		equ 00000ACh
__memclear		equ 00000B0h
__DoNothing		equ 00000F8h
__setjmp		equ 00000B8h
__longjmp		equ 0000098h
__sprintf		equ 00000BCh
__strcat		equ 00000C0h
__strchr		equ 00000C4h
__strcmp		equ 00000C8h
__strcpy		equ 00000CCh
__strcspn		equ 00000D0h
__strlen		equ 00000D4h
__strncat		equ 00000D8h
__strncmp		equ 00000DCh
__strncpy		equ 00000E0h
__strpbrk		equ 00000E4h
__strrchr		equ 00000E8h
__strspn		equ 00000ECh
__strstr		equ 00000F0h
__strtok		equ 00000F4h; Uses static 24-bit variable at 0D0FFFFh
__case			equ 0000110h
__case16		equ 0000114h
__case16D		equ 0000118h
__case24		equ 000011Ch
__case24D		equ 0000120h
__case8			equ 0000124h
__case8D		equ 0000128h
__frameset0		equ 0000130h
__frameset		equ 000012Ch
__iand			equ 0000134h
__icmpzero		equ 0000138h
__idivs			equ 000013Ch
__idivu			equ 0000140h
__idvrmu		equ 0000144h
__ildix			equ 0000148h
__ildiy			equ 000014Ch
__imul_b		equ 0000150h
__imuls			equ 0000154h
__imulu			equ 0000158h
__indcall		equ 000015Ch
__ineg			equ 0000160h
__sneg			equ 000022Ch
__inot			equ 0000164h
__snot			equ 0000230h
__ior			equ 0000168h
__irems			equ 000016Ch
__iremu			equ 0000170h
__ishl_b		equ 0000178h
__ishl			equ 0000174h
__ishrs_b		equ 0000180h
__ishrs			equ 000017Ch
__ishru_b		equ 0000188h
__ishru			equ 0000184h
__istix			equ 000018Ch
__istiy			equ 0000190h
__itol			equ 0000194h
__ixor			equ 0000198h
__ladd_b		equ 00001A0h
__ladd			equ 000019Ch
__land			equ 00001A4h
__lcmps			equ 00001A8h
__lcmpu			equ 00001ACh
__lcmpzero		equ 00001B0h
__ldivs			equ 00001B4h
__ldivu			equ 00001B8h
__ldvrmu		equ 00001BCh
__lldix			equ 00001C0h
__lldiy			equ 00001C4h
__lmuls			equ 00001C8h
__lmulu			equ 00001CCh
__lneg			equ 00001D0h
__lnot			equ 00001D4h
__lor			equ 00001D8h
__lrems			equ 00001DCh
__lremu			equ 00001E0h
__lshl			equ 00001E4h
__lshrs			equ 00001E8h
__lshru			equ 00001ECh
__bshru			equ 0000104h
__bshl			equ 0000100h
__bldiy			equ 00000FCh
__bstiy			equ 0000108h
__bstix			equ 000010Ch
__lstix			equ 00001F0h
__lstiy			equ 00001F4h
__lsub			equ 00001F8h
__lxor			equ 00001FCh
__sand			equ 0000200h
__scmp0			equ 0000204h
__sdivs			equ 0000208h
__sdivu			equ 000020Ch
__seqcase		equ 0000210h
__seqcaseD		equ 0000214h
__setflag		equ 0000218h
__sldix			equ 000021Ch
__sldiy			equ 0000220h
__smuls			equ 0000224h
__smulu			equ 0000228h
__sor			equ 0000234h
__srems			equ 0000238h
__sremu			equ 000023Ch
__sshl_b		equ 0000244h
__sshl			equ 0000240h
__sshrs_b		equ 000024Ch
__sshrs			equ 0000248h
__sshru_b		equ 0000254h
__sshru			equ 0000250h
__sstix			equ 0000258h
__sstiy			equ 000025Ch
__stoi			equ 0000260h
__stoiu			equ 0000264h
__sxor			equ 0000268h
			   ;00002D0h   ;checks something about field 80C0h in the OS header (value 0101h)
__WriteAByte		equ 00002D4h
__EraseFlash		equ 00002D8h
__EraseFlashPage	equ 00002DCh
__WriteFlash		equ 00002E0h
__WriteAByte2		equ 00002E4h	;no difference from 00002D4h
__WriteAByteA		equ 00002E8h	;byte is in A, not B
			   ;00002ECh   ;lots of writes/erases involving sectors 3Bh/3Fh
			   ;00002F0h   ;zeroes out 4KB at 0D1887Ch and writes 0D18C7Ch to start of it
__WriteFlashUnsafe	equ 0000334h
__DispStr		equ 0000378h
__NewLine_Boot		equ 0000390h

__fppack		equ 000026Ch
__FLT_MAX		equ 0000294h	; Not A Routine
__fadd			equ 0000270h
__fcmp			equ 0000274h
__fdiv			equ 0000278h
__ftol			equ 000027Ch
__ltof			equ 0000284h
__fmul			equ 0000288h
__fneg			equ 000028Ch
__fsub			equ 0000290h
__ultof			equ 0000280h
__fsqrt			equ 0000298h
__frbtof		equ 000029Ch
__frftob		equ 00002A0h
__frftoi		equ 00002A8h
__frftos		equ 00002B0h
__frftoub		equ 00002A4h
__frftoui		equ 00002ACh
__frftous		equ 00002B4h
__fritof		equ 00002B8h
__frstof		equ 00002C0h
__frubtof		equ 00002C4h
__fruitof		equ 00002BCh
__frustof		equ 00002C8h

;Character Font Equates  
;-------------------------------------
LrecurN			equ 001h
LrecurU			equ 002h
LrecurV			equ 003h
LrecurW			equ 004h
Lconvert		equ 005h
LsqUp			equ 006h
LsqDown			equ 007h
Lintegral		equ 008h
Lcross			equ 009h
LboxIcon 		equ 00Ah
LcrossIcon 		equ 00Bh
LdotIcon 		equ 00Ch
LsubT   		equ 00Dh ;small capital T for parametric mode.
LcubeR  		equ 00Eh ;slightly different 3 for cubed root.
LhexF			equ 00Fh
Lroot			equ 010h
Linverse		equ 011h
Lsquare			equ 012h
Langle			equ 013h
Ldegree			equ 014h
Lradian			equ 015h
Ltranspose		equ 016h
LLE			equ 017h
LNE			equ 018h
LGE			equ 019h
Lneg			equ 01Ah
Lexponent		equ 01Bh
Lstore			equ 01Ch
Lten			equ 01Dh
LupArrow		equ 01Eh
LdownArrow		equ 01Fh
Lspace			equ 020h
Lexclam			equ 021h
Lquote			equ 022h
Lpound			equ 023h
Lfourth			equ 024h
Lpercent		equ 025h
Lampersand		equ 026h
Lapostrophe		equ 027h
LlParen			equ 028h
LrParen			equ 029h
Lasterisk		equ 02Ah
LplusSign		equ 02Bh
Lcomma			equ 02Ch
Ldash			equ 02Dh
Lperiod			equ 02Eh
Lslash			equ 02Fh
L0			equ 030h
L1			equ 031h
L2			equ 032h
L3			equ 033h
L4			equ 034h
L5			equ 035h
L6			equ 036h
L7			equ 037h
L8			equ 038h
L9			equ 039h
Lcolon			equ 03Ah
Lsemicolon		equ 03Bh
LLT			equ 03Ch
LEQ			equ 03Dh
LGT			equ 03Eh
Lquestion		equ 03Fh
LatSign			equ 040h
LcapA			equ 041h
LcapB			equ 042h
LcapC			equ 043h
LcapD			equ 044h
LcapE			equ 045h
LcapF			equ 046h
LcapG			equ 047h
LcapH			equ 048h
LcapI			equ 049h
LcapJ			equ 04Ah
LcapK			equ 04Bh
LcapL			equ 04Ch
LcapM			equ 04Dh
LcapN			equ 04Eh
LcapO			equ 04Fh
LcapP			equ 050h
LcapQ			equ 051h
LcapR			equ 052h
LcapS			equ 053h
LcapT			equ 054h
LcapU			equ 055h
LcapV			equ 056h
LcapW			equ 057h
LcapX			equ 058h
LcapY			equ 059h
LcapZ			equ 05Ah
Ltheta			equ 05Bh
Lbackslash		equ 05Ch
LrBrack			equ 05Dh
Lcaret			equ 05Eh
Lunderscore		equ 05Fh
Lbackquote		equ 060h
La			equ 061h
Lb			equ 062h
Lc			equ 063h
Ld			equ 064h
Le			equ 065h
Lf			equ 066h
Lg			equ 067h
Lh			equ 068h
Li			equ 069h
Lj			equ 06Ah
Lk			equ 06Bh
Ll			equ 06Ch
Lm			equ 06Dh
Ln			equ 06Eh
Lo			equ 06Fh
Lp			equ 070h
Lq			equ 071h
Lr			equ 072h
Ls			equ 073h
Lt			equ 074h
Lu			equ 075h
Lv			equ 076h
Lw			equ 077h
Lx			equ 078h
Ly			equ 079h
Lz			equ 07Ah
LlBrace			equ 07Bh
Lbar			equ 07Ch
LrBrace			equ 07Dh
Ltilde			equ 07Eh
LinvEQ			equ 07Fh
Lsub0			equ 080h
Lsub1			equ 081h
Lsub2			equ 082h
Lsub3			equ 083h
Lsub4			equ 084h
Lsub5			equ 085h
Lsub6			equ 086h
Lsub7			equ 087h
Lsub8			equ 088h
Lsub9			equ 089h
LcapAAcute		equ 08Ah
LcapAGrave		equ 08Bh
LcapACaret		equ 08Ch
LcapADier		equ 08Dh
LaAcute			equ 08Eh
LaGrave			equ 08Fh
LaCaret			equ 090h
LaDier			equ 091h
LcapEAcute		equ 092h
LcapEGrave		equ 093h
LcapECaret		equ 094h
LcapEDier		equ 095h
LeAcute			equ 096h
LeGrave			equ 097h
LeCaret			equ 098h
LeDier			equ 099h
LcapIAcute		equ 09Ah
LcapIGrave		equ 09Bh
LcapICaret		equ 09Ch
LcapIDier		equ 09Dh
LiAcute			equ 09Eh
LiGrave			equ 09Fh
LiCaret			equ 0A0h
LiDier			equ 0A1h
LcapOAcute		equ 0A2h
LcapOGrave		equ 0A3h
LcapOCaret		equ 0A4h
LcapODier		equ 0A5h
LoAcute			equ 0A6h
LoGrave			equ 0A7h
LoCaret			equ 0A8h
LoDier			equ 0A9h
LcapUAcute		equ 0AAh
LcapUGrave		equ 0ABh
LcapUCaret		equ 0ACh
LcapUDier		equ 0ADh
LuAcute			equ 0AEh
LuGrave			equ 0AFh
LuCaret			equ 0B0h
LuDier			equ 0B1h
LcapCCed		equ 0B2h
LcCed			equ 0B3h
LcapNTilde		equ 0B4h
LnTilde			equ 0B5h
Laccent			equ 0B6h
Lgrave			equ 0B7h
Ldieresis		equ 0B8h
LquesDown		equ 0B9h
LexclamDown		equ 0BAh
Lalpha			equ 0BBh
Lbeta			equ 0BCh
Lgamma			equ 0BDh
LcapDelta		equ 0BEh
Ldelta			equ 0BFh
Lepsilon		equ 0C0h
LlBrack 		equ 0C1h
Llambda			equ 0C2h
Lmu			equ 0C3h
Lpi			equ 0C4h
Lrho			equ 0C5h
LcapSigma		equ 0C6h
Lsigma			equ 0C7h
Ltau			equ 0C8h
Lphi			equ 0C9h
LcapOmega		equ 0CAh
LxMean			equ 0CBh
LyMean			equ 0CCh
LsupX			equ 0CDh
Lellipsis		equ 0CEh
Lleft			equ 0CFh
Lblock			equ 0D0h
Lper			equ 0D1h
Lhyphen			equ 0D2h
Larea			equ 0D3h
Ltemp			equ 0D4h
Lcube			equ 0D5h
Lenter			equ 0D6h
LimagI			equ 0D7h
Lphat			equ 0D8h
Lchi			equ 0D9h
LstatF			equ 0DAh
Llne			equ 0DBh
LlistL			equ 0DCh
LfinanN 		equ 0DDh
L2_r_paren 		equ 0DEh
LblockArrow		equ 0DFh
LcurO   		equ 0E0h
LcurO2  		equ 0E1h
LcurOcapA		equ 0E2h
LcurOa  		equ 0E3h
LcurI   		equ 0E4h
LcurI2  		equ 0E5h
LcurIcapA		equ 0E6h
LcurIa  		equ 0E7h
LGline			equ 0E8h ; = 0
LGthick			equ 0E9h ; = 1
LGabove			equ 0EAh ; = 2
LGbelow			equ 0EBh ; = 3
LGpath			equ 0ECh ; = 4
LGanimate		equ 0EDh ; = 5
LGdot			equ 0EEh ; = 6
LUpBlk			equ 0EFh ;Up arrow and Block in solver
LDnBlk			equ 0F0h ;Down arrow and Block in solver
LcurFull		equ 0F1h ;note: must be last char (PutMap checks)

;(MenuCurrent) Values
;-----------------------------------
mConfirmation		equ 01h
mApps			equ 02h
mProgramHome		equ 03h
mPrgm_Run		equ 00h
mPrgm_Edit		equ 01h
mPrgm_New		equ 02h
mZoom			equ 04h
mZoom_Zoom		equ 00h
mZoom_Memory		equ 01h
mDraw			equ 05h
mDraw_Draw		equ 00h
mDraw_Points		equ 01h
mDraw_Store		equ 02h
mStatPlots		equ 06h
mStat			equ 07h
mStat_Edit		equ 00h
mStat_Calc		equ 01h
mStat_Tests		equ 02h
mMath			equ 08h
mMath_Math		equ 00h
mMath_Number		equ 01h
mMath_Complex		equ 02h
mMath_Prob		equ 03h
mTest			equ 09h
mTest_Test		equ 00h
mTest_Logic		equ 01h
mVars			equ 0Ah
mVars_Vars		equ 00h
mVars_YVars		equ 01h
mMemory			equ 0Ch
mMatrix			equ 0Dh
mMatrix_Name		equ 00h
mMatrix_Math		equ 01h
mMatrix_Edit		equ 02h
mDistr			equ 0Eh
mDistr_Distr		equ 00h
mDistr_Draw		equ 01h
mAngle			equ 0Fh
mList			equ 10h
mList_Names		equ 00h
mList_Ops		equ 01h
mList_Math		equ 02h
mCalculate		equ 11h
mVarsWin		equ 14h
mVarsWin_XY		equ 00h
mVarsWin_TTh		equ 01h
mVarsWin_UVW		equ 02h
mVarsZoom		equ 15h
mVarsZoom_ZXY		equ 00h
mVarsZoom_ZT		equ 01h
mVarsZoom_UVW		equ 02h
mVarsGDB		equ 16h
mVarsPics		equ 17h
mVarsStrings		equ 18h
mVarsStat		equ 19h
mVarsStat_XY		equ 00h
mVarsStat_Sigma		equ 01h
mVarsStat_EQ		equ 02h
mVarsStat_Test		equ 03h
mVarsStat_Pts		equ 04h
mVarsTable		equ 1Ah
mVarsYequ 		equ 1Bh
mVarsParametric		equ 1Ch
mVarsPolar		equ 1Dh
mVarsFnOnOff		equ 1Eh
mMemReset		equ 1Fh
mMemReset_RAM		equ 00h
mMemReset_ROM		equ 01h
mMemReset_All		equ 02h
mMemMgmtDel		equ 20h
mMemResetDefaults	equ 21h
mMemResetRAMAll		equ 23h
mMemResetROMVars	equ 24h
mMemResetROMApps	equ 25h
mMemResetROMAll		equ 26h
mMemResetAll		equ 27h
mGroup			equ 28h
mGroup_New		equ 00h
mGroup_Ungroup		equ 01h
mGroupVars		equ 29h
mProgramEdit		equ 2Ah
mPrgmEd_Ctrl		equ 00h
mPrgmEd_IO		equ 01h
mPrgmEd_Exec		equ 02h
mPrgmZoom		equ 2Bh
mPrgmZoom_Zoom		equ 00h
mPrgmZoom_Mem		equ 01h
mPrgmDraw		equ 2Ch
mPrgmDraw_Draw		equ 00h
mPrgmDraw_Pt		equ 01h
mPrgmDraw_Store		equ 02h
mPrgmStatPlot		equ 2Dh
mPrgmSP_Plots		equ 00h
mPrgmSP_Type		equ 01h
mPrgmSP_Mark		equ 02h
mPrgmStat		equ 2Eh
mPrgmStat_Edit		equ 00h
mPrgmStat_Calc		equ 01h
mPrgmStat_Tests		equ 02h
mPrgmMath		equ 2Fh
mPrgmMath_Math		equ 00h
mPrgmMath_Num		equ 01h
mPrgmMath_Cplx		equ 02h
mPrgmMath_Prob		equ 03h
mLink			equ 30h
mLink_Send		equ 00h
mLink_Recieve		equ 01h
mLinkTrasmit		equ 31h
mLinkXmit_Xmit		equ 01h
mGarbageCollect		equ 3Fh
mSelectGroupVars	equ 40h
mSelGrpVars_Sel		equ 00h
mSelGrpVars_Grp		equ 01h
mDuplicateName		equ 42h
mCatalog		equ 45h
mFinance		equ 22h
mFinance_Calc		equ 00h
mFinance_Vars		equ 01h

;Keypress Equates
;-----------------------------------
kRight			equ 001h
kLeft			equ 002h
kUp			equ 003h
kDown			equ 004h
kEnter			equ 005h
kAlphaEnter		equ 006h
kAlphaUp		equ 007h
kAlphaDown		equ 008h
kClear			equ 009h
kDel			equ 00Ah
kIns			equ 00Bh
kRecall			equ 00Ch
kLastEnt		equ 00Dh
kBOL			equ 00Eh
kEOL			equ 00Fh

kSelAll			equ 010h
kUnselAll		equ 011h
kLtoTI82		equ 012h
kBackup			equ 013h
kRecieve		equ 014h
kLnkQuit		equ 015h
kTrans			equ 016h
kRename			equ 017h
kOverw			equ 018h
kOmit			equ 019h
kCont			equ 01Ah
kSendID			equ 01Bh
kSendSW			equ 01Ch
kYes			equ 01Dh
kNoWay			equ 01Eh
kvSendType		equ 01Fh
kOverWAll		equ 020h
kNo			equ 025h
kKReset			equ 026h
kApp			equ 027h
kDoug			equ 028h
kListflag		equ 029h
menuStart		equ 02Bh
kAreYouSure		equ 02Bh
kAppsMenu		equ 02Ch
kPrgm			equ 02Dh
kZoom			equ 02Eh
kDraw			equ 02Fh
kSPlot			equ 030h
kStat			equ 031h
kMath			equ 032h
kTest			equ 033h
kChar			equ 034h
kVars			equ 035h
kMem			equ 036h
kMatrix			equ 037h
kDist			equ 038h
kAngle			equ 039h
kList			equ 03Ah
kCalc			equ 03Bh
kFin			equ 03Ch
menuEnd			equ kFin
kCatalog		equ 03Eh
kInputDone		equ 03Fh
kOff			equ kInputDone
kQuit			equ 040h
appStart		equ kQuit
kLinkIO			equ 041h
kMatrixEd		equ 042h
kStatEd			equ 043h
kGraph			equ 044h
kMode			equ 045h
kPrgmEd			equ 046h ;PROGRAM EDIT
kPrgmCr			equ 047h ;PROGRAM CREATE
kWindow			equ 048h ;RANGE EDITOR
kYequ 			equ 049h ;EQUATION EDITOR
kTable			equ 04Ah ;TABLE EDITOR
kTblSet			equ 04Bh ;TABLE SET
kChkRAM			equ 04Ch ;CHECK RAM (About screen)
kDelMem			equ 04Dh ;DELETE MEM
kResetMem		equ 04Eh ;RESET MEM
kResetDef		equ 04Fh ;RESET DEFAULT
kPrgmInput		equ 050h ;PROGRAM INPUT
kZFactEd		equ 051h ;ZOOM FACTOR EDITOR
kError			equ 052h ;ERROR
kSolveTVM		equ 053h ;TVM SOLVER
kSolveRoot		equ 054h ;SOLVE EDITOR
kStatP			equ 055h ;stat plot
kInfStat		equ 056h ;Inferential Statistic
kFormat			equ 057h ;FORMAT
kExtApps		equ 058h ;External Applications.		NEW
kNewApps		equ 059h ;New Apps for Cerberus.
append			equ kNewApps
echoStart1		equ 05Ah
kTrace			equ 05Ah
kZFit			equ 05Bh
kZIn			equ 05Ch
kZOut			equ 05Dh
kZPrev			equ 05Eh
kBox			equ 05Fh
kDecml			equ 060h
kSetZm			equ 061h
kSquar			equ 062h
kStd			equ 063h
kTrig			equ 064h
kUsrZm			equ 065h
kZSto			equ 066h
kZInt			equ 067h
kZStat			equ 068h
echoStart2		equ 069h
kSelect			equ 069h
kCircl			equ 06Ah
kClDrw			equ 06Bh
kLine			equ 06Ch
kPen			equ 06Dh
kPtChg			equ 06Eh
kPtOff			equ 06Fh
kPtOn			equ 070h
kVert			equ 071h
kHoriz			equ 072h
kText			equ 073h
kTanLn			equ 074h
kEval			equ 075h
kInters			equ 076h
kDYDX			equ 077h
kFnIntg			equ 078h
kRootG			equ 079h
kDYDT			equ 07Ah
kDXDT			equ 07Bh
kDRDo			equ 07Ch
KGFMin			equ 07Dh
KGFMax			equ 07Eh
EchoStart		equ 07Fh
kListName		equ 07Fh
kAdd			equ 080h
kSub			equ 081h
kMul			equ 082h
kDiv			equ 083h
kExpon			equ 084h
kLParen			equ 085h
kRParen			equ 086h
kLBrack			equ 087h
kRBrack			equ 088h
kShade			equ 089h
kStore			equ 08Ah
kComma			equ 08Bh
kChs			equ 08Ch
kDecPnt			equ 08Dh
k0			equ 08Eh
k1			equ 08Fh
k2			equ 090h
k3			equ 091h
k4			equ 092h
k5			equ 093h
k6			equ 094h
k7			equ 095h
k8			equ 096h
k9			equ 097h
kEE			equ 098h
kSpace			equ 099h
kCapA			equ 09Ah
kCapB			equ 09Bh
kCapC			equ 09Ch
kCapD			equ 09Dh
kCapE			equ 09Eh
kCapF			equ 09Fh
kCapG			equ 0A0h
kCapH			equ 0A1h
kCapI			equ 0A2h
kCapJ			equ 0A3h
kCapK			equ 0A4h
kCapL			equ 0A5h
kCapM			equ 0A6h
kCapN			equ 0A7h
kCapO			equ 0A8h
kCapP			equ 0A9h
kCapQ			equ 0AAh
kCapR			equ 0ABh
kCapS			equ 0ACh
kCapT			equ 0ADh
kCapU			equ 0AEh
kCapV			equ 0AFh
kCapW			equ 0B0h
kCapX			equ 0B1h
kCapY			equ 0B2h
kCapZ			equ 0B3h
kVarx			equ 0B4h
kPi			equ 0B5h
kInv			equ 0B6h
kSin			equ 0B7h
kASin			equ 0B8h
kCos			equ 0B9h
kACos			equ 0BAh
kTan			equ 0BBh
kATan			equ 0BCh
kSquare			equ 0BDh
kSqrt			equ 0BEh
kLn			equ 0BFh
kExp			equ 0C0h
kLog			equ 0C1h
kALog			equ 0C2h
kToABC			equ 0C3h
kClrTbl			equ 0C4h
kAns			equ 0C5h
kColon			equ 0C6h
kNDeriv			equ 0C7h
kFnInt			equ 0C8h
kRoot			equ 0C9h
kQuest			equ 0CAh
kQuote			equ 0CBh
kTheta			equ 0CCh
kIf			equ 0CDh
kThen			equ 0CEh
kElse			equ 0CFh
kFor			equ 0D0h
kWhile			equ 0D1h
kRepeat			equ 0D2h
kEnd			equ 0D3h
kPause			equ 0D4h
kLbl			equ 0D5h
kGoto			equ 0D6h
kISG			equ 0D7h
kDSL			equ 0D8h
kMenu			equ 0D9h
kExec			equ 0DAh
kReturn			equ 0DBh
kStop			equ 0DCh
kInput			equ 0DDh
kPrompt			equ 0DEh
kDisp			equ 0DFh
kDispG			equ 0E0h
kDispT			equ 0E1h
kOutput			equ 0E2h
kGetKey			equ 0E3h
kClrHome		equ 0E4h
kPrtScr			equ 0E5h
kSinH			equ 0E6h
kCosH			equ 0E7h
kTanH			equ 0E8h
kASinH			equ 0E9h
kACosH			equ 0EAh
kATanH			equ 0EBh
kLBrace			equ 0ECh
kRBrace			equ 0EDh
kI			equ 0EEh
kCONSTeA		equ 0EFh
kPlot3			equ 0F0h
kFMin			equ 0F1h
kFMax			equ 0F2h
kL1A			equ 0F3h
kL2A			equ 0F4h
kL3A			equ 0F5h
kL4A			equ 0F6h
kL5A			equ 0F7h
kL6A			equ 0F8h
kunA			equ 0F9h
kvnA			equ 0FAh
kwnA			equ 0FBh

;THIS KEY MEANS THAT IT IS A 2 BYTE KEYCODE
;THERE ARE 2 OF THESE KEYS; BE CAREFUL WITH USAGE
;--------------------------------------------------------
kExtendEcho2		equ 0FCh

;THIS KEY MEANS THAT THE KEY PRESS IS ONE THAT ECHOS
;INTO A BUFFER, AND IT IS A 2 BYTE KEY CODE, GO LOOK AT
;(EXTECHO) FOR THE KEY VALUE 
;--------------------------------------------------------
kExtendEcho		equ 0FEh

kE1BT			equ 0
kDrawInv		equ kE1BT
kDrawF			equ kE1BT+1
kPixelOn		equ kE1BT+2
kPixelOff		equ kE1BT+3
kPxlTest		equ kE1BT+4
kRCGDB			equ kE1BT+5
kRCPic			equ kE1BT+6
kSTGDB			equ kE1BT+7
kSTPic			equ kE1BT+8
kAbs			equ kE1BT+9
kTequ 		equ kE1BT+10 ;==
kTNoteQ			equ kE1BT+11 ;<>
kTGT			equ kE1BT+12 ;>
kTGTE			equ kE1BT+13 ;>=
kTLT			equ kE1BT+14 ;<
kTLTE			equ kE1BT+15 ;<=
kAnd			equ kE1BT+16
kOr			equ kE1BT+17
kXor			equ kE1BT+18
kNot			equ kE1BT+19
kLR1			equ kE1BT+20
kXRoot			equ kE1BT+21
kCube			equ kE1BT+22
kCbRt			equ kE1BT+23 ;Cube ROOT
kToDec			equ kE1BT+24
kCubicR			equ kE1BT+25
kQuartR			equ kE1BT+26
kPlot1			equ kE1BT+27
kPlot2			equ kE1BT+28
kRound			equ kE1BT+29
kIPart			equ kE1BT+30
kFPart			equ kE1BT+31
kInt			equ kE1BT+32
kRand			equ kE1BT+33
kNPR			equ kE1BT+34
kNCR			equ kE1BT+35
kXFactorial		equ kE1BT+36
kRad			equ kE1BT+37
kDegr			equ kE1BT+38 ;DEGREES CONV
kAPost			equ kE1BT+39
kToDMS			equ kE1BT+40
kRToPo			equ kE1BT+41 ;R
kRToPr			equ kE1BT+42
kPToRx			equ kE1BT+43
kPToRy			equ kE1BT+44
kRowSwap		equ kE1BT+45
kRowPlus		equ kE1BT+46
kTimRow			equ kE1BT+47
kTRowP			equ kE1BT+48
kSortA			equ kE1BT+49
kSortD			equ kE1BT+50
kSeq			equ kE1BT+51
kMin			equ kE1BT+52
kMax			equ kE1BT+53
kMean			equ kE1BT+54
kMedian			equ kE1BT+55
kSum			equ kE1BT+56
kProd			equ kE1BT+57
kDet			equ kE1BT+58
kTransp			equ kE1BT+59
kDim			equ kE1BT+60
kFill			equ kE1BT+61
kIdent			equ kE1BT+62
kRandm			equ kE1BT+63
kAug			equ kE1BT+64
kOneVar			equ kE1BT+65
kTwoVar			equ kE1BT+66
kLR			equ kE1BT+67
kLRExp			equ kE1BT+68
kLRLn			equ kE1BT+69
kLRPwr			equ kE1BT+70
kMedMed			equ kE1BT+71
kQuad			equ kE1BT+72
kClrLst			equ kE1BT+73
kHist			equ kE1BT+74
kxyLine			equ kE1BT+75
kScatter		equ kE1BT+76
kmRad			equ kE1BT+77
kmDeg			equ kE1BT+78
kmNormF			equ kE1BT+79
kmSci			equ kE1BT+80
kmEng			equ kE1BT+81
kmFloat			equ kE1BT+82
kFix			equ kE1BT+83
kSplitOn		equ kE1BT+84
kFullScreen		equ kE1BT+85
kStndrd			equ kE1BT+86
kParam			equ kE1BT+87
kPolar			equ kE1BT+88
kSeqG			equ kE1BT+89
kAFillOn		equ kE1BT+90
kAFillOff		equ kE1BT+91
kACalcOn		equ kE1BT+92
kACalcOff		equ kE1BT+93
kFNOn			equ kE1BT+94
kFNOff			equ kE1BT+95
kPlotsOn		equ kE1BT+96
kPlotsOff		equ kE1BT+97
kPixelChg		equ kE1BT+98
kSendMBL		equ kE1BT+99
kRecvMBL		equ kE1BT+100
kBoxPlot		equ kE1BT+101
kBoxIcon		equ kE1BT+102
kCrossIcon		equ kE1BT+103
kDotIcon		equ kE1BT+104
kE2BT			equ kE1BT+105
kSeqential		equ kE2BT
kSimulG			equ kE2BT+1
kPolarG			equ kE2BT+2
kRectG			equ kE2BT+3
kCoordOn		equ kE2BT+4
kCoordOff		equ kE2BT+5
kDrawLine		equ kE2BT+6
kDrawDot		equ kE2BT+7
kAxisOn			equ kE2BT+8
kAxisOff		equ kE2BT+9
kGridOn			equ kE2BT+10
kGridOff		equ kE2BT+11
kLblOn			equ kE2BT+12
kLblOff			equ kE2BT+13
kL1			equ kE2BT+14
kL2			equ kE2BT+15
kL3			equ kE2BT+16
kL4			equ kE2BT+17
kL5			equ kE2BT+18
kL6			equ kE2BT+19

;These keys are laid on top of existing keys to
;enable localization in the inferential stats editor.
;----------------------------------------------------
kinfData		equ kL1
kinfStats		equ kL1+1
kinfYes			equ kL1+2
kinfNo			equ kL1+3
kinfCalc		equ kL1+4
kinfDraw		equ kL1+5
kinfAlt1ne		equ kL1+6
kinfAlt1lt		equ kL1+7
kinfAlt1gt		equ kL1+8
kinfAlt2ne		equ kL1+9
kinfAlt2lt		equ kL1+10
kinfAlt2gt		equ kL1+11
kinfAlt3ne		equ kL1+12
kinfAlt3lt		equ kL1+13
kinfAlt3gt		equ kL1+14
kinfAlt4ne		equ kL1+15
kinfAlt4lt		equ kL1+16
kinfAlt4gt		equ kL1+17
kinfAlt5ne		equ kL1+18
kinfAlt5lt		equ kL1+19
kinfAlt5gt		equ kL1+20
kinfAlt6ne		equ kL1+21
kinfAlt6lt		equ kL1+22
kinfAlt6gt		equ kL1+23
kMatA			equ kE2BT+20
kMatB			equ kE2BT+21
kMatC			equ kE2BT+22
kMatD			equ kE2BT+23
kMatE			equ kE2BT+24
kXmin			equ kE2BT+25
kXmax			equ kE2BT+26
kXscl			equ kE2BT+27
kYmin			equ kE2BT+28
kYmax			equ kE2BT+29
kYscl			equ kE2BT+30
kTmin			equ kE2BT+31
kTmax			equ kE2BT+32
kTStep			equ kE2BT+33
kOmin			equ kE2BT+34
kOmax			equ kE2BT+35
kOStep			equ kE2BT+36
ku0			equ kE2BT+37
kv0			equ kE2BT+38
knMin			equ kE2BT+39
knMax			equ kE2BT+40
kDeltaY			equ kE2BT+41
kDeltaX			equ kE2BT+42
kZXmin			equ kE2BT+43
kZXmax			equ kE2BT+44
kZXscl			equ kE2BT+45
kZYmin			equ kE2BT+46
kZYmax			equ kE2BT+47
kZYscl			equ kE2BT+48
kZTmin			equ kE2BT+49
kZTmax			equ kE2BT+50
kZTStep			equ kE2BT+51
kZOmin			equ kE2BT+52
kZOmax			equ kE2BT+53
kZOStep			equ kE2BT+54
kZu0			equ kE2BT+55
kZv0			equ kE2BT+56
kZnMin			equ kE2BT+57
kZnMax			equ kE2BT+58
kDelLast		equ kE2BT+59
kSinReg			equ kE2BT+60
kConstE			equ kE2BT+61
kPic1			equ kE2BT+62
kPic2			equ kE2BT+63
kPic3			equ kE2BT+64
kDelVar			equ kE2BT+65
kGetCalc		equ kE2BT+66
kRealM			equ kE2BT+67
kPolarM			equ kE2BT+68
kRectM			equ kE2BT+69
kuv			equ kE2BT+70 ;U vs V
kvw			equ kE2BT+71 ;V vs W
kuw			equ kE2BT+72 ;U vs W
kFinPMTend		equ kE2BT+73
kFinPMTbeg		equ kE2BT+74
kGraphStyle		equ kE2BT+75
kExprOn			equ kE2BT+76
kExprOff		equ kE2BT+77
kStatA			equ kE2BT+78
kStatB			equ kE2BT+79
kStatC			equ kE2BT+80
kCorr			equ kE2BT+81
kStatD			equ kE2BT+82
kStatE			equ kE2BT+83
kRegEq			equ kE2BT+84
kMinX			equ kE2BT+85
kQ1			equ kE2BT+86
kMD			equ kE2BT+87
kQ3			equ kE2BT+88
kMaxX			equ kE2BT+89
kStatX1			equ kE2BT+90
kStatY1			equ kE2BT+91
kStatX2			equ kE2BT+92
kStatY2			equ kE2BT+93
kStatX3			equ kE2BT+94
kStatY3			equ kE2BT+95
kTblMin			equ kE2BT+96
kTblStep		equ kE2BT+97
kSetupLst		equ kE2BT+98
kClrAllLst		equ kE2BT+99
kLogistic		equ kE2BT+100
kZTest			equ kE2BT+101
kTTest			equ kE2BT+102
k2SampZTest		equ kE2BT+103
k2SampTTest		equ kE2BT+104
k1PropZTest		equ kE2BT+105
k2PropZTest		equ kE2BT+106
kChiTest		equ kE2BT+107
k2SampFTest		equ kE2BT+108
kZIntVal		equ kE2BT+109
kTIntVal		equ kE2BT+110
k2SampTInt		equ kE2BT+111
k2SampZInt		equ kE2BT+112
k1PropZInt		equ kE2BT+113
k2PropZInt		equ kE2BT+114
kDNormal		equ kE2BT+115
kInvNorm		equ kE2BT+116
kDT			equ kE2BT+117
kChi			equ kE2BT+118
kDF			equ kE2BT+119
kBinPDF			equ kE2BT+120
kBinCDF			equ kE2BT+121
kPoiPDF			equ kE2BT+122
kPoiCDF			equ kE2BT+123
kun			equ kE2BT+124
kvn			equ kE2BT+125
kwn			equ kE2BT+126
kRecn			equ kE2BT+127
kPlotStart		equ kE2BT+128
kZPlotStart		equ kE2BT+129 ;recursion n
kXFact			equ kE2BT+130 ;PlotStart
kYFact			equ kE2BT+131 ;ZPlotStart
kANOVA			equ kE2BT+132 ;XFact
kMaxY			equ kE2BT+133 ;YFact
kWebOn			equ kE2BT+134 ;MinY
kWebOff			equ kE2BT+135 ;MaxY
kTblInput		equ kE2BT+136 ;WEB ON
kGeoPDF			equ kE2BT+137 ;WEB OFF
kGeoCDF			equ kE2BT+138 ;WEB OFF
kShadeNorm		equ kE2BT+139
kShadeT			equ kE2BT+140
kShadeChi		equ kE2BT+141
kShadeF			equ kE2BT+142
kPlotStep		equ kE2BT+143
kZPlotStep		equ kE2BT+144
kLinRegtTest		equ kE2BT+145
KMGT			equ kE2BT+146 ;VERT SPLIT
kSelectA		equ kE2BT+147
kZFitA			equ kE2BT+148
kE2BT_End		equ kZFitA

;More 2 Byte Keys 
;-------------------------------------
kE2BT2			equ 00h
kGDB1			equ kE2BT2
kGDB2			equ kE2BT2+1
kGDB3			equ kE2BT2+2
kY1			equ kE2BT2+3
kY2			equ kE2BT2+4
kY3			equ kE2BT2+5
kY4			equ kE2BT2+6
kY5			equ kE2BT2+7
kY6			equ kE2BT2+8
kY7			equ kE2BT2+9
kY8			equ kE2BT2+10
kY9			equ kE2BT2+11
kY0			equ kE2BT2+12
kX1T			equ kE2BT2+13
kY1T			equ kE2BT2+14
kX2T			equ kE2BT2+15
kY2T			equ kE2BT2+16
kX3T			equ kE2BT2+17
kY3T			equ kE2BT2+18
kX4T			equ kE2BT2+19
kY4T			equ kE2BT2+20
kX5T			equ kE2BT2+21
kY5T			equ kE2BT2+22
kX6T			equ kE2BT2+23
kY6T			equ kE2BT2+24
kR1			equ kE2BT2+25
kR2			equ kE2BT2+26
kR3			equ kE2BT2+27
kR4			equ kE2BT2+28
kR5			equ kE2BT2+29
kR6			equ kE2BT2+30
kGDB4			equ kE2BT2+31
kGDB5			equ kE2BT2+32
kGDB6			equ kE2BT2+33
kPic4			equ kE2BT2+34
kPic5			equ kE2BT2+35
kPic6			equ kE2BT2+36
kGDB7			equ kE2BT2+37
kGDB8			equ kE2BT2+38
kGDB9			equ kE2BT2+39
kGDB0			equ kE2BT2+40
kPic7			equ kE2BT2+41
kPic8			equ kE2BT2+42
kPic9			equ kE2BT2+43
kPic0			equ kE2BT2+44
kStatN			equ kE2BT2+45
kXMean			equ kE2BT2+46
kConj			equ kE2BT2+47
kReal			equ kE2BT2+48
kFAngle			equ kE2BT2+49
kLCM			equ kE2BT2+50
kGCD			equ kE2BT2+51
kRandInt		equ kE2BT2+52
kRandNorm		equ kE2BT2+53
kToPolar		equ kE2BT2+54
kToRect			equ kE2BT2+55
kYMean			equ kE2BT2+56
kStdX			equ kE2BT2+57
kStdX1			equ kE2BT2+58
kw0			equ kE2BT2+59
kMatF			equ kE2BT2+60
kMatG			equ kE2BT2+61
kMatRH			equ kE2BT2+62
kMatI			equ kE2BT2+63
kMatJ			equ kE2BT2+64
kYMean1			equ kE2BT2+65
kStdY			equ kE2BT2+66
kStdY1			equ kE2BT2+67
kMatToLst		equ kE2BT2+68
kLstToMat		equ kE2BT2+69
kCumSum			equ kE2BT2+70
kDeltaLst		equ kE2BT2+71
kStdDev			equ kE2BT2+72
kVariance		equ kE2BT2+73
kLength			equ kE2BT2+74
kEquToStrng		equ kE2BT2+75
kStrngToequ 		equ kE2BT2+76
kExpr			equ kE2BT2+77
kSubStrng		equ kE2BT2+78
kInStrng		equ kE2BT2+79
kStr1			equ kE2BT2+80
kStr2			equ kE2BT2+81
kStr3			equ kE2BT2+82
kStr4		 	equ kE2BT2+83
kStr5		 	equ kE2BT2+84
kStr6		 	equ kE2BT2+85
kStr7		 	equ kE2BT2+86
kStr8		 	equ kE2BT2+87
kStr9		 	equ kE2BT2+88
kStr0		 	equ kE2BT2+89
kFinN		 	equ kE2BT2+90
kFinI		 	equ kE2BT2+91
kFinPV			equ kE2BT2+92
kFinPMT			equ kE2BT2+93
kFinFV			equ kE2BT2+94
kFinPY			equ kE2BT2+95
kFinCY			equ kE2BT2+96
kFinFPMT		equ kE2BT2+97
kFinFI			equ kE2BT2+98
kFinFPV			equ kE2BT2+99
kFinFN			equ kE2BT2+100
kFinFFV			equ kE2BT2+101
kFinNPV			equ kE2BT2+102
kFinIRR			equ kE2BT2+103
kFinBAL			equ kE2BT2+104
kFinPRN			equ kE2BT2+105
kFinINT			equ kE2BT2+106
kSumX		 	equ kE2BT2+107
kSumX2			equ kE2BT2+108
kFinToNom		equ kE2BT2+109
kFinToEff		equ kE2BT2+110
kFinDBD			equ kE2BT2+111
kStatVP			equ kE2BT2+112
kStatZ			equ kE2BT2+113
kStatT			equ kE2BT2+114
kStatChi		equ kE2BT2+115
kStatF			equ kE2BT2+116
kStatDF			equ kE2BT2+117
kStatPhat		equ kE2BT2+118
kStatPhat1		equ kE2BT2+119
kStatPhat2		equ kE2BT2+120
kStatMeanX1		equ kE2BT2+121
kStatMeanX2		equ kE2BT2+122
kStatStdX1		equ kE2BT2+123
kStatStdX2		equ kE2BT2+124
kStatStdXP		equ kE2BT2+125
kStatN1			equ kE2BT2+126
kStatN2			equ kE2BT2+127
kStatLower		equ kE2BT2+128
kStatUpper		equ kE2BT2+129
kuw0			equ kE2BT2+130
kImag			equ kE2BT2+131
kSumY			equ kE2BT2+132
kXres			equ kE2BT2+133
kStat_s			equ kE2BT2+134
kSumY2			equ kE2BT2+135
kSumXY			equ kE2BT2+136
kuXres			equ kE2BT2+137
kModBox			equ kE2BT2+138
kNormProb		equ kE2BT2+139
kNormalPDF		equ kE2BT2+140
kTPDF			equ kE2BT2+141
kChiPDF			equ kE2BT2+142
kFPDF			equ kE2BT2+143
kMinY			equ kE2BT2+144 ;MinY
kRandBin		equ kE2BT2+145
kRef			equ kE2BT2+146
kRRef			equ kE2BT2+147
kLRSqr			equ kE2BT2+148
kBRSqr			equ kE2BT2+149
kDiagOn			equ kE2BT2+150
kDiagOff		equ kE2BT2+151
kun1			equ kE2BT2+152 ;FOR RCL USE WHEN GOTTEN FROM 82
kvn1			equ kE2BT2+153 ;FOR RCL USE WHEN GOTTEN FROM 82
k83_00End		equ kvn1 ;end of original keys...
kArchive		equ k83_00End + 1
kUnarchive		equ k83_00End + 2
kAsm			equ k83_00End + 3 ;Asm(
kAsmPrgm		equ k83_00End + 4 ;AsmPrgm
kAsmComp		equ k83_00End + 5 ;AsmComp(
kcapAAcute		equ k83_00End + 6
kcapAGrave		equ k83_00End + 7
kcapACaret		equ k83_00End + 8
kcapADier		equ k83_00End + 9
kaAcute			equ k83_00End + 10
kaGrave			equ k83_00End + 11
kaCaret			equ k83_00End + 12
kaDier			equ k83_00End + 13
kcapEAcute		equ k83_00End + 14
kcapEGrave		equ k83_00End + 15
kcapECaret		equ k83_00End + 16
kcapEDier		equ k83_00End + 17
keAcute			equ k83_00End + 18
keGrave			equ k83_00End + 19
keCaret			equ k83_00End + 20
keDier			equ k83_00End + 21
kcapIAcute		equ k83_00End + 22
kcapIGrave		equ k83_00End + 23
kcapICaret		equ k83_00End + 24
kcapIDier		equ k83_00End + 25
kiAcute			equ k83_00End + 26
kiGrave			equ k83_00End + 27
kiCaret			equ k83_00End + 28
kiDier			equ k83_00End + 29
kcapOAcute		equ k83_00End + 30
kcapOGrave		equ k83_00End + 31
kcapOCaret		equ k83_00End + 32
kcapODier		equ k83_00End + 33
koAcute			equ k83_00End + 34
koGrave			equ k83_00End + 35
koCaret			equ k83_00End + 36
koDier			equ k83_00End + 37
kcapUAcute		equ k83_00End + 38
kcapUGrave		equ k83_00End + 39
kcapUCaret		equ k83_00End + 40
kcapUDier		equ k83_00End + 41
kuAcute			equ k83_00End + 42
kuGrave			equ k83_00End + 43
kuCaret			equ k83_00End + 44
kuDier			equ k83_00End + 45
kcapCCed		equ k83_00End + 46
kcCed			equ k83_00End + 47
kcapNTilde		equ k83_00End + 48
knTilde			equ k83_00End + 49
kaccent			equ k83_00End + 50
kgrave			equ k83_00End + 51
kdieresis		equ k83_00End + 52
kquesDown		equ k83_00End + 53
kexclamDown		equ k83_00End + 54
kalpha			equ k83_00End + 55
kbeta		 	equ k83_00End + 56
kgamma			equ k83_00End + 57
kcapDelta		equ k83_00End + 58
kdelta			equ k83_00End + 59
kepsilon		equ k83_00End + 60
klambda			equ k83_00End + 61
kmu			equ k83_00End + 62
kpi2			equ k83_00End + 63
krho			equ k83_00End + 64
kcapSigma		equ k83_00End + 65
ksigma			equ k83_00End + 66
ktau			equ k83_00End + 67
kphi			equ k83_00End + 68
kcapOmega		equ k83_00End + 69
kphat			equ k83_00End + 70
kchi2			equ k83_00End + 71
kstatF2			equ k83_00End + 72
kLa			equ k83_00End + 73
kLb			equ k83_00End + 74
kLc			equ k83_00End + 75
kLd			equ k83_00End + 76
kLe			equ k83_00End + 77
kLf			equ k83_00End + 78
kLg			equ k83_00End + 79
kLh			equ k83_00End + 80
kLi			equ k83_00End + 81
kLj			equ k83_00End + 82
kLk			equ k83_00End + 83
kLl			equ k83_00End + 84
kLm			equ k83_00End + 85
kLsmalln		equ k83_00End + 86
kLo			equ k83_00End + 87
kLp			equ k83_00End + 88
kLq			equ k83_00End + 89
kLsmallr		equ k83_00End + 90
kLs			equ k83_00End + 91
kLt			equ k83_00End + 92
kLu			equ k83_00End + 93
kLv			equ k83_00End + 94
kLw			equ k83_00End + 95
kLx			equ k83_00End + 96
kLy			equ k83_00End + 97
kLz			equ k83_00End + 98
kGarbageC		equ k83_00End + 99 ;GarbageCollect
kE2BT2_End		equ kGarbageC

;TI-83 Plus Context Equates
;--------------------------------------------------------------
cxCmd			equ kQuit ;home screen
cxMatEdit		equ kMatrixEd ;matrix editor
cxPrgmEdit		equ kPrgmEd ;program editor
cxEquEdit		equ kYequ ;equation editor
cxGrRange		equ kWindow ;graph range editor
cxGrZfact		equ kZFactEd ;graph zoom factors editor
cxGraph			equ kGraph ;graph mode
cxStatEdit		equ kStatEd ;statistics list editor
cxPrgmInput		equ kPrgmInput ;programmed input
cxError			equ kError ;error handler
cxLinkIO		equ kLinkIO ;LINK I/O interface
cxMem			equ kResetMem ;reset memory
cxDefMem		equ kResetDef ;reset default
cxRAMApp		equ kChkRAM ;RAM usage screen
cxMode			equ kMode ;mode settings screen
cxErase			equ kDelMem ;memory erase
cxPrgmCreate		equ kPrgmCr ;PROGRAM CREATE
cxTableEditor		equ kTable ;TABLE EDITOR
cxTableSet		equ kTblSet ;TABLE SET UP
cxStatPlot		equ kStatP ;STAT PLOTS
cxInfStat		equ kInfStat ;Inferential Statistic
cxFormat		equ kFormat ;FORMAT CONTEXT
cxSolveTVM		equ kSolveTVM ;Solve TVM
cxSolveRoot		equ kSolveRoot ;Solve Root
lastOldApp		equ kExtApps ;external applications
cxextapps		equ kExtApps
cxNewApps		equ kNewApps ;new cerberus applications
cxGroup			equ cxNewApps+0 ;1st new app.
cxUnGroup		equ cxNewApps+1 ;2nd new app.
lastNewApp		equ cxUnGroup ;last new app for this ver

;Scan Code Equates
;------------------------------
skDown			equ 01h
skLeft			equ 02h
skRight			equ 03h
skUp			equ 04h
skEnter			equ 09h
skAdd			equ 0Ah
skSub			equ 0Bh
skMul			equ 0Ch
skDiv			equ 0Dh
skPower			equ 0Eh
skClear			equ 0Fh
skChs			equ 11h
sk3			equ 12h
sk6			equ 13h
sk9			equ 14h
skRParen		equ 15h
skTan			equ 16h
skVars			equ 17h
skDecPnt		equ 19h
sk2			equ 1Ah
sk5			equ 1Bh
sk8			equ 1Ch
skLParen		equ 1Dh
skCos			equ 1Eh
skPrgm			equ 1Fh
skStat			equ 20h
sk0			equ 21h
sk1			equ 22h
sk4			equ 23h
sk7			equ 24h
skComma			equ 25h
skSin			equ 26h
skMatrix		equ 27h
skGraphvar		equ 28h
skStore			equ 2Ah
skLn			equ 2Bh
skLog			equ 2Ch
skSquare		equ 2Dh
skRecip			equ 2Eh
skMath			equ 2Fh
skAlpha			equ 30h
skGraph			equ 31h
skTrace			equ 32h
skZoom			equ 33h
skWindow		equ 34h
skYequ 			equ 35h
sk2nd			equ 36h
skMode			equ 37h
skDel			equ 38h

; DI Keyboard Equates
;---------------------------
DI_Mode		equ 0F50000h
DI_Cntrl	equ 0F50004h
DI_Int		equ 0F50008h
DI_IntMask	equ 0F5000Ch

kbdG1		equ 0F50012h
;----------------------------
kbdGraph	equ 00000001b
kbdTrace	equ 00000010b
kbdZoom		equ 00000100b
kbdWindow	equ 00001000b
kbdYequ 	equ 00010000b
kbd2nd		equ 00100000b
kbdMode		equ 01000000b
kbdDel		equ 10000000b

kbitGraph	equ 00h
kbitTrace	equ 01h
kbitZoom	equ 02h
kbitWindow	equ 03h
kbitYequ equ 04h
kbit2nd		equ 05h
kbitMode	equ 06h
kbitDel		equ 07h

kbdG2		equ 0F50014h
;----------------------------
kbdStore	equ 00000010b
kbdLn		equ 00000100b
kbdLog		equ 00001000b
kbdSquare	equ 00010000b
kbdRecip	equ 00100000b
kbdMath		equ 01000000b
kbdAlpha	equ 10000000b

kbitStore	equ 01h
kbitLn		equ 02h
kbitLog		equ 03h
kbitSquare	equ 04h
kbitRecip	equ 05h
kbitMath	equ 06h
kbitAlpha	equ 07h

kbdG3		equ 0F50016h
;----------------------------
kbd0		equ 00000001b
kbd1		equ 00000010b
kbd4		equ 00000100b
kbd7		equ 00001000b
kbdComma	equ 00010000b
kbdSin		equ 00100000b
kbdApps		equ 01000000b
kbdGraphVar	equ 10000000b

kbit0		equ 00h
kbit1		equ 01h
kbit4		equ 02h
kbit7		equ 03h
kbitComma	equ 04h
kbitSin		equ 05h
kbitApps	equ 06h
kbitGraphVar	equ 07h

kbdG4		equ 0F50018h
;----------------------------
kbdDecPnt	equ 00000001b
kbd2		equ 00000010b
kbd5		equ 00000100b
kbd8		equ 00001000b
kbdLParen	equ 00010000b
kbdCos		equ 00100000b
kbdPgrm		equ 01000000b
kbdStat		equ 10000000b

kbitDecPnt	equ 00h
kbit2		equ 01h
kbit5		equ 02h
kbit8		equ 03h
kbitLParen	equ 04h
kbitCos		equ 05h
kbitPgrm	equ 06h
kbitStat	equ 07h

kbdG5		equ 0F5001Ah
;----------------------------
kbdChs		equ 00000001b
kbd3		equ 00000010b
kbd6		equ 00000100b
kbd9		equ 00001000b
kbdRParen	equ 00010000b
kbdTan		equ 00100000b
kbdVars		equ 01000000b

kbitChs		equ 00h
kbit3		equ 01h
kbit6		equ 02h
kbit9		equ 03h
kbitRParen	equ 04h
kbitTan		equ 05h
kbitVars	equ 06h

kbdG6		equ 0F5001Ch
;----------------------------
kbdEnter	equ 00000001b
kbdAdd		equ 00000010b
kbdSub		equ 00000100b
kbdMul		equ 00001000b
kbdDiv		equ 00010000b
kbdPower	equ 00100000b
kbdClear	equ 01000000b

kbitEnter	equ 00h
kbitAdd		equ 01h
kbitSub		equ 02h
kbitMul		equ 03h
kbitDiv		equ 04h
kbitPower	equ 05h
kbitClear	equ 06h

kbdG7		equ 0F5001Eh
;----------------------------
kbdDown		equ 00000001b
kbdLeft		equ 00000010b
kbdRight	equ 00000100b
kbdUp		equ 00001000b

kbitDown	equ 00h
kbitLeft	equ 01h
kbitRight	equ 02h
kbitUp		equ 03h

;Tokens
;-----------------------------------------------------
EOSSTART		equ 00h

;DISPLAY CONVERSIONS COME IMMEDIATELY BEFORE 'TSTORE'
;
DCONV			equ 01h
;
tToDMS			equ DCONV ;01h
tToDEC			equ DCONV+1 ;02h
tToAbc			equ DCONV+2 ;03h > A b/c
;
tStore			equ DCONV+3 ;04h Lstore 01
;
tBoxPlot		equ 05h
;
BRACKS			equ 06h
;
tLBrack			equ BRACKS ;06h '['
tRBrack			equ BRACKS+1 ;07h ']'
tLBrace			equ BRACKS+2 ;08h '{'
tRBrace			equ BRACKS+3 ;09h '}'
;
tPOST1			equ BRACKS+4
;
tFromRad		equ tPOST1 ;0Ah Lradian
tFromDeg		equ tPOST1+1 ;0Bh Ldegree
tRecip			equ tPOST1+2 ;0Ch Linverse
tSqr			equ tPOST1+3 ;0Dh Lsquare
tTrnspos		equ tPOST1+4 ;0Eh Ltranspose
tCube			equ tPOST1+5 ;0Fh '^3'
;
tLParen			equ 10h ;10h '('
tRParen			equ 11h ;11h ')'
;
IMUN			equ 12h
;
tRound			equ IMUN ;12h 'round'
tPxTst			equ IMUN+1 ;13h 'PXL-TEST'
tAug			equ IMUN+2 ;14h 'aug'
tRowSwap		equ IMUN+3 ;15h 'rSwap'
tRowPlus		equ IMUN+4 ;16h 'rAdd'
tmRow			equ IMUN+5 ;17h 'multR'
tmRowPlus		equ IMUN+6 ;18h 'mRAdd'
tMax			equ IMUN+7 ;19h 'max'
tMin			equ IMUN+8 ;1Ah 'min'
tRToPr			equ IMUN+9 ;1Bh 'R>Pr
tRToPo			equ IMUN+10 ;1Ch 'R>Po
tPToRx			equ IMUN+11 ;1Dh 'P>Rx
tPToRy			equ IMUN+12 ;1Eh 'P>Ry
tMedian			equ IMUN+13 ;1Fh 'MEDIAN
tRandM			equ IMUN+14 ;20h 'randM'
tMean			equ IMUN+15 ;21h
tRoot			equ IMUN+16 ;22h 'ROOT'
tSeries			equ IMUN+17 ;23h 'seq'
tFnInt			equ IMUN+18 ;24h 'fnInt'
tNDeriv			equ IMUN+19 ;25h 'fnIr'
tEvalF			equ IMUN+20 ;26h
tFmin			equ IMUN+21 ;27h
tFmax			equ IMUN+22 ;28h
;
tEOSEL			equ IMUN+23
;
tSpace			equ tEOSEL ;29h ' '
tString			equ tEOSEL+1 ;2Ah '"'
tComma			equ tEOSEL+2 ;2Bh ','
;
tii			equ 2Ch ;i

;Postfix Functions
;-----------------------------------------
tPost			equ 2Dh
;
tFact			equ tPost ;2Dh '!'
;
tCubicR			equ 2Eh
tQuartR			equ 2Fh

;Number Tokens 
;---------------------------------------
NUMS			equ 30h
;
t0			equ NUMS ;30h
t1			equ NUMS+1 ;31h
t2			equ NUMS+2 ;32h
t3			equ NUMS+3 ;33h
t4			equ NUMS+4 ;34h
t5			equ NUMS+5 ;35h
t6			equ NUMS+6 ;36h
t7			equ NUMS+7 ;37h
t8			equ NUMS+8 ;38h
t9			equ NUMS+9 ;39h
tDecPt			equ NUMS+10 ;3Ah
tee			equ NUMS+11 ;3Bh

;Binary OP
;-------------------------------------------
tOr			equ 3Ch ;3Ch '_or_'
tXor			equ 3Dh ;3Dh
;
tColon			equ 3Eh ;3Eh ':'
tEnter			equ 3Fh ;3Fh Lenter
;
tAnd			equ 40h ;40h '_and_'

;Letter Tokens
;--------------------------------------
LET			equ 41h
tA			equ LET ;41h
tB			equ LET+1 ;42h
tC			equ LET+2 ;43h
tD			equ LET+3 ;44h
tE			equ LET+4 ;45h
tF			equ LET+5 ;46h
tG			equ LET+6 ;47h
tH			equ LET+7 ;48h
tI			equ LET+8 ;49h
tJ			equ LET+9 ;4Ah
tK			equ LET+10 ;4Bh
tL			equ LET+11 ;4Ch
tM			equ LET+12 ;4Dh
tN			equ LET+13 ;4Eh
tO			equ LET+14 ;4Fh
tP			equ LET+15 ;50h
tQ			equ LET+16 ;51h
tR			equ LET+17 ;52h
tS			equ LET+18 ;53h
tT			equ LET+19 ;54h
tU			equ LET+20 ;55h
tV			equ LET+21 ;56h
tW			equ LET+22 ;57h
tX			equ LET+23 ;58h
tY			equ LET+24 ;59h
tZ			equ LET+25 ;5Ah
tTheta			equ LET+26 ;5Bh

; TI-84+CSE/CE
tBlue		equ	41h
tRed		equ	42h
tBlack 		equ	43h
tMagenta	equ	44h
tGreen		equ	45h
tOrange		equ	46h
tBrown		equ	47h
tNavy		equ	48h
tLtBlue		equ	49h
tYellow		equ	4Ah
tWhite		equ	4Bh
tLtGray		equ	4Ch
tMedGray	equ	4Dh
tGray		equ	4Eh
tDarkGray	equ	4Fh

tGraphColor	equ	65h
tTextColor	equ	67h
tBackgroundOn	equ	5Bh
tBackgroundOff	equ	64h

tThin		equ	74h
;tThick - 0x7E 0x06 (was "Connected"?)
tAsm84CPrgm	equ	68h
tAsm84CCmp	equ	69h
tBorderColor	equ	6Ch

tAsm84CeCmp	equ	07Bh
tAsm84CePrgm	equ	07Ah

;These Var Tokens Are 1st Of A Double Token
;-----------------------------------------------

vToks			equ LET+27

;User Matrix Token, 2nd Token Needed For Name
;
tVarMat			equ vToks ;5Ch
;
;User List Token, 2nd Token Needed For Name
;
tVarLst			equ vToks+1 ;5Dh
;
;User Equation Token, 2nd Token Needed For Name
;
tVarequ 		equ vToks+2 ;5Eh
tProg			equ vToks+3 ;5Fh
;
;User Pict Token, 2nd Token Needed For Name
;
tVarPict		equ vToks+4 ;60h
;
;User GDB Token, 2nd Token Needed For Name
;
tVarGDB			equ vToks+5 ;61h
tVarOut			equ vToks+6 ;62h
tVarSys			equ vToks+7 ;63h

;Mode Setting Commands
;-------------------------------------------------
MODESA			equ vToks+8 ;64h
tRad			equ MODESA ;64h 'Radian'
tDeg			equ MODESA+1 ;65h 'Degree'
tNormF			equ MODESA+2 ;66h 'Normal'
tSci			equ MODESA+3 ;67h 'Sci'
tEng			equ MODESA+4 ;68h 'Eng'
tFloat			equ MODESA+5 ;69h 'Float'
CMPS			equ 6Ah
tEQ			equ CMPS ;6Ah '=='
tLT			equ CMPS+1 ;6Bh '<'
tGT			equ CMPS+2 ;6Ch '>'
tLE			equ CMPS+3 ;6Dh LLE
tGE			equ CMPS+4 ;6Eh LGE
tNE			equ CMPS+5 ;6Fh LNE

;Binary OP
;---------------------------------------
tAdd			equ 70h ;70h '+'
tSub			equ 71h ;71h '-'
tAns			equ 72h ;72h

;Mode Setting Commands
;------------------------------------------------------
MODES			equ 73h
tFix			equ MODES ;73h 'Fix_'
tSplitOn		equ MODES+1 ;74h
tFullScreen		equ MODES+2 ;75h
tStndrd			equ MODES+3 ;76h 'Func'
tParam			equ MODES+4 ;77h 'Param'
tPolar			equ MODES+5 ;78h 'Pol'
tSeqG			equ MODES+6 ;79h
tAFillOn		equ MODES+7 ;7Ah 'AUTO FILL ON'
tAFillOff		equ MODES+8 ;7Bh
tACalcOn		equ MODES+9 ;7Ch
tACalcOff		equ MODES+10 ;7Dh 'AutoFill OFF'

;Graph Format Tokens Are 2 Byte Tokens
;----------------------------------------
tGFormat		equ MODES+11 ;7Eh
tBoxIcon		equ 7Fh
tCrossIcon		equ 80h
tDotIcon		equ 81h

;(More) Binary OP
;---------------------------------------
tMul			equ 82h ;82h '*'
tDiv			equ 83h ;83h '/'

;Some Graph Commands
;-----------------------------------------------------
GRCMDS			equ 84h
tTrace			equ GRCMDS ; 84h 'Trace'
tClDrw			equ GRCMDS+1 ; 85h 'ClDrw'
tZoomStd		equ GRCMDS+2 ; 86h 'ZStd'
tZoomtrg		equ GRCMDS+3 ; 87h 'Ztrg'
tZoomBox		equ GRCMDS+4 ; 88h 'ZBOX'
tZoomIn			equ GRCMDS+5 ; 89h 'ZIn'
tZoomOut		equ GRCMDS+6 ; 8Ah 'ZOut'
tZoomSqr		equ GRCMDS+7 ; 8Bh 'ZSqr'
tZoomInt		equ GRCMDS+8 ; 8Ch 'ZInt'
tZoomPrev		equ GRCMDS+9 ; 8Dh 'ZPrev'
tZoomDec		equ GRCMDS+10 ; 8Eh 'ZDecm'
tZoomStat		equ GRCMDS+11 ; 8Fh 'ZStat
tUsrZm			equ GRCMDS+12 ; 90h 'ZRcl'
tPrtScrn		equ GRCMDS+13 ; 91h 'PrtScrn'
tZoomSto		equ GRCMDS+14 ; 92h  ZOOM STORE
tText			equ GRCMDS+15 ; 93h

;Binary OP (Combination & Permutation)
;-------------------------------------------------
tnPr			equ GRCMDS+16 ;94h '_nPr_'
tnCr			equ GRCMDS+17 ;95h '_nCr_'

;More Graph Commands
;--------------------------------------------------
tYOn			equ GRCMDS+18 ;96h 'FnOn_'
tYOff			equ GRCMDS+19 ;97h 'FnOff_'
tStPic			equ GRCMDS+20 ;98h 'StPic_'
tRcPic			equ GRCMDS+21 ;99h 'RcPic_'
tStoDB			equ GRCMDS+22 ;9Ah 'StGDB_'
tRclDB			equ GRCMDS+23 ;9Bh 'RcGDB_'
tLine			equ GRCMDS+24 ;9Ch 'Line'
tVert			equ GRCMDS+25 ;9Dh 'Vert_'
tPtOn			equ GRCMDS+26 ;9Eh 'PtOn'
tPtOff			equ GRCMDS+27 ;9Fh 'PtOff'

;Token A0 Cannot Be An EOS Function Since Low MULT=A0 Already
;-----------------------------------------------------
tPtChg			equ GRCMDS+28 ;A0h 'PtChg'
tPXOn			equ GRCMDS+29 ;A1h
tPXOff			equ GRCMDS+30 ;A2h
tPXChg			equ GRCMDS+31 ;A3h
tShade			equ GRCMDS+32 ;A4h 'Shade'
tCircl			equ GRCMDS+33 ;A5h 'Circl'
tHorz			equ GRCMDS+34 ;A6h 'HORIZONTAL'
tTanLn			equ GRCMDS+35 ;A7h 'TanLn'
tDrInv			equ GRCMDS+36 ;A8h 'DrInv_'
tDrawF			equ GRCMDS+37 ;A9h 'DrawF_'
tVarStrng		equ 0AAh

;Functions with No Arguments								
;--------------------------------------------------
NOARG			equ 0ABh
tRand			equ NOARG ;ABh 'rand'
tPi			equ NOARG+1 ;ACh  Lpi
tGetKey			equ NOARG+2 ;ADh 'getKy'
tAPost			equ tGetKey+1 ;APOSTROPHY
tQuest			equ tAPost+1 ;QUESTION MARK
UNARY			equ tQuest+1 ;B0h
tChs			equ UNARY ;B0h
tInt			equ UNARY+1 ;B1h
tAbs			equ UNARY+2 ;B2h
tDet			equ UNARY+3 ;B3h
tIdent			equ UNARY+4 ;B4h
tDim			equ UNARY+5 ;B5h
tSum			equ UNARY+6 ;B6h
tProd			equ UNARY+7 ;B7h
tNot			equ UNARY+8 ;B8h
tIPart			equ UNARY+9 ;B9h
tFPart			equ UNARY+10 ;BAh

;New 2 Byte Tokens
;------------------------------------------
t2ByteTok		equ 0BBh
UNARYLR			equ UNARY+12
tSqrt			equ UNARYLR ;BCh
tCubRt			equ UNARYLR+1 ;BDh
tLn			equ UNARYLR+2 ;BEh
tExp			equ UNARYLR+3 ;BFh
tLog			equ UNARYLR+4 ;C0h
tALog			equ UNARYLR+5 ;C1h
tSin			equ UNARYLR+6 ;C2h
tASin			equ UNARYLR+7 ;C3h
tCos			equ UNARYLR+8 ;C4h
tACos			equ UNARYLR+9 ;C5h
tTan			equ UNARYLR+10 ;C6h
tATan			equ UNARYLR+11 ;C7h
tSinH			equ UNARYLR+12 ;C8h
tASinH			equ UNARYLR+13 ;C9h
tCoshH			equ UNARYLR+14 ;CAh
tACosH			equ UNARYLR+15 ;CBh
tTanH			equ UNARYLR+16 ;CCh
tATanH			equ UNARYLR+17 ;CDh

;Some Programming Commands
;---------------------------------------------------
PROGTOK			equ UNARYLR+18
tIf			equ PROGTOK ;CEh
tThen			equ PROGTOK+1 ;CFh
tElse			equ PROGTOK+2 ;D0h
tWhile			equ PROGTOK+3 ;D1h
tRepeat			equ PROGTOK+4 ;D2h
tFor			equ PROGTOK+5 ;D3h
tEnd			equ PROGTOK+6 ;D4h
tReturn			equ PROGTOK+7 ;D5h
tLbl			equ PROGTOK+8 ;D6h 'Lbl_'
tGoto			equ PROGTOK+9 ;D7h 'Goto_'
tPause			equ PROGTOK+10 ;D8h 'Pause_'
tStop			equ PROGTOK+11 ;D9h 'Stop'
tISG			equ PROGTOK+12 ;DAh 'IS>'
tDSL			equ PROGTOK+13 ;DBh 'DS<'
tInput			equ PROGTOK+14 ;DCh 'Input_'
tPrompt			equ PROGTOK+15 ;DDh 'Prompt_'
tDisp			equ PROGTOK+16 ;DEh 'Disp_'
tDispG			equ PROGTOK+17 ;DFh 'DispG'
tOutput			equ PROGTOK+18 ;E0h 'Outpt'
tClLCD			equ PROGTOK+19 ;E1h 'ClLCD'
tConst			equ PROGTOK+20 ;E2h 'Fill'
tSortA			equ PROGTOK+21 ;E3h 'sortA_'
tSortD			equ PROGTOK+22 ;E4h 'sortD_'
tDispTab		equ PROGTOK+23 ;E5h 'Disp Table
tMenu			equ PROGTOK+24 ;E6h 'Menu'
tSendMBL		equ PROGTOK+25 ;E7h 'SEND'
tGetMBL			equ PROGTOK+26 ;E8h 'GET'

;Stat Plot Commands
;-----------------------------------------------------
statPCmd		equ PROGTOK+27
tPlotOn			equ statPCmd ;E9h ' PLOTSON'
tPlotOff		equ statPCmd+1 ;EAh ' PLOTSOFF
tListName		equ 0EBh ;LIST DESignATOR
tPlot1			equ 0ECh
tPlot2			equ 0EDh
tPlot3			equ 0EEh
tUnused01		equ 0EFh ;available?
tPower			equ 0F0h ;'^'
tXRoot			equ 0F1h ;LsupX,Lroot
STATCMD			equ 0F2h
tOneVar			equ STATCMD ;F2h 'OneVar_'
tTwoVar			equ STATCMD+1 ;F3h
tLR			equ STATCMD+2 ;F4h 'LinR(A+BX
tLRExp			equ STATCMD+3 ;F5h 'ExpR_'
tLRLn			equ STATCMD+4 ;F6h 'LnR_'
tLRPwr			equ STATCMD+5 ;F7h 'PwrR_'
tMedMed			equ STATCMD+6 ;F8h
tQuad			equ STATCMD+7 ;F9h
tClrLst			equ STATCMD+8 ;FAh 'CLEAR LIST
tClrTbl			equ STATCMD+9 ;FBh CLEAR TABLE
tHist			equ STATCMD+10 ;FCh 'Hist_'
txyLine			equ STATCMD+11 ;FDh 'xyline_'
tScatter		equ STATCMD+12 ;FEh 'Scatter_'
tLR1			equ STATCMD+13 ;FFh 'LINR(AX+B

;2nd Half Of Graph Format Tokens
;Format settings commands
;---------------------------------------------
GFMT			equ 00h
tSeq			equ GFMT ; 'SeqG'
tSimulG			equ GFMT+1 ; 'SimulG'
tPolarG			equ GFMT+2 ; 'PolarGC'
tRectG			equ GFMT+3 ; 'RectGC'
tCoordOn		equ GFMT+4 ; 'CoordOn'
tCoordOff		equ GFMT+5 ; 'CoordOff'
tDrawLine		equ GFMT+6 ; 'DrawLine'
tDrawDot		equ GFMT+7 ; 'DrawDot'
tAxisOn			equ GFMT+8 ; 'AxesOn'
tAxisOff		equ GFMT+9 ; 'AxesOff'
tGridOn			equ GFMT+10 ; 'GridOn'
tGridOff		equ GFMT+11 ; 'GridOff'
tLblOn			equ GFMT+12 ; 'LabelOn'
tLblOff			equ GFMT+13 ; 'LabelOff'
tWebOn			equ GFMT+14 ; 'WebOn'
tWebOff			equ GFMT+15 ; 'WebOFF'
tuv			equ GFMT+16 ; U vs V
tvw			equ GFMT+17 ; V vs W
tuw			equ GFMT+18 ; U vs W

;2nd Half Of User Matrix Tokens
;-------------------------------------
tMatA			equ 00h ;MAT A
tMatB			equ 01h ;MAT B
tMatC			equ 02h ;MAT C
tMatD			equ 03h ;MAT D
tMatE			equ 04h ;MAT E
tMatF			equ 05h ;MAT F
tMatG			equ 06h ;MAT G
tMatH			equ 07h ;MAT H
tMatI			equ 08h ;MAT I
tMatJ			equ 09h ;MAT J

;2nd Half Of User List Tokens
;--------------------------------------
tL1			equ 00h ;LIST 1
tL2			equ 01h ;LIST 2
tL3			equ 02h ;LIST 3
tL4			equ 03h ;LIST 4
tL5			equ 04h ;LIST 5
tL6			equ 05h ;LIST 6

;2nd Half Of User Equation Tokens
;----------------------------------
;  "Y" EQUATIONS HAVE BIT 4 SET
;
tY1			equ 10h ;Y1
tY2			equ 11h ;Y2
tY3			equ 12h ;Y3
tY4			equ 13h ;Y4
tY5			equ 14h ;Y5
tY6			equ 15h ;Y6
tY7			equ 16h ;Y7
tY8			equ 17h ;Y8
tY9			equ 18h ;Y9
tY0			equ 19h ;Y0

;Param Equations Have Bit 5 Set
;-----------------------------------
tX1T			equ 20h ;X1t
tY1T			equ 21h ;Y1t
tX2T			equ 22h ;X2t
tY2T			equ 23h ;Y2t
tX3T			equ 24h ;X3t
tY3T			equ 25h ;Y3t
tX4T			equ 26h ;X4t
tY4T			equ 27h ;Y4t
tX5T			equ 28h ;X5t
tY5T			equ 29h ;Y5t
tX6T			equ 2Ah ;X6t
tY6T			equ 2Bh ;Y6t

;Polar Equations Have Bit 6 Set
;----------------------------------
tR1			equ 40h ;R1
tR2			equ 41h ;R2
tR3			equ 42h ;R3
tR4			equ 43h ;R4
tR5			equ 44h ;R5
tR6			equ 45h ;R6

;Recursion Equations Have Bit 7 Set
;----------------------------------
tun			equ 80h ;Un
tvn			equ 81h ;Vn
twn			equ 82h ;Wn

;2nd Half User Picture Tokens
;------------------------------------
tPic1			equ 00h ;PIC1
tPic2			equ 01h ;PIC2
tPic3			equ 02h ;PIC3
tPic4			equ 03h ;PIC4
tPic5			equ 04h ;PIC5
tPic6			equ 05h ;PIC6
tPic7			equ 06h ;PIC7
tPic8			equ 07h ;PIC8
tPic9			equ 08h ;PIC9
tPic0			equ 09h ;PIC0

;2nd Half User Graph Database Tokens
;------------------------------------
tGDB1			equ 00h ;GDB1
tGDB2			equ 01h ;GDB2
tGDB3			equ 02h ;GDB3
tGDB4			equ 03h ;GDB4
tGDB5			equ 04h ;GDB5
tGDB6			equ 05h ;GDB6
tGDB7			equ 06h ;GDB7
tGDB8			equ 07h ;GDB8
tGDB9			equ 08h ;GDB9
tGDB0			equ 09h ;GDB0

;2nd Half Of String Vars
;------------------------------
tStr1			equ 00h
tStr2			equ 01h
tStr3			equ 02h
tStr4			equ 03h
tStr5			equ 04h
tStr6			equ 05h
tStr7			equ 06h
tStr8			equ 07h
tStr9			equ 08h
tStr0			equ 09h

;2nd Half Of System Output Only Variables
;----------------------------------------------------------------
;OPEN			equ 00h
tRegEq			equ 01h ;REGRESSION EQUATION
tStatN			equ 02h ;STATISTICS N
tXMean			equ 03h ;X MEAN
tSumX			equ 04h ;SUM(X)
tSumXSqr		equ 05h ;SUM(X^2)
tStdX			equ 06h ;STANDARD DEV X
tStdPX			equ 07h ;STANDARD DEV POP X
tMinX			equ 08h ;Min X VALUE
tMaxX			equ 09h ;Max X VALUE
tMinY			equ 0Ah ;Min Y VALUE
tMaxY			equ 0Bh ;Max Y VALUE
tYmean			equ 0Ch ;Y MEAN
tSumY			equ 0Dh ;SUM(Y)
tSumYSqr		equ 0Eh ;SUM(Y^2)
tStdY			equ 0Fh ;STANDARD DEV Y
tStdPY			equ 10h ;STANDARD DEV POP Y
tSumXY			equ 11h ;SUM(XY)
tCorr			equ 12h ;CORRELATION
tMedX			equ 13h ;MED(X)
tQ1			equ 14h ;1ST QUADRANT OF X
tQ3			equ 15h ;3RD QUADRANT OF X
tQuadA			equ 16h ;1ST TERM OF QUAD POLY REG/ Y-INT
tQuadB			equ 17h ;2ND TERM OF QUAD POLY REG/ SLOPE
tQuadC			equ 18h ;3RD TERM OF QUAD POLY REG
tCubeD			equ 19h ;4TH TERM OF CUBIC POLY REG
tQuartE			equ 1Ah ;5TH TERM OF QUART POLY REG
tMedX1			equ 1Bh ;x1 FOR MED-MED
tMedX2			equ 1Ch ;x2 FOR MED-MED
tMedX3			equ 1Dh ;x3 FOR MED-MED
tMedY1			equ 1Eh ;y1 FOR MED-MED
tMedY2			equ 1Fh ;y2 FOR MED-MED
tMedY3			equ 20h ;y3 FOR MED-MED
tRecurn			equ 21h	;RECURSION N
tStatP			equ 22h
tStatZ			equ 23h
tStatT			equ 24h
tStatChi		equ 25h
tStatF			equ 26h
tStatDF			equ 27h
tStatPhat		equ 28h
tStatPhat1		equ 29h
tStatPhat2		equ 2Ah
tStatMeanX1		equ 2Bh
tStatStdX1		equ 2Ch
tStatN1			equ 2Dh
tStatMeanX2		equ 2Eh
tStatStdX2		equ 2Fh
tStatN2			equ 30h
tStatStdXP		equ 31h
tStatLower		equ 32h
tStatUpper		equ 33h
tStat_s			equ 34h
tLRSqr			equ 35h ;r^2
tBRSqr			equ 36h ;R^2

;These next tokens are only used to access the data
;they are display only and the user cannot access them at all
;------------------------------------------------------------
tF_DF			equ 37h ;ANOFAV FACTOR DF
tF_SS			equ 38h ;ANOFAV FACTOR SS
tF_MS			equ 39h ;ANOFAV FACTOR MS
tE_DF			equ 3Ah ;ANOFAV ERROR DF
tE_SS			equ 3Bh ;ANOFAV ERROR SS
tE_MS			equ 3Ch ;ANOFAV ERROR MS

;2nd Half Of System Input/Output Variables
;------------------------------------------------
;		SYSTEM VARIABLE EQUATES
;
tuXscl			equ 0
tuYscl			equ 1
tXscl			equ 2
tYscl			equ 3
tRecuru0		equ 4 ;U 1ST INITIAL COND
tRecurv0		equ 5 ;V 1ST INITIAL COND
tun1			equ 6 ;U(N-1); NOT USED
tvn1			equ 7 ;V(N-1); NOT USED
tuRecuru0		equ 8 ;
tuRecurv0		equ 9 ;
tXmin			equ 0Ah
tXmax			equ 0Bh
tYmin			equ 0Ch
tYmax			equ 0Dh
tTmin			equ 0Eh
tTmax			equ 0Fh
tThetaMin		equ 10h
tThetaMax		equ 11h
tuXmin			equ 12h
tuXmax			equ 13h
tuYmin			equ 14h
tuYmax			equ 15h
tuThetMin		equ 16h
tuThetMax		equ 17h
tuTmin			equ 18h
tuTmax			equ 19h
tTblMin			equ 1Ah
tPlotStart		equ 1Bh
tuPlotStart		equ 1Ch
tnMax			equ 1Dh
tunMax			equ 1Eh
tnMin			equ 1Fh
tunMin			equ 20h
tTblStep		equ 21h
tTStep			equ 22h
tThetaStep		equ 23h
tuTStep			equ 24h
tuThetStep		equ 25h
tDeltaX			equ 26h
tDeltaY			equ 27h
tXFact			equ 28h
tYFact			equ 29h
tTblInput		equ 2Ah
tFinN			equ 2Bh
tFinI			equ 2Ch
tFinPV			equ 2Dh
tFinPMT			equ 2Eh
tFinFV			equ 2Fh
tFinPY			equ 30h
tFinCY			equ 31h
tRecurw0		equ 32h ;w0(1)
tuRecurw0		equ 33h
tPlotStep		equ 34h
tuPlotStep		equ 35h
tXres			equ 36h
tuXres			equ 37h
tRecuru02		equ 38h ;u0(2)
tuRecuru02		equ 39h
tRecurv02		equ 3Ch ;v0(2)
tuRecurv02		equ 3Dh
tRecurw02		equ 3Eh ;w0(2)
tuRecurw02		equ 3Fh

;2nd Byte Of t2ByteTok Tokens
;------------------------------
tFinNPV			equ 00h
tFinIRR			equ 01h
tFinBAL			equ 02h
tFinPRN			equ 03h
tFinINT			equ 04h
tFinToNom		equ 05h
tFinToEff		equ 06h
tFinDBD			equ 07h
tLCM			equ 08h
tGCD			equ 09h
tRandInt		equ 0Ah
tRandBin		equ 0Bh
tSubStrng		equ 0Ch
tStdDev			equ 0Dh
tVariance		equ 0Eh
tInStrng		equ 0Fh
tDNormal		equ 10h
tInvNorm		equ 11h
tDT			equ 12h
tChI			equ 13h
tDF			equ 14h
tBINPDF			equ 15h
tBINCDF			equ 16h
tPOIPDF			equ 17h
tPOICDF			equ 18h
tGEOPDF			equ 19h
tGEOCDF			equ 1Ah
tNormalPDF		equ 1Bh
tTPDF			equ 1Ch
tChiPDF			equ 1Dh
tFPDF			equ 1Eh
tRandNorm		equ 1Fh
tFinFPMT		equ 20h
tFinFI			equ 21h
tFinFPV			equ 22h
tFinFN			equ 23h
tFinFFV			equ 24h
tConj			equ 25h
tReal			equ 26h
tImag			equ 27h
tAngle			equ 28h
tCumSum			equ 29h
tExpr			equ 2Ah
tLength			equ 2Bh
tDeltaLst		equ 2Ch
tRef			equ 2Dh
tRRef			equ 2Eh
tToRect			equ 2Fh
tToPolar		equ 30h
tConste			equ 31h
tSinReg			equ 32h
tLogistic		equ 33h
tLinRegTTest		equ 34h
tShadeNorm		equ 35h
tShadeT			equ 36h
tShadeChi		equ 37h
tShadeF			equ 38h
tMatToLst		equ 39h
tLstToMat		equ 3Ah
tZTest			equ 3Bh
tTTest			equ 3Ch
t2SampZTest		equ 3Dh
t1PropZTest		equ 3Eh
t2PropZTest		equ 3Fh
tChiTest		equ 40h
tZIntVal		equ 41h
t2SampZInt		equ 42h
t1PropZInt		equ 43h
t2PropZInt		equ 44h
tGraphStyle		equ 45h
t2SampTTest		equ 46h
t2SampFTest		equ 47h
tTIntVal		equ 48h
t2SampTInt		equ 49h
tSetupLst		equ 4Ah
tFinPMTend		equ 4Bh
tFinPMTbeg		equ 4Ch
tRealM			equ 4Dh
tPolarM			equ 4Eh
tRectM			equ 4Fh
tExprOn			equ 50h
tExprOff		equ 51h
tClrAllLst		equ 52h
tGetCalc		equ 53h
tDelVar			equ 54h
tEquToStrng		equ 55h
tStrngToequ 		equ 56h
tDelLast		equ 57h
tSelect			equ 58h
tANOVA			equ 59h
tModBox			equ 5Ah
tNormProb		equ 5Bh
tMGT			equ 64h ;VERTICAL SPLIT
tZFit			equ 65h ;ZOOM FIT
tDiag_on		equ 66h ;DIANOSTIC DISPLAY ON
tDiag_off		equ 67h ;DIANOSTIC DISPLAY OFF
tOkEnd2v0		equ 67h ;end of 2byte tokens for version 0.
tArchive		equ 68h ;archive
tUnarchive		equ 69h ;unarchive
tasm			equ 6Ah
tasmComp		equ 6Bh	;asm compile
tasmPrgm		equ 6Ch	;Signifies a program is asm
tasmCmp			equ 6Dh	;asm program is compiled
tLcapAAcute		equ 6Eh
tLcapAGrave		equ 6Fh
tLcapACaret		equ 70h
tLcapADier		equ 71h
tLaAcute		equ 72h
tLaGrave		equ 73h
tLaCaret		equ 74h
tLaDier			equ 75h
tLcapEAcute		equ 76h
tLcapEGrave		equ 77h
tLcapECaret		equ 78h
tLcapEDier		equ 79h
tLeAcute		equ 7Ah
tLeGrave		equ 7Bh
tLeCaret		equ 7Ch
tLeDier			equ 7Dh
tLcapIGrave		equ 7Fh
tLcapICaret		equ 80h
tLcapIDier		equ 81h
tLiAcute		equ 82h
tLiGrave		equ 83h
tLiCaret		equ 84h
tLiDier			equ 85h
tLcapOAcute		equ 86h
tLcapOGrave		equ 87h
tLcapOCaret		equ 88h
tLcapODier		equ 89h
tLoAcute		equ 8Ah
tLoGrave		equ 8Bh
tLoCaret		equ 8Ch
tLoDier			equ 8Dh
tLcapUAcute		equ 8Eh
tLcapUGrave		equ 8Fh
tLcapUCaret		equ 90h
tLcapUDier		equ 91h
tLuAcute		equ 92h
tLuGrave		equ 93h
tLuCaret		equ 94h
tLuDier			equ 95h
tLcapCCed		equ 96h
tLcCed			equ 97h
tLcapNTilde		equ 98h
tLnTilde		equ 99h
tLaccent		equ 9Ah
tLgrave			equ 9Bh
tLdieresis		equ 9Ch
tLquesDown		equ 9Dh
tLexclamDown		equ 9Eh
tLalpha			equ 9Fh
tLbeta			equ 0A0h
tLgamma			equ 0A1h
tLcapDelta		equ 0A2h
tLdelta			equ 0A3h
tLepsilon		equ 0A4h
tLlambda		equ 0A5h
tLmu			equ 0A6h
tLpi			equ 0A7h
tLrho			equ 0A8h
tLcapSigma		equ 0A9h
tLphi			equ 0ABh
tLcapOmega		equ 0ACh
tLphat			equ 0ADh
tLchi			equ 0AEh
tLstatF			equ 0AFh
tLa			equ 0B0h
tLb			equ 0B1h
tLc			equ 0B2h
tLd			equ 0B3h
tLsmalle		equ 0B4h
tLf			equ 0B5h
tLsmallg		equ 0B6h
tLh			equ 0B7h
tLi			equ 0B8h
tLj			equ 0B9h
tLk			equ 0BAh
tLl			equ 0BCh
tLm			equ 0BDh
tLsmalln		equ 0BEh
tLo			equ 0BFh
tLp			equ 0C0h
tLq			equ 0C1h
tLsmallr		equ 0C2h
tLs			equ 0C3h
tLsmallt		equ 0C4h
tLu			equ 0C5h
tLv			equ 0C6h
tLw			equ 0C7h
tLx			equ 0C8h
tLy			equ 0C9h
tLz			equ 0CAh
tLsigma			equ 0CBh
tLtau			equ 0CCh
tLcapIAcute		equ 0CDh
tGarbagec		equ 0CEh
LastToken		equ 0CEh ;tLAST TOKEN IN THIS VERSION...

;Data Type Equates												
;---------------------------------------------------------------------
RealObj			equ 0
ListObj			equ 1
MatObj			equ 2
EquObj			equ 3
StrngObj		equ 4
ProgObj			equ 5
ProtProgObj		equ 6
PictObj			equ 7
GDBObj			equ 8
UnknownObj		equ 9
UnknownEquObj		equ 0Ah
NewEquObj		equ 0Bh
CplxObj			equ 0Ch
CListObj		equ 0Dh
UndefObj		equ 0Eh
WindowObj		equ 0Fh
ZStoObj			equ 10h
TblRngObj		equ 11h
LCDObj			equ 12h
BackupObj		equ 13h
AppObj			equ 14h	;application, only used in menus/link
AppVarObj		equ 15h	;application variable
TempProgObj		equ 16h ;program, home deletes when finished
GroupObj		equ 17h ;group.

;System Error Codes												
;-----------------------------------------------------------
E_EDITF			equ 7 ;allow re-entering application
E_EDIT			equ 1<<E_EDITF
E_Mask			equ 7Fh
E_Overflow		equ 1+E_EDIT
E_DivBy0		equ 2+E_EDIT
E_SingularMat		equ 3+E_EDIT
E_Domain		equ 4+E_EDIT
E_Increment		equ 5+E_EDIT
E_Break			equ 6+E_EDIT
E_NonReal		equ 7+E_EDIT
E_Syntax		equ 8+E_EDIT
E_DataType		equ 9+E_EDIT
E_Argument		equ 10+E_EDIT
E_DimMismatch		equ 11+E_EDIT
E_Dimension		equ 12+E_EDIT
E_Undefined		equ 13+E_EDIT
E_Memory		equ 14+E_EDIT
E_Invalid		equ 15+E_EDIT
E_IllegalNest		equ 16+E_EDIT
E_Bound			equ 17+E_EDIT
E_GraphRange		equ 18+E_EDIT
E_Zoom			equ 19+E_EDIT
E_Label			equ 20
E_Stat			equ 21
E_Solver		equ 22+E_EDIT
E_Singularity		equ 23+E_EDIT
E_SignChange		equ 24+E_EDIT
E_Iterations		equ 25+E_EDIT
E_BadGuess		equ 26+E_EDIT
E_StatPlo		equ 27
E_TolTooSmall		equ 28+E_EDIT
E_Reserved		equ 29+E_EDIT
E_Mode			equ 30+E_EDIT
E_LnkErr		equ 31+E_EDIT
E_LnkMemErr		equ 32+E_EDIT
E_LnkTransErr		equ 33+E_EDIT
E_LnkDupErr		equ 34+E_EDIT
E_LnkMemFull		equ 35+E_EDIT
E_Unknown		equ 36+E_EDIT
E_Scale			equ 37+E_EDIT
E_IdNotFound		equ 38
E_NoMode		equ 39+E_EDIT
E_Validation		equ 40
E_Length		equ 41+E_EDIT
E_Application		equ 42+E_EDIT
E_AppErr1		equ 43+E_EDIT
E_AppErr2		equ 44+E_EDIT
E_ExpiredApp		equ 45
E_BadAdd		equ 46
E_Archived		equ 47+E_EDIT
E_Version		equ 48
E_ArchFull		equ 49
E_Variable		equ 50+E_EDIT
E_Duplicate		equ 51+E_EDIT

;System Variable Equates
;------------------------------
XSCLt			equ 02h
YSCLt			equ 03h
XMINt			equ 0Ah
XMAXt			equ 0Bh
YMINt			equ 0Ch
YMAXt			equ 0Dh
TMINt			equ 0Eh
TMAXt			equ 0Fh
THETMINt		equ 10h
THETMAXt		equ 11h
TBLMINt			equ 1Ah
PLOTSTARTt		equ 1Bh
NMAXt			equ 1Dh
NMINt			equ 1Fh
TBLSTEPt		equ 21h
TSTEPt			equ 22h
THETSTEPt		equ 23h
DELTAXt			equ 26h
DELTAYt			equ 27h
XFACTt			equ 28h
YFACTt			equ 29h
FINNt			equ 2Bh
FINIt			equ 2Ch
FINPVt			equ 2Dh
FINPMTt			equ 2Eh
FINFVt			equ 2Fh
FINPYt			equ 30h
FINCYt			equ 31h
PLOTSTEPt		equ 34h
XRESt			equ 36h

;Equates To RAM Locations For Stat Vars
;----------------------------------------------------------------
FPLEN			equ 9 ;Length of a floating-point number.
StatN			equ statVars
XMean			equ StatN + FPLEN
SumX			equ XMean + FPLEN
SumXSqr			equ SumX + FPLEN
StdX			equ SumXSqr + FPLEN
StdPX			equ StdX + FPLEN
MinX			equ StdPX + FPLEN
MaxX			equ MinX + FPLEN
MinY			equ MaxX + FPLEN
MaxY			equ MinY + FPLEN
YMean			equ MaxY + FPLEN
SumY			equ YMean + FPLEN
SumYSqr			equ SumY + FPLEN
StdY			equ SumYSqr + FPLEN
StdPY			equ StdY + FPLEN
SumXY			equ StdPY + FPLEN
Corr			equ SumXY + FPLEN
MedX			equ Corr + FPLEN
Q1			equ MedX + FPLEN
Q3			equ Q1 + FPLEN
QuadA			equ Q3 + FPLEN
QuadB			equ QuadA + FPLEN
QuadC			equ QuadB + FPLEN
CubeD			equ QuadC + FPLEN
QuartE			equ CubeD + FPLEN
MedX1			equ QuartE + FPLEN
MedX2			equ MedX1 + FPLEN
MedX3			equ MedX2 + FPLEN
MedY1			equ MedX3 + FPLEN
MedY2			equ MedY1 + FPLEN
MedY3			equ MedY2 + FPLEN
PStat			equ MedY3 + 2*FPLEN
ZStat			equ PStat + FPLEN
TStat			equ ZStat + FPLEN
ChiStat			equ TStat + FPLEN
FStat			equ ChiStat + FPLEN
DF			equ FStat + FPLEN
Phat			equ DF + FPLEN
Phat1			equ Phat + FPLEN
Phat2			equ Phat1 + FPLEN
MeanX1			equ Phat2 + FPLEN
StdX1			equ MeanX1 + FPLEN
StatN1			equ StdX1 + FPLEN
MeanX2			equ StatN1 + FPLEN
StdX2			equ MeanX2 + FPLEN
StatN2			equ StdX2 + FPLEN
StdXP2			equ StatN2 + FPLEN
SLower			equ StdXP2 + FPLEN
SUpper			equ SLower + FPLEN
SStat			equ SUpper + FPLEN
F_DF			equ anovaf_vars
F_SS			equ F_DF + FPLEN
F_MS			equ F_SS + FPLEN
E_DF			equ F_MS + FPLEN
E_SS			equ E_DF + FPLEN
E_MS			equ E_SS + FPLEN

;System Flags
;----------------------------------------------------------------------
ioDelFlag		equ 0h
inDelete		equ 0		;1 = DELETE SCREEN 

trigFlags		equ 0h	;Trigonometry mode settings
trigDeg			equ 2		;1=degrees, 0=radians

kbdFlags		equ 0h	;Keyboard scan
kbdSCR			equ 3		;1=scan code ready
kbdKeyPress		equ 4		;1=key has been pressed

doneFlags		equ 0h	;display "Done"
donePrgm		equ 5		;1=display "Done" after prgm
;----------------------------------------------------------------------
editFlags		equ 1h
editOpen		equ 2		;1=edit buffer is open

ansFlags		equ 1
AnsScroll		equ 3		;1=answer can scroll, seems must be reset in order to move about edit buffer

monFlags		equ 1h	 ;monitor flags
monAbandon		equ 4		;1=don't start any long process in put away (#715)
;----------------------------------------------------------------------
plotFlags		equ 2h	;plot generation flags
plotLoc 		equ 1		;0=bkup & display, 1=display only
plotDisp		equ 2		;1=plot is in display, 0=text in display, this also indicates whether graph is being shown or not

grfModeFlags		equ 2h	;graph mode settings
grfFuncM		equ 4		;1=function graph
grfPolarM		equ 5		;1=polar graph
grfParamM		equ 6		;1=parametric graph
grfRecurM		equ 7		;1=RECURSION graph
;----------------------------------------------------------------------
graphFlags		equ 3h
graphDraw		equ 0		;0=graph is valid, 1=redraw graph(dirty)
graphCursor		equ 2
;----------------------------------------------------------------------
grfDBFlags		equ 4h
grfDot			equ 0		;0=line, 1=dot
grfSimul		equ 1		;0=sequential, 1=simultaneous
grfGrid 		equ 2		;0=no grid, 1=grid
grfPolar		equ 3		;0=rectangular, 1=polar coordinates
grfNoCoord		equ 4		;0=display coordinates, 1=off
grfNoAxis		equ 5		;0=axis, 1=no axis
grfLabel		equ 6		;0=off, 1=axis label
;----------------------------------------------------------------------
textFlags		equ 5h	;Text output flags
textEraseBelow		equ 1		;1=erase line below small char
textScrolled		equ 2		;1=screen scrolled
textInverse		equ 3		;1=display inverse bit-map
textInsMode		equ 4		;0=overstrike, 1=insert mode
;----------------------------------------------------------------------
ParsFlag		equ 6h	;PARSER flags
;----------------------------------------------------------------------
ParsFlag2		equ 7h	;PARSER flags
numOP1			equ 0		;1=RESULT IN OP1, 0=NO RESULT
;----------------------------------------------------------------------
newDispF		equ 8h	;Derivative mode flags
preClrForMode		equ 0		;1=HELP BLINK ON MODE SCREEN
allowProgTokens		equ 1		;1=allow programming tokens to be parsed in BASIC programs

apdFlags		equ 8h	;Automatic power-down
apdAble 		equ 2		;1=APD enabled
apdRunning		equ 3		;1=APD clock running
apdWarmStart		equ 4		;1=calculator is turning on from APD or power loss
;----------------------------------------------------------------------
web_err_mask		equ 60h
;----------------------------------------------------------------------
onFlags 		equ 9h	;on key flags
parseInput		equ 1		;1=parse input when done
onRunning		equ 3		;1=calculator is running
onInterrupt		equ 4		;1=on key interrupt request

statFlags		equ 9h	;statistics flags
;unknown		equ 5		;unknown
statsValid		equ 6		;1=stats are valid
;----------------------------------------------------------------------
fmtFlags		equ 0Ah	;numeric format flags
fmtExponent		equ 0	 	;1=show exponent, 0=no exponent
fmtEng			equ 1	 	;1=engineering notion, 0=scientific
fmtHex			equ 2	 	;1=hexadecimal
fmtOct			equ 3	 	;1=octal
fmtBin			equ 4	 	;1=binary

numMode			equ 0Ah
fmtReal			equ 5
fmtRect			equ 6
fmtPolar		equ 7

realMode		equ 5
rectMode		equ 6
polarMode		equ 7
;					;if Hex and Oct both = 1
;					; then Bin=0 means >Frac
;					; Bin=1 means >DMS
fmtBaseMask		equ  00011100b	; mask to base flags
fmtBaseShift		equ  2		; offset to base flags
;
;       CHECK IF THESE ARE USED BY NUMFORM,
;
;               	equ  6
;               	equ  7
;----------------------------------------------------------------------
fmtOverride		equ 0Bh	;copy of fmtFlags with conversion override
;----------------------------------------------------------------------
fmtEditFlags		equ 0Ch	;numeric editing flags
fmtEdit			equ 0		;1=format number for editing

curFlags		equ 0Ch	;Cursor
curAble 		equ 2		;1=cursor flash is enabled
curOn			equ 3		;1=cursor is showing
curLock 		equ 4		;1=cursor is locked off

cmdFlags		equ 0Ch	;command editor flags
cmdVirgin		equ 5		;1=nothing has been typed in cmd bfr
;----------------------------------------------------------------------
appFlags		equ 0Dh	;application flags
appWantIntrpt		equ 0		;1=want ON key interrupts
appTextSave		equ 1		;1=save characters in textShadow
appAutoScroll		equ 2		;1=auto-scroll text on last line
appMenus		equ 3		;1=process keys that bring up menus, 0=check Lock menu flag
appLockMenus		equ 4		;1=ignore menu keys, 0=switch to home screen and bring up menu
appCurGraphic		equ 5		;1=graphic cursor
appCurWord		equ 6		;1=text cursor covers entire word
appExit 		equ 7		;1=application handles [EXIT] key itself

appWantIntrptF		equ 1<<appWantIntrpt
appTextSaveF		equ 1<<appTextSave
appAutoScrollF		equ 1<<appAutoScroll
appMenusF		equ 1<<appMenus
appLockMenusF		equ 1<<appLockMenus
appCurGraphicF		equ 1<<appCurGraphic
appCurWordF		equ 1<<appCurWord
appExitF		equ 1<<appExit
;----------------------------------------------------------------------
rclFlag			equ 0Eh	;OS recall queue flags
enableQueue		equ 7		;1 = enable recall queue
;----------------------------------------------------------------------
seqFlags		equ 0Fh	;Sequential Graph flags
webMode			equ 0		;0 = NORMAL SEQ MODE, 1 = WEB MODE
webVert			equ 1
sequv			equ 2		;U vs V
seqvw			equ 3		;V vs W
sequw			equ 4		;U vs W
;----------------------------------------------------------------------
promptFlags		equ 11h	;prompt line flags
promptEdit		equ 0		;1=editing in prompt buffer
;----------------------------------------------------------------------
indicFlags		equ 12h	;Indicator flags
indicRun		equ 0		;1=run indicator ON
indicInUse		equ 1		;indicator save area in use=1, free=0 ;resetting will disable 2nd while in _getkey
indicOnly		equ 2		;interrupt handler only checks run indicator

shiftFlags		equ 12h	;[2nd] and [ALPHA] flags
shift2nd		equ 3		;1=[2nd] has been pressed
shiftAlpha		equ 4		;1=[ALPHA] has been pressed
shiftLwrAlph		equ 5		;1=lower case, 0=upper case
shiftALock		equ 6		;1=alpha lock has been pressed
shiftKeepAlph		equ 7		;1=cannot cancel alpha shift
;----------------------------------------------------------------------
tblFlags		equ 13h	;table flags.
autoFill		equ 4		;1=prompt, 0=fillAuto
autoCalc		equ 5		;1=prompt, 0=CalcAuto
reTable			equ 6		;0=table is okay, 1=must recompute table.
;----------------------------------------------------------------------
sGrFlags		equ 14h
grfSplit		equ 0		;1=Split Graph, 0=Normal
vertSplit		equ 1		;1=Vertical (left-right) Split
grfSChanged		equ 2		;1=Graph just changed Split <-> normal
grfSplitOverride	equ 3		;1 = ignore graph split flag if set
write_on_graph		equ 4		;1 = TEXT OR EQU WRITING TO GRAPH SCREEN
g_style_active		equ 5		;1 = GRAPH STYLES ARE ENABLED, USE THEM
cmp_mod_box		equ 6		;1 = DOING MOD BOX PLOT COMPUTATION
textWrite		equ 7
;----------------------------------------------------------------------
newIndicFlags		equ 15h
extraIndic		equ 0
saIndic			equ 1
;3 has something to do with stat/list editor
;----------------------------------------------------------------------
interruptFlags		equ 16h
secondTimerEnabled	equ 0		;1 = second hardware timer enabled
batteryFlags		equ 16h
batteriesGood		equ 2		;1 = batteries good, I think this being reset will force the calc to shut off, used in USB error handler
;----------------------------------------------------------------------
smartFlags		equ 17h
smarter_mask		equ 3
smarter_test		equ 1
smartGraph		equ 0
smartGraph_inv		equ 1
;----------------------------------------------------------------------
traceFlags		equ 18h
grfExpr			equ 0		;set to hide expression while tracing
;----------------------------------------------------------------------
;There is a flag 19h.
;----------------------------------------------------------------------
statFlags2		equ 1Ah
statDiagnosticsOn	equ 0		;1 = stat diagnostics on
;----------------------------------------------------------------------
linkFlags		equ 1Bh
IDis95h			equ 1		;1 = link routines use machine ID 95h (CBL)
IDis82h			equ 2		;1 = link routines use machine ID 82h (TI-82)
IDis83h			equ 3		;1 = link routines use machine ID 83h (TI-83)
IDis03h			equ 4		;1 = link routines use machine ID 03h (PC to TI-83)
USBenabled		equ 5		;1 = use USB port first, or at least try to
;----------------------------------------------------------------------
;There is a flag 1Ch (stats-related).
;----------------------------------------------------------------------
;There is a flag 1Dh.
;----------------------------------------------------------------------
;There is a flag 1Eh.
;----------------------------------------------------------------------
varTypeMask		equ 1Fh	;is this a flag byte? yes
varGraphRef		equ 6
;----------------------------------------------------------------------
graphFlags2		equ 1Fh
splitOverride		equ 3		;0 = force full screen with ParseInp, or something
;----------------------------------------------------------------------
asm_Flag1		equ 21h	;ASM CODING
asm_Flag2		equ 22h	;ASM CODING
asm_Flag3		equ 23h	;ASM CODING
;----------------------------------------------------------------------
arcFlag			equ 24h
checkBatteryLevelFirst	equ 0		;1 = check battery levels in Arc_Unarc first and throw error if low

getSendFlg		equ 24h
comFailed		equ 1		;1 = Get/Send Communication Failed

selfTestFlag		equ 24h
resetOnPowerOn		equ 2		;1 = Force RAM reset when APD disabled on next power on

appLwrCaseFlag		equ 24h
lwrCaseActive		equ 3
;----------------------------------------------------------------------
contextFlags		equ 25h
nocxPutAway		equ 5		;1 = do not call cxPutAway routine
;----------------------------------------------------------------------
groupFlags		equ 26h ;used temporarily in Arc_Unarc
inGroup			equ 1		;1 = IN GROUP CONTEXT
noCompletionByte	equ 2		;1 = do not write 0FCh when calling Arc_Unarc, leave as 0FEh
noDataWrite		equ 3		;1 = do not write data when calling Arc_Unarc, nor size bytes
writeSizeBytesOnly	equ 5		;1 = only write size bytes when calling Arc_Unarc
;----------------------------------------------------------------------
;There is a flag 27h.
;----------------------------------------------------------------------
APIFlg			equ 28h
appAllowContext		equ 0           ;App wants context changes to happen
;1 set to ignore a key after returning from rawkeyhook
;2 set to send this key back?
;3
appRunning		equ 4		;app is currently running
;5
;6
appRetKeyOff		equ 7		;1 = GetKey returns kOff when [2nd]+[ON] pressed
;----------------------------------------------------------------------
apiFlg2			equ 29h
;----------------------------------------------------------------------
apiFlg3			equ 2Ah
;1 set means using small font?
;----------------------------------------------------------------------
apiFlg4			equ 2Bh
cellOverride		equ 1		;use cell override
fullScrnDraw		equ 2		;DRAW INTO LAST ROW/COL OF SCREEN
;----------------------------------------------------------------------
mouseFlag1		equ 2Ch
;----------------------------------------------------------------------
mouseFlag2		equ 2Dh ;might want to keep this always reset
;----------------------------------------------------------------------
xapFlag0		equ 2Eh	;external app flags, do not use 0,(iy+2Eh) (used by mouse routines)
xapFlag1		equ 2Fh
xapFlag2		equ 30h
xapFlag3		equ 31h
;----------------------------------------------------------------------
fontFlags		equ 32h
fracDrawLFont		equ 2
fracTallLFont		equ 3
customFont		equ 7
;----------------------------------------------------------------------
hookflags1		equ 33h ;also scriptFlag, rclFlag2, backGroundLink
alt_On			equ 0		;run ONSCRPT at startup
alt_Off			equ 1		;run OFFSCRPT at shutdown
useRclQueueEnd		equ 2		;1 = external mode
ignoreBPLink		equ 3		;1 = override flag for link activity hook
bPLinkOn		equ 4		;1 = link activity hook active
enableKeyEcho		equ 5		;1 = sends keypresses back to connected calc as remote control packets (with GetCSC vs. GetKey codes...really dumb, TI)
noTempDelete		equ 6		;1 = do not delete temporary programs at homescreen
;----------------------------------------------------------------------
hookflags2		equ 34h ;also sysHookFlg
getCSCHookActive	equ 0		;1 = GetCSC hook active
libraryHookActive	equ 1		;1 = library hook active
;2 This is set in the OS, but never referenced and the code is never executed
homescreenHookActive	equ 4		;1 = homescreen hook active
rawKeyHookActive	equ 5		;1 = raw key hook active
catalog2HookActive	equ 6		;1 = catalog 2 hook active
cursorHookActive	equ 7		;1 = cursor hook active
;----------------------------------------------------------------------
hookflags3		equ 35h ;also sysHookFlg1
tokenHookActive		equ 0		;1 = token hook active
localizeHookActive	equ 1		;1 = localize hook active
windowHookActive	equ 2		;1 = window hook active
graphHookActive		equ 3		;1 = graph hook active
yEquHookActive		equ 4		;1 = Y= hook active
fontHookActive		equ 5		;1 = font hook active
regraphHookActive	equ 6		;1 = regraph hook active
drawingHookActive	equ 7		;1 = drawing hook active
;----------------------------------------------------------------------
hookflags4		equ 36h ;also sysHookFlag2
traceHookActive		equ 0		;1 = trace hook active
parserHookActive	equ 1		;1 = parser hook active
appChangeHookActive	equ 2		;1 = app change hook active
catalog1HookActive	equ 3		;1 = catalog 1 hook active
helpHookActive		equ 4		;1 = help hook active
cxRedispHookActive	equ 5		;1 = cxRedisp hook active
menuHookActive		equ 6		;1 = menu hook active
silentLinkHookActive	equ 7		;1 = silent link hook active
;----------------------------------------------------------------------
;hookflags2Override	equ 37h		;set corresponding bit to kill iy+35h hook when executing app
;----------------------------------------------------------------------
;hookflags3Override	equ 38h		;set corresponding bit to kill iy+36h hook when executing app
;----------------------------------------------------------------------
;hookflags4Override	equ 39h		;set corresponding bit to kill iy+37h hook when executing app
;----------------------------------------------------------------------
;hookflags5		equ 3Ah
usbActivityHookActive	equ 0		;1 = USB activity hook active
;----------------------------------------------------------------------
plotFlag3		equ 3Ch  
bufferOnly		equ 0
useFastCirc		equ 4
;----------------------------------------------------------------------
dBKeyFlags		equ 3Dh
keyDefaultsF		equ 6		;1 = GetKey returns extended keycodes with TI-Keyboard
;----------------------------------------------------------------------
silentLinkFlags		equ 3Eh
silentLinkActive	equ 0		;1 = SE/84+ silent link is active

extraHookFlags		equ 3Eh
checkCatalog2HookVer	equ 3		;1 = check catalog 2 hook's version before executing it (and error or take other action if so)
openLibActive		equ 4		;1 = OpenLib( was successfully called on a Flash application (ExecLib will error if zero)
;5
;----------------------------------------------------------------------
clockFlags		equ 3Fh
notMDYMode		equ 0		;0 = M/D/Y format
isYMDMode		equ 1		;1 = Y/M/D format
is24Hour		equ 2		;1 = clock in 24 hour mode
inAfternoon		equ 3		;1 = current time is in afternoon (PM) (I think)
useTokensInString	equ 4		;1 = use tokens instead of characters when displaying clock as string (for getTmStr and getDtStr vs. MODE screen) (keep this reset)
displayClock		equ 5		;1 = display clock (this is set every second, reset otherwise)
clockOn			equ 6		;1 = clock on
;----------------------------------------------------------------------
USBFlag1		equ 40h
;1 Reset in I/O receiving code, doesn't seem to be used anywhere else
usbReceiveZone1		equ 2		;1 = receive to RAM pages 3/2 ("zone 1")
;----------------------------------------------------------------------
USBFlag2		equ 41h
;0
;2
noUSBHostInit		equ 3		;1 = _InitSpecificUSBDevice must fail
usbDataWaiting		equ 5
;6
;7
;----------------------------------------------------------------------
USBFlag3		equ 42h
;----------------------------------------------------------------------
USBFlag4		equ 43h
usbTimeoutError		equ 0		;1 = USB timeout error (crystal timer expired)
;----------------------------------------------------------------------
#endif
.list