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 020104
_BootOS			equ 020108
_intErrUptHandler	equ 02010C
_rst10Handler		equ 020110
_rst18Handler		equ 020114
_rst20Handler		equ 020118
_rst28Handler		equ 02011C
_rst30Handler		equ 020120
;020124
;020128
;02012C
;020130
_CallLocalizeHook	equ 020134
_LdHLInd_s		equ 020138
_cpHLDE			equ 02013C
_DivHLby10_s		equ 020140
_DivHLbyA_s		equ 020144
_KBDscan		equ 020148
_GetCSC			equ 02014C
_CoorMon		equ 020150
_Mon			equ 020154
_MonForceKey		equ 020158
_SendKPress		equ 02015C
_JForceCmdNoChar	equ 020160
_JForceCmd		equ 020164
_SysErrHandler		equ 020168
_NewContext		equ 02016C
_NewContext0		equ 020170
_PPutawayPrompt		equ 020174
_PPutAway		equ 020178
_PutAway		equ 02017C
_SizeWInd		equ 020180
_ErrorEP		equ 020184
_CallMain		equ 020188
_MonErrHand		equ 02018C
_AppInit		equ 020190
_Initialize		equ 020194
_Min			equ 020198
_Max			equ 02019C
_AbsO1PAbsO2		equ 0201A0
_Intgr			equ 0201A4
_TRunc			equ 0201A8
_InvSub			equ 0201AC
_Times2String		equ 0201B0
_Plus1			equ 0201B4
_Minus1			equ 0201B8
_FPSub			equ 0201BC
_FPAdd			equ 0201C0
_DToR			equ 0201C4
_RToD			equ 0201C8
_Cube			equ 0201CC
_TimesPT5		equ 0201D0
_FPSquare		equ 0201D4
_FPMult			equ 0201D8
_LjRnd			equ 0201DC
_InvOP1Sc		equ 0201E0
_InvOP1S		equ 0201E4
_InvOP2S		equ 0201E8
_Frac			equ 0201EC
_FPRecip		equ 0201F0
_FPDiv			equ 0201F4
_SqRoot			equ 0201F8
_RndGuard		equ 0201FC
_Rnfx			equ 020200
_Int			equ 020204
_Round			equ 020208
_LnX			equ 02020C
_LogX			equ 020210
_LjnoRnd		equ 020214
_EToX			equ 020218
_TenX			equ 02021C
_SinCosRad		equ 020220
_Sin			equ 020224
_Cos			equ 020228
_Tan			equ 02022C
_SinhCosh		equ 020230
_Tanh			equ 020234
_Cosh			equ 020238
_Sinh			equ 02023C
_AcosRad		equ 020240
_AtanRad		equ 020244
_Atan2Rad		equ 020248
_AsinRad		equ 02024C
_Acos			equ 020250
_Atan			equ 020254
_Asin			equ 020258
_Atan2			equ 02025C
_Atanh			equ 020260
_Asinh			equ 020264
_Acosh			equ 020268
_PToR			equ 02026C
_RToP			equ 020270
_HLTimes9		equ 020274
_CkOP1Cplx		equ 020278
_CkOP1Real		equ 02027C
_Angle			equ 020280
_COP1Set0		equ 020284
_CPop4OP3		equ 020288
_Mov9OP2cp		equ 02028C
_abso1o2cp		equ 020290
_cPOP1OP2		equ 020294
_OP3ToOP4		equ 020298
_OP1ToOP4		equ 02029C
_OP2ToOP4		equ 0202A0
_OP4ToOP2		equ 0202A4
_OP3ToOP2		equ 0202A8
_OP1ToOP3		equ 0202AC
_OP5ToOP2		equ 0202B0
_OP5ToOP6		equ 0202B4
_OP5ToOP4		equ 0202B8
_OP1ToOP2		equ 0202BC
_OP6ToOP2		equ 0202C0
_OP6ToOP1		equ 0202C4
_OP4toOP1		equ 0202C8
_OP5ToOP1		equ 0202CC
_OP3ToOP1		equ 0202D0
_OP6ToOP5		equ 0202D4
_OP4ToOP5		equ 0202D8
_OP3ToOP5		equ 0202DC
_OP2ToOP5		equ 0202E0
_OP2ToOP6		equ 0202E4
_OP1ToOP6		equ 0202E8
_OP1ToOP5		equ 0202EC
_OP2ToOP1		equ 0202F0
_Mov11b			equ 0202F4
_Mov10b			equ 0202F8
_Mov9b			equ 0202FC
_Mov9b_duplicate	equ 020300
_Mov8b			equ 020304
_Mov7b			equ 020308
_Mov7b_duplicate	equ 02030C
_OP2toOP3		equ 020310
_OP4toOP3		equ 020314
_OP5toOP3		equ 020318
_OP4toOP6		equ 02031C
_mov9toOP1		equ 020320
_mov9OP1OP2		equ 020324
_mov9toOP2		equ 020328
_movfrOP1		equ 02032C
_OP4Set1		equ 020330
_OP3Set1		equ 020334
_OP2Set8		equ 020338
_OP2Set5		equ 02033C
_OP2Seta		equ 020340
_OP2Set4		equ 020344
_OP2Set3		equ 020348
_OP1Set1		equ 02034C
_OP1Set4		equ 020350
_OP1Set3		equ 020354
_OP3Set2		equ 020358
_OP1Set2		equ 02035C
_OP2Set2		equ 020360
_OP2Set1		equ 020364
_Zero16d		equ 020368
_OP5Set0		equ 02036C
_OP4Set0		equ 020370
_OP3Set0		equ 020374
_OP2Set0		equ 020378
_OP1Set0		equ 02037C
_SetNum0		equ 020380
_ZeroOP1		equ 020384
_ZeroOP2		equ 020388
_ZeroOP3		equ 02038C
_ZeroOP			equ 020390
_ClrLP			equ 020394
_ShrACC			equ 020398
_ShlACC			equ 02039C
_Shr18			equ 0203A0
_Shr18a			equ 0203A4
_Shr16			equ 0203A8
_Shr14			equ 0203AC
_Shl16			equ 0203B0
_Shl14			equ 0203B4
_Srdo1			equ 0203B8
_ShrdRnd		equ 0203BC
_MantPa			equ 0203C0
_AddProp		equ 0203C4
_AddProplP		equ 0203C8
_Add16d			equ 0203CC
_Add14d			equ 0203D0
_Sub16d			equ 0203D4
_Sub14d			equ 0203D8
_OP2exOP6		equ 0203DC
_OP5exOP6		equ 0203E0
_OP1exOP5		equ 0203E4
_OP1exOP6		equ 0203E8
_OP2exOP4		equ 0203EC
_OP2exOP5		equ 0203F0
_OP1exOP3		equ 0203F4
_OP1exOP4		equ 0203F8
_OP1exOP2		equ 0203FC
_ExLP			equ 020400
_CkOP1c0		equ 020404
_CkOP1fp0		equ 020408
_CkOP2fp0		equ 02040C
_PosNo0Int		equ 020410
_CkPosInt		equ 020414
_CkInt			equ 020418
_CkOdd			equ 02041C
_CkOP1M			equ 020420
_GetCon1		equ 020424
_GetCon			equ 020428
_PIDiv2			equ 02042C
_PIDiv4			equ 020430
_TWOPI			equ 020434
_PICON			equ 020438
_ExpToHex		equ 02043C
_OP1expToDec		equ 020440
_CkOP2Pos		equ 020444
_CkOP1Pos		equ 020448
_ClrOP2s		equ 02044C
_ClrOP1s		equ 020450
_FDiv100		equ 020454
_FDiv10			equ 020458
_DecO1exp		equ 02045C
_IncO1exp		equ 020460
_Incexp			equ 020464
_CkValidNum		equ 020468
_GetExp			equ 02046C
_HtimesL		equ 020470
_EOP1notReal		equ 020474
_ThetaName		equ 020478
_RName			equ 02047C
_RegEqName		equ 020480
_ReCurnName		equ 020484
_XName			equ 020488
_YName			equ 02048C
_TName			equ 020490
_RealName		equ 020494
_SetEStoFPS		equ 020498
_ChkTempDirt		equ 02049C
_OP1mOP2exp		equ 0204A0
_OP1expmDE		equ 0204A4
_ChkErrBreak		equ 0204A8
_Isa2ByteTok		equ 0204AC
_GetLastEntry		equ 0204B0
_GetLastEntryPtr	equ 0204B4
_RegRclrChng		equ 0204B8
_ResetWinTop		equ 0204BC
_IsO1nonTLstorProg	equ 0204C0
_IsO1nonTempLst		equ 0204C4
_Is_A_LstoRcLst		equ 0204C8
_Chk_HL_999		equ 0204CC
_Equ_or_NewEqu		equ 0204D0
_Errd_OP1notpos		equ 0204D4
_Errd_OP1not_r		equ 0204D8
_Errd_OP1notposint	equ 0204DC
_Errd_OP1_le_0		equ 0204E0
_Errd_OP1_0		equ 0204E4
_FindSym_Get_size	equ 0204E8
_Sto_StatVar		equ 0204EC
_Rcl_StatVar		equ 0204F0
_ckop2Real		equ 0204F4
_Get_x_Indirect		equ 0204F8
_MemChk			equ 0204FC
_CmpPrgNamLen1		equ 020500
_CmpPrgNamLen		equ 020504
_FindProgSym		equ 020508
_ChkFindSym		equ 02050C
_FindSym		equ 020510
_InsertMem		equ 020514
_InsertMema		equ 020518
_EnoughMem		equ 02051C
_CmpMemneed		equ 020520
_createpVar4		equ 020524
_createpVar3		equ 020528
_createVar3		equ 02052C
_createcplx		equ 020530
_createReal		equ 020534
_createtrlIst		equ 020538
_createrlIst		equ 02053C
_createtclIst		equ 020540
_createclIst		equ 020544
_createtrmat		equ 020548
_creatermat		equ 02054C
_createtStrng		equ 020550
_createStrng		equ 020554
_create0Equ		equ 020558
_createtEqu		equ 02055C
_createEqu		equ 020560
_creategdb		equ 020564
_createProg		equ 020568
_ChkDel			equ 02056C
_ChkDela		equ 020570
_Adjparser		equ 020574
_Adjmath		equ 020578
_Adjm7			equ 02057C
_DelMema		equ 020580
_Get_Form_Num		equ 020584
_DelVar			equ 020588
_DelVario		equ 02058C
_DelMem			equ 020590
_DelVar3d		equ 020594
_DelVar3c		equ 020598
_DelVar3dc		equ 02059C
_Sym_Prog_non_t_Lst	equ 0205A0
_AdjSymPtrs		equ 0205A4
_datasizea		equ 0205A8
_datasize		equ 0205AC
_Popmcplxo1		equ 0205B0
_Popmcplx		equ 0205B4
_movcplx		equ 0205B8
_Popop5			equ 0205BC
_Popop3			equ 0205C0
_PopOP1			equ 0205C4
_PopRealo6		equ 0205C8
_PopRealo5		equ 0205CC
_PopRealo4		equ 0205D0
_PopRealo3		equ 0205D4
_PopRealo2		equ 0205D8
_PopRealo1		equ 0205DC
_PopReal		equ 0205E0
_fPopcplx		equ 0205E4
_fPopReal		equ 0205E8
_fPopFPS		equ 0205EC
_DeallocFPS		equ 0205F0
_DeallocFPS1		equ 0205F4
_AllocFPS		equ 0205F8
_AllocFPS1		equ 0205FC
_PushRealo6		equ 020600
_PushRealo5		equ 020604
_PushRealo4		equ 020608
_PushRealo3		equ 02060C
_PushRealo2		equ 020610
_PushRealo1		equ 020614
_PushReal		equ 020618
_Pushop5		equ 02061C
_Pushop3		equ 020620
_Pushmcplxo3		equ 020624
_PushOP1		equ 020628
_Pushmcplxo1		equ 02062C
_Pushmcplx		equ 020630
_exmcplxo1		equ 020634
_exch9			equ 020638
_CpyTo1FPS11		equ 02063C
_CpyTo2FPS5		equ 020640
_CpyTo1FPS5		equ 020644
_CpyTo2FPS6		equ 020648
_CpyTo1FPS6		equ 02064C
_CpyTo2FPS7		equ 020650
_CpyTo1FPS7		equ 020654
_CpyTo1FPS8		equ 020658
_CpyTo2FPS8		equ 02065C
_CpyTo1FPS10		equ 020660
_CpyTo1FPS9		equ 020664
_CpyTo2FPS4		equ 020668
_CpyTo6FPS3		equ 02066C
_CpyTo6FPS2		equ 020670
_CpyTo2FPS3		equ 020674
_Cpycto1FPS3		equ 020678
_CpyTo1FPS3		equ 02067C
_CpyFPS3		equ 020680
_CpyTo1FPS4		equ 020684
_CpyTo3FPS2		equ 020688
_CpyTo5FPSt		equ 02068C
_CpyTo6FPSt		equ 020690
_CpyTo4FPSt		equ 020694
_CpyTo3FPSt		equ 020698
_CpyTo2FPSt		equ 02069C
_CpyTo1FPSt		equ 0206A0
_CpyFPSt		equ 0206A4
_Cpystack		equ 0206A8
_CpyTo3FPS1		equ 0206AC
_CpyTo2FPS1		equ 0206B0
_CpyTo1FPS1		equ 0206B4
_CpyFPS1		equ 0206B8
_CpyTo2FPS2		equ 0206BC
_CpyTo1FPS2		equ 0206C0
_CpyFPS2		equ 0206C4
_Cpyo3toFPSt		equ 0206C8
_Cpyo2toFPSt		equ 0206CC
_Cpyo6toFPSt		equ 0206D0
_Cpyo1toFPSt		equ 0206D4
_CpyToFPSt		equ 0206D8
_CpyTostack		equ 0206DC
_Cpyo3toFPS1		equ 0206E0
_Cpyo5toFPS1		equ 0206E4
_Cpyo2toFPS1		equ 0206E8
_Cpyo1toFPS1		equ 0206EC
_CpyToFPS1		equ 0206F0
_Cpyo2toFPS2		equ 0206F4
_Cpyo3toFPS2		equ 0206F8
_Cpyo6toFPS2		equ 0206FC
_Cpyo1toFPS2		equ 020700
_CpyToFPS2		equ 020704
_Cpyo5toFPS3		equ 020708
_Cpyo2toFPS3		equ 02070C
_Cpyo1toFPS3		equ 020710
_CpyToFPS3		equ 020714
_Cpyo1toFPS6		equ 020718
_Cpyo1toFPS7		equ 02071C
_Cpyo1toFPS5		equ 020720
_Cpyo2toFPS4		equ 020724
_Cpyo1toFPS4		equ 020728
_ErrnotEnoughMem	equ 02072C
_FPSminus9		equ 020730
_HLminus9		equ 020734
_ErrOverflow		equ 020738
_ErrDivby0		equ 02073C
_ErrSingularMat		equ 020740
_ErrDomain		equ 020744
_ErrIncrement		equ 020748
_Errnon_Real		equ 02074C
_ErrSyntax		equ 020750
_ErrDataType		equ 020754
_ErrArgument		equ 020758
_ErrdimmIsmatch		equ 02075C
_Errdimension		equ 020760
_Errundefined		equ 020764
_ErrMemory		equ 020768
_Errinvalid		equ 02076C
_ErrBreak		equ 020770
_ErrStat		equ 020774
_ErrSignchange		equ 020778
_ErrIterations		equ 02077C
_ErrBadGuess		equ 020780
_ErrTolTooSmall		equ 020784
_ErrStatPlot		equ 020788
_ErrLinkXmit		equ 02078C
_JError			equ 020790
_noErrorEntry		equ 020794
_PushErrorhandler	equ 020798
_PopErrorhandler	equ 02079C
_Strcopy		equ 0207A0
_Strcat_ez80		equ 0207A4
_IsInSet		equ 0207A8
_GeqNamea		equ 0207AC
_RecName		equ 0207B0
_Putmap			equ 0207B4
_Putc			equ 0207B8
_Disphl_s		equ 0207BC
_Puts			equ 0207C0
_Putpsb			equ 0207C4
_Putps			equ 0207C8
_wPutps			equ 0207CC
_Putbuf			equ 0207D0
_Putbuf1		equ 0207D4
_wPutc			equ 0207D8
_wPuts			equ 0207DC
_wPutsEOL		equ 0207E0
_wDispEOL		equ 0207E4
_wHomeUp		equ 0207E8
_SetNumWIndow		equ 0207EC
_NewLine		equ 0207F0
_MoveDown		equ 0207F4
_ScrollUp		equ 0207F8
_ShrinkWIndow		equ 0207FC
_MoveUp			equ 020800
_ScrollDown		equ 020804
_Clrlcdfull		equ 020808
_Clrlcd			equ 02080C
_Clrscrnfull		equ 020810
_Clrscrn		equ 020814
_Clrtxtshd		equ 020818
_ClrWIndow		equ 02081C
_eraseEOL		equ 020820
_eraseEOW		equ 020824
_HomeUp			equ 020828
_GetCurloc		equ 02082C
_vPutmap		equ 020830
_vPuts			equ 020834
_vPutsn			equ 020838
_vPutsng		equ 02083C
_vPutsnt		equ 020840
_RunIndicon		equ 020844
_RunIndicoff		equ 020848
_SaveCmdShadow		equ 02084C
_SaveShadow		equ 020850
_RStrShadow		equ 020854
_RStrpartial		equ 020858
_RStrCurrow		equ 02085C
_RStrundermenu		equ 020860
_RStrbotrow		equ 020864
_GetKeypress		equ 020868
_GetTokLen		equ 02086C
_Get_Tok_Strng		equ 020870
_GetTokString		equ 020874
_Putbpatbuf2		equ 020878
_Putbpatbuf		equ 02087C
_Putbpat		equ 020880
_PutcChkScroll		equ 020884
_DispEOL		equ 020888
_FDispEOL		equ 02088C
_MakeRowCmd		equ 020890
_totoStrp		equ 020894
;020898
_DispDone		equ 02089C
_FinIshOutPut		equ 0208A0
_CurBlink		equ 0208A4
_Cursoroff		equ 0208A8
_HideCursor		equ 0208AC
_Cursoron		equ 0208B0
_ShowCursor		equ 0208B4
_KeyToString		equ 0208B8
_PullDownChk		equ 0208BC
_Menucatcommon		equ 0208C0
_LoadCurcat		equ 0208C4
_Ncifprgmedmode		equ 0208C8
_LoadMenuNum		equ 0208CC
_LoadMenuNuml		equ 0208D0
_MenuEdKey		equ 0208D4
_MenCatRet		equ 0208D8
_NotAlphNum		equ 0208DC
;0208E0
;0208E4
;0208E8
;0208EC
_DispLIstName		equ 0208F0
_DispLAlphaName		equ 0208F4
_AbortPrgmode		equ 0208F8
_Is_FullCntx		equ 0208FC
_AdrMRow		equ 020900
_AdrmeLE		equ 020904
_GetmatOP1A		equ 020908
_Getm1toOP1		equ 02090C
_Getm1tOP1A		equ 020910
_GetmtoOP1		equ 020914
_Puttom1a		equ 020918
_Puttoma1		equ 02091C
_PutToMat		equ 020920
_Mat_EL_Div		equ 020924
_CMatFun		equ 020928
_RowEch_Poly		equ 02092C
_RowEchelon		equ 020930
_AdrLELE		equ 020934
_Getl1ToOP1		equ 020938
_Getl1TOP1A		equ 02093C
_GetlToOP1		equ 020940
_Getl1ToOP2		equ 020944
_Getl1TOP2A		equ 020948
_Getl2TOP1A		equ 02094C
_PutTola1		equ 020950
_PutToL			equ 020954
_MaxMinLst		equ 020958
_LLow			equ 02095C
_LHigh			equ 020960
_LSum			equ 020964
_CumSum			equ 020968
_ToFrac			equ 02096C
_SeqSet			equ 020970
_SeqSolve		equ 020974
_Cmp_Num_Init		equ 020978
_BinOpExec		equ 02097C
_ExMeanL		equ 020980
_Set2MVLPtrs		equ 020984
_SetMat1		equ 020988
_CreateTLIst		equ 02098C
_UnOpExec		equ 020990
_ThreeExec		equ 020994
_ReStoreErrNo		equ 020998
_FourExec		equ 02099C
_FiveExec		equ 0209A0
_CpyTo2ES1		equ 0209A4
_CpyTo6ES1		equ 0209A8
_CpyTo1ES1		equ 0209AC
_CpyTo3ES1		equ 0209B0
_CpyTo3ES2		equ 0209B4
_CpyTo2ES2		equ 0209B8
_CpyTo1ES2		equ 0209BC
_CpyTo2ES3		equ 0209C0
_CpyTo1ES3		equ 0209C4
_CpyTo3ES4		equ 0209C8
_CpyTo6ES3		equ 0209CC
_CpyTo2ES4		equ 0209D0
_CpyTo1ES4		equ 0209D4
_CpyTo2ES5		equ 0209D8
_CpyTo1ES5		equ 0209DC
_CpyTo4ESt		equ 0209E0
_CpyTo2ESt		equ 0209E4
_CpyTo1ESt		equ 0209E8
_CpyTo2ES6		equ 0209EC
_CpyTo1ES6		equ 0209F0
_CpyTo2ES7		equ 0209F4
_CpyTo1ES7		equ 0209F8
_CpyTo2ES8		equ 0209FC
_CpyTo1ES8		equ 020A00
_CpyTo1ES9		equ 020A04
_CpyTo2ES9		equ 020A08
_CpyTo2ES10		equ 020A0C
_CpyTo1ES10		equ 020A10
_CpyTo2ES11		equ 020A14
_CpyTo1ES11		equ 020A18
_CpyTo2ES12		equ 020A1C
_CpyTo1ES12		equ 020A20
_CpyTo2ES13		equ 020A24
_CpyTo1ES13		equ 020A28
_CpyTo1ES14		equ 020A2C
_CpyTo1ES16		equ 020A30
_CpyTo1ES17		equ 020A34
_CpyTo1ES18		equ 020A38
_CpyTo1ES15		equ 020A3C
_CpyTo2ES15		equ 020A40
_CpyO1ToESt		equ 020A44
_CpyO1ToES1		equ 020A48
_CpyO6ToES1		equ 020A4C
_CpyO6ToES3		equ 020A50
_CpyO1ToES2		equ 020A54
_CpyO2ToES2		equ 020A58
_CpyO1ToES3		equ 020A5C
_CpyO1ToES4		equ 020A60
_CpyO1ToES5		equ 020A64
_CpyO1ToES6		equ 020A68
_CpyO1ToES7		equ 020A6C
_CpyO2ToES4		equ 020A70
_CpyO2ToES5		equ 020A74
_CpyO2ToES6		equ 020A78
_CpyO2ToES7		equ 020A7C
_CpyO2ToES8		equ 020A80
_CpyO2ToES9		equ 020A84
_CpyO1ToES8		equ 020A88
_CpyO1ToES9		equ 020A8C
_CpyO1ToES10		equ 020A90
_CpyO1ToES11		equ 020A94
_CpyO1ToES12		equ 020A98
_CpyO1ToES13		equ 020A9C
_CpyO1ToES14		equ 020AA0
_EvalF3A		equ 020AA4
_GetK			equ 020AA8
_SetTitle		equ 020AAC
_DispVarVal		equ 020AB0
_RecallEd		equ 020AB4
_SetUpBuffer		equ 020AB8
_CreateNumEditBuf	equ 020ABC
_CallCommon		equ 020AC0
_CommonKeys		equ 020AC4
_LeftMore		equ 020AC8
_fDel			equ 020ACC
_fClear			equ 020AD0
_fInsDisp		equ 020AD4
_fInsDisp02		equ 020AD8
_SetIndicator		equ 020ADC
_dsplstsnor		equ 020AE0
_ReleaseBuffer		equ 020AE4
_VarNameToOP1HL		equ 020AE8
_NameToOP1		equ 020AEC
_NumpPutAway		equ 020AF0
_NumReDisp		equ 020AF4
_NumError02		equ 020AF8
_Load_Sfont		equ 020AFC
_Sfont_Len		equ 020B00
_InitNumVec		equ 020B04
_SetxxOP1		equ 020B08
_SetxxOP2		equ 020B0C
_SetxxxxOP2		equ 020B10
_uCLines		equ 020B14
_CLine			equ 020B18
_CLines			equ 020B1C
_XrootY			equ 020B20
_YtoX			equ 020B24
;020B28
;020B2C
;020B30
;020B34
;020B38
;020B3C
;020B40
;020B44
;020B48
;020B4C
;020B50
;020B54
;020B58
;020B5C
;020B60
;020B64
;020B68
;020B6C
_Mov18b			equ 020B70
_DarkLine		equ 020B74
_ILine			equ 020B78
_IPoint			equ 020B7C
_XYRNDBOTH		equ 020B80
_XYRND			equ 020B84
_CheckTOP		equ 020B88
_CheckXY		equ 020B8C
_DarkPnt		equ 020B90
_CPointS		equ 020B94
_WTOV			equ 020B98
_VtoWHLDE		equ 020B9C
_Xitof			equ 020BA0
_YftoI			equ 020BA4
_XftoI			equ 020BA8
_TraceOff		equ 020BAC
_GrRedisp		equ 020BB0
_GDISPTOKEN		equ 020BB4
_GRDECODA		equ 020BB8
_LABCOOR		equ 020BBC
_COORDISP		equ 020BC0
_TMPEQUNOSRC		equ 020BC4
_GRLABELS		equ 020BC8
_YPIXSET		equ 020BCC
_XPIXSET		equ 020BD0
_COPYRNG		equ 020BD4
_VALCUR			equ 020BD8
_GRPUTAWAY		equ 020BDC
_RSTGFLAGS		equ 020BE0
_GRReset		equ 020BE4
_XYCENT			equ 020BE8
_ZOOMXYCMD		equ 020BEC
_CPTDELY		equ 020BF0
_CPTDELX		equ 020BF4
_SetFuncM		equ 020BF8
_SetSeqM		equ 020BFC
_SetPolM		equ 020C00
_SetParM		equ 020C04
_ZmInt			equ 020C08
_ZmDecml		equ 020C0C
_ZmPrev			equ 020C10
_ZmUsr			equ 020C14
_SETUZM			equ 020C18
_ZmFit			equ 020C1C
_ZmSquare		equ 020C20
_ZmTrig			equ 020C24
_SetXMinMax		equ 020C28
_ZooDefault		equ 020C2C
;020C30
;020C34
;020C38
;020C3C
;020C40
;020C44
;020C48
;020C4C
;020C50
;020C54
_ChkTextCurs		equ 020C58
;020C5C
_Dorefflags02		equ 020C60
_INITNSEQ		equ 020C64
_YRes			equ 020C68
_Ceiling		equ 020C6C
_PutXY			equ 020C70
_PUTEQUNO		equ 020C74
_PdspGrph		equ 020C78
_HorizCmd		equ 020C7C
_VertCmd		equ 020C80
_LineCmd		equ 020C84
_UnLineCmd		equ 020C88
_PointCmd		equ 020C8C
_PixelTest  		equ 020C90
_PixelCmd		equ 020C94
_TanLnF			equ 020C98
_DRAWCMD_INIT		equ 020C9C
_DrawCmd		equ 020CA0
_ShadeCmd		equ 020CA4
_InvCmd			equ 020CA8
_STATSHADE		equ 020CAC
_dspmattable		equ 020CB0
_dsplsts		equ 020CB4
_closeEditBuf		equ 020CB8
_parseEditBuf		equ 020CBC
_PutSM			equ 020CC0
_DspCurTbl		equ 020CC4
_DSPGRTBL		equ 020CC8
_ZeroTemplate		equ 020CCC
_settblrefs		equ 020CD0
_dispTblBot		equ 020CD4
_DispTblTop		equ 020CD8
_dispTblbody		equ 020CDC
_VPutBlank		equ 020CE0
;020CE4
_DispLIstNameY		equ 020CE8
_CurNameLength		equ 020CEC
_NameToBuf		equ 020CF0
_JpromptCursor		equ 020CF4
_BufLeft		equ 020CF8
_BufRight		equ 020CFC
_BufInsert		equ 020D00
_BufQueueChar		equ 020D04
_BufReplace		equ 020D08
_BufDelete		equ 020D0C
_BufPeek		equ 020D10
_BufPeek1		equ 020D14
_BufPeek2		equ 020D18
_BufPeek3		equ 020D1C
_BufToBtm		equ 020D20
_SetUpEditEqu		equ 020D24
_BufToTop		equ 020D28
_IsEditFull		equ 020D2C
_IsEditEmpty		equ 020D30
_IsAtTop		equ 020D34
_IsAtBtm		equ 020D38
;020D3C
_JCursorFirst		equ 020D40
_JCursorLast		equ 020D44
_JursorLeft		equ 020D48
_JCursorRight		equ 020D4C
_JCursorUp		equ 020D50
_JursorDown		equ 020D54
_CursortooffSet		equ 020D58
_InsDisp		equ 020D5C
_FDispBOL1		equ 020D60
_FDispBOL		equ 020D64
_DispEOW		equ 020D68
_DispHead		equ 020D6C
_DispTail		equ 020D70
_PutTokString		equ 020D74
_SetUpEditCmd		equ 020D78
_SetEmptyeditEqu	equ 020D7C
_SetEmptyEditPtr	equ 020D80
_CloseEditEqu		equ 020D84
_GetPrevTok		equ 020D88
_GetKey			equ 020D8C
_canIndic		equ 020D90
;020D94
;020D98
;020D9C
;020DA0
;020DA4
;020DA8
;020DAC
;020DB0
;020DB4
;020DB8
;020DBC
;020DC0
;020DC4
;020DC8
;020DCC
;020DD0
;020DD4
;020DD8
;020DDC
;020DE0
;020DE4
;020DE8
;020DEC
;020DF0
;020DF4
;020DF8
;020DFC
;020E00
;020E04
;020E08
;020E0C
;020E10
;020E14
;020E18
;020E1C
;020E20
;020E24
;020E28
;020E2C
;020E30
;020E34
;020E38
;020E3C
;020E40
;020E44
;020E48
;020E4C
;020E50
;020E54
;020E58
_DelRes			equ 020E5C
;020E60
;020E64
;020E68
;020E6C
;020E70
;020E74
;020E78
;020E7C
;020E80
;020E84
;020E88
;020E8C
;020E90
;020E94
;020E98
;020E9C
;020EA0
;020EA4
;020EA8
;020EAC
;020EB0
;020EB4
;020EB8
;020EBC
;020EC0
;020EC4
;020EC8
;020ECC
;020ED0
;020ED4
;020ED8
;020EDC
;020EE0
;020EE4
;020EE8
;020EEC
;020EF0
;020EF4
;020EF8
;020EFC
;020F00
_Parseon		equ 020F04
;020F08
;020F0C
;020F10
;020F14
;020F18
_OP2Set60		equ 020F1C
_GetStatPtr		equ 020F20
_Cmp_StatPtr		equ 020F24
_VarSYSADR		equ 020F28
_StoSyStok		equ 020F2C
_StoAns			equ 020F30
_StoTheta		equ 020F34
_StoR			equ 020F38
_StoY			equ 020F3C
_StoN			equ 020F40
_StoT			equ 020F44
_StoX			equ 020F48
_StoOther		equ 020F4C
_RclAns			equ 020F50
_RclY			equ 020F54
_RclN			equ 020F58
_RclX			equ 020F5C
_RclVarSym		equ 020F60
_RclsyStok		equ 020F64
_StMatel		equ 020F68
_StLstvecel		equ 020F6C
_ConvOP1		equ 020F70
_Find_parse_Formula	equ 020F74
_parse_Formula		equ 020F78
_StrngEnt1		equ 020F7C
_Prgrdlp		equ 020F80
_VarEnt			equ 020F84
_ParseOnc		equ 020F88
_ParseOn		equ 020F8C
_ParseCmd		equ 020F90
_StoType		equ 020F94
_CreatePair		equ 020F98
_PushNum		equ 020F9C
_IncCurPCErrEnd		equ 020FA0
_ErrEnd			equ 020FA4
_CommaErrF		equ 020FA8
_CommaErr		equ 020FAC
_StEQArg2		equ 020FB0
_StEQArg		equ 020FB4
_InpArg			equ 020FB8
_StEQArg3		equ 020FBC
_NxtFetch		equ 020FC0
_CkFetchVar		equ 020FC4
_FetchVarA		equ 020FC8
_FetchVar		equ 020FCC
_CkEndLin		equ 020FD0
_CkEndExp		equ 020FD4
_CkParsEnd		equ 020FD8
_StoTypeArg		equ 020FDC
_ConvDim		equ 020FE0
_ConvDim00		equ 020FE4
;020FE8
_ParsaHeads		equ 020FEC
;020FF0
_AnsName		equ 020FF4
;020FF8
;020FFC
;021000
;021004
;021008
;02100C
;021010
;021014
;021018
;02101C
;021020
;021024
;021028
;02102C
;021030
;021034
;021038
_ResetStacks		equ 02103C
;021040
;021044
;021048
;02104C
;021050
;021054
;021058
;02105C
;021060
;021064
;021068
;02106C
;021070
;021074
;021078
;02107C
;021080
;021084
;021088
;02108C
;021090
;021094
;021098
;02109C
;0210A0
;0210A4
;0210A8
;0210AC
;0210B0
;0210B4
;0210B8
;0210BC
;0210C0
;0210C4
;0210C8
;0210CC
;0210D0
;0210D4
;0210D8
;0210DC
;0210E0
;0210E4
;0210E8
_StrLength		equ 0210EC
_VPutMapRec		equ 0210F0
;0210F4
;0210F8
;0210FC
;021100
;021104
;021108
;02110C
;021110
;021114
;021118
;02111C
_GetBaseVer		equ 021120
_SetLocDEtoFP0		equ 021124
;021128
_SetIgnoreKey		equ 02112C
_SetSendThIsKeyBack	equ 021130
_DisableAPD		equ 021134
_EnableAPD		equ 021138
_set2IY34		equ 02113C
_forcecmd		equ 021140
_ApdSetup		equ 021144
_Get_NumKey		equ 021148
_AppSetup		equ 02114C
_ReleaseSedit		equ 021150
_initsmalleditline	equ 021154
_startsmalledit		equ 021158
;02115C
_SGetTokString		equ 021160
_LoadPattern		equ 021164
_SStringLength		equ 021168
_RestorePenCol		equ 02116C
;021170
;021174
;021178
;02117C
;021180
;021184
;021188
;02118C
;021190
;021194
;021198
;02119C
;0211A0
;0211A4
;0211A8
;0211AC
;0211B0
;0211B4
;0211B8
;0211BC
;0211C0
;0211C4
;0211C8
;0211CC
;0211D0
;0211D4
;0211D8
;0211DC
;0211E0
;0211E4
;0211E8
;0211EC
;0211F0
;0211F4
;0211F8
;0211FC
;021200
;021204
;021208
;02120C
;021210
;021214
;021218
;02121C
;021220
;021224
;021228
;02122C
;021230
;021234
;021238
;02123C
;021240
;021244
;021248
;02124C
;021250
;021254
;021258
;02125C
;021260
;021264
;021268
;02126C
;021270
;021274
;021278
;02127C
;021280
;021284
;021288
;02128C
;021290
;021294
;021298
;02129C
;0212A0
;0212A4
;0212A8
;0212AC
;0212B0
;0212B4
;0212B8
;0212BC
;0212C0
;0212C4
;0212C8
;0212CC
;0212D0
;0212D4
;0212D8
;0212DC
;0212E0
;0212E4
;0212E8
;0212EC
;0212F0
;0212F4
;0212F8
;0212FC
;021300
;021304
;021308
;02130C
;021310
;021314
;021318
;02131C
_GetStringInput		equ 021320
_GetStringInput2	equ 021324
_WaitEnterKeyValue	equ 021328
_HorizontalLine		equ 02132C
_CreateAppVar		equ 021330
_CreateProtProg		equ 021334
_CreateVar		equ 021338
_AsmComp		equ 02133C
_GetAsmSize		equ 021340
_SquishPrgm		equ 021344
_ExecutePrgm		equ 021348
_ChkFindSymAsm		equ 02134C
_ParsePrgmName		equ 021350
_CAdd			equ 021354
_CSqaure		equ 021358
_CMult			equ 02135C
_CRecip			equ 021360
_CDiv			equ 021364
_CAbs			equ 021368
_AddSquares		equ 02136C
_CSqroot		equ 021370
_CLn			equ 021374
_CLog			equ 021378
_CTenX			equ 02137C
_CEtoX			equ 021380
_CXrootY		equ 021384
;021388
_CYtoX			equ 02138C
_InvertNonReal		equ 021390
_CplxMult		equ 021394
_CplxDiv		equ 021398
_CplxTrunc		equ 02139C
_CplxFrac		equ 0213A0
_CplxFloor		equ 0213A4
;0213A8
_FlashWriteDisable	equ 0213AC
;0213B0
_GetBytePaged_Unpaged	equ 0213B4
_RunCursorHook		equ 0213B8
_RunLibraryHook		equ 0213BC
_RunRawkeyHook		equ 0213C0
_SetCursorHook		equ 0213C4
_SetLibraryHook		equ 0213C8
;0213CC
;0213D0
;0213D4
;0213D8
;0213DC
_SetGetKeyHook		equ 0213E0
_ClrGetKeyHook		equ 0213E4
_SetCatalog2Hook	equ 0213E8
_ClrCatalog2Hook	equ 0213EC
_SetLocalizeHook	equ 0213F0
_ClrLocalizeHook	equ 0213F4
_SetTokenHook		equ 0213F8
_ClrTokenHook		equ 0213FC
;021400
;021404
;021408
;02140C
_SetHomescreenHook	equ 021410
_ClrHomescreenHook	equ 021414
_SetWIndowHook		equ 021418
_ClrWIndowHook		equ 02141C
_SetGraphModeHook	equ 021420
_ClrGraphModeHook	equ 021424
_ParseAndStoreSysVar	equ 021428
_DisplayEditSysVar	equ 02142C
_JForceWIndowSettings	equ 021430
_DelVarArc		equ 021434
_DelVarNoArc		equ 021438
_SetAllPlots		equ 02143C
_SetYeditHook		equ 021440
_ClrYeditHook		equ 021444
_Arc_Unarc		equ 021448
;02144C
;021450
_SetFontHook		equ 021454
_ClrFontHook		equ 021458
_SetRegraphHook		equ 02145C
_ClrRegraphHook		equ 021460
_RunGraphingHook	equ 021464
_SetTraceHook		equ 021468
_ClrTraceHook		equ 02146C
_RunTraceHook		equ 021470
_NDeriv			equ 021474
_PolarDerivative	equ 021478
_JForceGraphNoKey	equ 02147C
_JForceGraphKey		equ 021480
_PowerOff		equ 021484
_GetKeyRetOff		equ 021488
_FindGroUpSym		equ 02148C
_LoadDEIndPaged_Unpaged	equ 021490
_SetUpPagedPtr_Unpaged	equ 021494
_PagedGet_Unpaged	equ 021498
_SetParserHook		equ 02149C
_ClrParserHook		equ 0214A0
_SetAppChangeHook	equ 0214A4
_ClrAppChangeHook	equ 0214A8
_SetGraphicsHook	equ 0214AC
_ClrGraphicsHook	equ 0214B0
_ILineNoGraphicsHook	equ 0214B4
_ILineNoHook		equ 0214B8
;0214BC
_DeleteTempPrograms	equ 0214C0
_SetCatalog1Hook	equ 0214C4
_ClrCatalog1Hook	equ 0214C8
_SetHelpHook		equ 0214CC
_ClrHelpHook		equ 0214D0
_DispCatalogEnd		equ 0214D4
_GetMenuKeypress	equ 0214D8
_GetCatalogItem		equ 0214DC
_RunCatalog2Hook	equ 0214E0
_RunCatalog1Hook	equ 0214E4
;0214E8
;0214EC
_DispMenuTitle		equ 0214F0
;0214F4
_SetcxReDispHook	equ 0214F8
_ClrcxReDispHook	equ 0214FC
;021500
;021504
;021508
;02150C
;021510
;021514
_SetMenuHook		equ 021518
_ClrMenuHook		equ 02151C
_GetBCOffSetIX		equ 021520
;021524
_ForceFullScreen	equ 021528
_HLminus5		equ 02152C
;021530
;021534
;021538
_Arc_Unarc		equ 02153C
;021540
;021544
;021548
;02154C
;021550
;021554
;021558
;02155C
;021560
;021564
;021568
;02156C
;021570
;021574
;021578
;02157C
;021580
;021584
;021588
;02158C
;021590
;021594
;021598
;02159C
;0215A0
;0215A4
;0215A8
;0215AC
;0215B0
;0215B4
;0215B8
;0215BC
;0215C0
;0215C4
;0215C8
;0215CC
;0215D0
;0215D4
;0215D8
;0215DC
;0215E0
;0215E4
;0215E8
;0215EC
;0215F0
;0215F4
;0215F8
;0215FC
;021600
;021604
;021608
;02160C
;021610
;021614
;021618
;02161C
;021620
;021624
;021628
;02162C
;021630
;021634
;021638
;02163C
;021640
;021644
;021648
;02164C
;021650
;021654
;021658
;02165C
;021660
;021664
;021668
;02166C
;021670
;021674
;021678
;02167C
;021680
;021684
;021688
;02168C
;021690
;021694
;021698
;02169C
;0216A0
_NumError02		equ 0216A4
;0216A8
;0216AC
;0216B0
;0216B4
;0216B8
;0216BC
;0216C0
;0216C4
;0216C8
;0216CC
;0216D0
;0216D4
;0216D8
;0216DC
;0216E0
;0216E4
;0216E8
;0216EC
;0216F0
;0216F4
;0216F8
;0216FC
;021700
;021704
;021708
;02170C
;021710
;021714
;021718
;02171C
;021720
;021724
;021728
;02172C
;021730
;021734
;021738
;02173C
;021740
;021744
;021748
;02174C
;021750
;021754
;021758
;02175C
;021760
;021764
;021768
;02176C
;021770
;021774
;021778
;02177C
;021780
;021784
;021788
;02178C
;021790
;021794
;021798
;02179C
;0217A0
;0217A4
;0217A8
;0217AC
;0217B0
;0217B4
;0217B8
;0217BC
;0217C0
;0217C4
;0217C8
;0217CC
;0217D0
;0217D4
;0217D8
;0217DC
;0217E0
;0217E4
;0217E8
;0217EC
;0217F0
;0217F4
;0217F8
;0217FC
;021800
;021804
;021808
;02180C
;021810
;021814
;021818
;02181C
;021820
;021824
;021828
;02182C
;021830
;021834
;021838
;02183C
;021840
;021844
;021848
;02184C
;021850
;021854
;021858
;02185C
;021860
;021864
;021868
;02186C
;021870
;021874
;021878
;02187C
;021880
;021884
;021888
;02188C
;021890
;021894
;021898
;02189C
;0218A0
;0218A4
;0218A8
;0218AC
;0218B0
;0218B4
;0218B8
;0218BC
;0218C0
;0218C4
;0218C8
;0218CC
;0218D0
;0218D4
;0218D8
;0218DC
;0218E0
;0218E4
;0218E8
;0218EC
;0218F0
;0218F4
;0218F8
;0218FC
;021900
;021904
;021908
;02190C
;021910
;021914
;021918
;02191C
;021920
;021924
;021928
;02192C
;021930
;021934
;021938
;02193C
_commonKeys		equ 021940
;021944
;021948
;02194C
;021950
;021954
;021958
;02195C
;021960
;021964
;021968
;02196C
;021970
;021974
;021978
;02197C
;021980
;021984
;021988
;02198C
;021990
;021994
;021998
;02199C
;0219A0
;0219A4
;0219A8
;0219AC
;0219B0
;0219B4
;0219B8
;0219BC
;0219C0
;0219C4
;0219C8
;0219CC
;0219D0
;0219D4
;0219D8
;0219DC
;0219E0
;0219E4
;0219E8
;0219EC
;0219F0
;0219F4
;0219F8
;0219FC
;021A00
;021A04
;021A08
;021A0C
;021A10
;021A14
;021A18
;021A1C
;021A20
;021A24
;021A28
;021A2C
;021A30
;021A34
;021A38
_drawStatusbar		equ 021A3C
;021A40
;021A44
;021A48
;021A4C
;021A50
;021A54
;021A58
;021A5C
;021A60
;021A64
;021A68
;021A6C
;021A70
;021A74
;021A78
;021A7C
;021A80
;021A84
;021A88
;021A8C
;021A90
;021A94
;021A98
;021A9C
;021AA0
;021AA4
;021AA8
;021AAC
;021AB0
;021AB4
;021AB8
;021ABC
;021AC0
;021AC4
;021AC8
;021ACC
;021AD0
;021AD4
;021AD8
;021ADC
;021AE0
_SetTextFGBGcolors	equ 021AE4
_SetTextBGcolor		equ 021AE8
;021AEC
;021AF0
;021AF4
;021AF8
;021AFC
;021B00
;021B04
;021B08
;021B0C
;021B10
;021B14
;021B18
;021B1C
;021B20
;021B24
;021B28
;021B2C
;021B30
;021B34
;021B38
;021B3C
;021B40
;021B44
;021B48
;021B4C
;021B50
;021B54
;021B58
;021B5C
;021B60
;021B64
;021B68
;021B6C
;021B70
;021B74
;021B78
;021B7C
;021B80
;021B84
;021B88
;021B8C
;021B90
;021B94
;021B98
;021B9C
;021BA0
;021BA4
;021BA8
_GetColorValue		equ 021BAC
;021BB0
;021BB4
;021BB8
;021BBC
;021BC0
;021BC4
;021BC8
;021BCC
;021BD0
;021BD4
;021BD8
;021BDC
;021BE0
;021BE4
;021BE8
;021BEC
;021BF0
;021BF4
;021BF8
;021BFC
;021C00
;021C04
;021C08
;021C0C
;021C10
;021C14
;021C18
;021C1C
;021C20
;021C24
;021C28
;021C2C
;021C30
;021C34
;021C38
;021C3C
;021C40
;021C44
;021C48
;021C4C
;021C50
;021C54
;021C58
;021C5C
;021C60
;021C64
;021C68
;021C6C
;021C70
;021C74
;021C78
_PopErrorhandler	equ 021C7C
;021C80
;021C84
;021C88
;021C8C
;021C90
;021C94
;021C98
;021C9C
;021CA0
;021CA4
;021CA8
;021CAC
;021CB0
;021CB4
;021CB8
;021CBC
;021CC0
;021CC4
;021CC8
;021CCC
;021CD0
;021CD4
;021CD8
;021CDC
;021CE0
;021CE4
;021CE8
;021CEC
;021CF0
;021CF4
;021CF8
;021CFC
;021D00
;021D04
;021D08
;021D0C
;021D10
;021D14
;021D18
;021D1C
;021D20
;021D24
;021D28
;021D2C
;021D30
;021D34
;021D38
;021D3C
;021D40
;021D44
_ChkBCIs0		equ 021D48
_ChkDEIs0		equ 021D4C
_ChkHLIs0		equ 021D50
_SetatoBCU		equ 021D54
_SetatoDEU		equ 021D58
_SetatoHLU		equ 021D5C
_SetBCUtoA		equ 021D60
_SetBCUtoB		equ 021D64
_SetDEUtoA		equ 021D68
_SetDEUtoB		equ 021D6C
_SetHLUtoA		equ 021D70
_SetHLUtoB		equ 021D74
_SignextendBC		equ 021D78
_SignextendDE_Broken	equ 021D7C
_SignextendHL_Broken	equ 021D80
_SetBCUto0		equ 021D84
_SetDEUto0		equ 021D88
_SetHLUto0		equ 021D8C
_DivHLbya		equ 021D90
_cpHLDE_s		equ 021D94
_cpHLDE			equ 021D98
_loadDEInd_s		equ 021D9C
_loadDEInd		equ 021DA0
_cpHLDEBC		equ 021DA4
_negBC			equ 021DA8
_negDE			equ 021DAC
_StrCmpre		equ 021DB0
_addHLandA		equ 021DB4
;021DB8
;021DBC
_swapHLendian		equ 021DC0
;021DC4
;021DC8
;021DCC
;021DD0
;021DD4
;021DD8
;021DDC
;021DE0
;021DE4
;021DE8
;021DEC
;021DF0
;021DF4
;021DF8
;021DFC
;021E00
;021E04
;021E08
;021E0C
;021E10
;021E14
;021E18
;021E1C
;021E20
;021E24
;021E28
;021E2C
;021E30
;021E34
;021E38
;021E3C
;021E40
;021E44
;021E48
;021E4C
;021E50
;021E54
;021E58
;021E5C
;021E60
;021E64
;021E68
;021E6C
;021E70
;021E74
;021E78
;021E7C
;021E80
;021E84
;021E88
;021E8C
;021E90
;021E94
;021E98
;021E9C
;021EA0
;021EA4
;021EA8
;021EAC
;021EB0
;021EB4
;021EB8
;021EBC
;021EC0
;021EC4
;021EC8
;021ECC
;021ED0
;021ED4
;021ED8
;021EDC
_Disphl			equ 021EE0
;021EE4
;021EE8
;021EEC
;021EF0
;021EF4
;021EF8
;021EFC
;021F00
;021F04
;021F08
;021F0C
;021F10
;021F14
;021F18
;021F1C
;021F20
;021F24
;021F28
;021F2C
;021F30
;021F34
;021F38
;021F3C
;021F40
;021F44
;021F48
;021F4C
;021F50
;021F54
;021F58
;021F5C
;021F60
;021F64
;021F68
;021F6C
;021F70
;021F74
;021F78
;021F7C
;021F80
;021F84
;021F88
;021F8C
;021F90
;021F94
_Chkinram		equ 021F98
;021F9C
;021FA0
;021FA4
;021FA8
;021FAC
;021FB0
;021FB4
;021FB8
;021FBC
;021FC0
;021FC4
;021FC8
;021FCC
;021FD0
;021FD4
;021FD8
;021FDC
;021FE0
;021FE4
;021FE8
;021FEC
;021FF0
;021FF4
;021FF8
;021FFC
;022000
;022004
;022008
;02200C
;022010
;022014
;022018
;02201C
;022020
;022024
;022028
;02202C
;022030
;022034
;022038
;02203C
;022040
;022044
;022048
;02204C
;022050
;022054
;022058
;02205C
;022060
;022064
;022068
;02206C
;022070
;022074
;022078
;02207C
;022080
;022084
;022088
_ret			equ 02208C
;022090
;022094
;022098
;02209C
;0220A0
;0220A4
_nmihandler		equ 0220A8

;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

apdTimer		equ 0D00591h
curRow			equ 0D00595h
curCol			equ 0D00596h
curOffset		equ 0D00597h

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

asm_prgm_size		equ 0D0118Ch

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

;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

;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