-
Notifications
You must be signed in to change notification settings - Fork 0
/
ti73.inc
3148 lines (2981 loc) · 98.1 KB
/
ti73.inc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
;TI-73 Include File
;Brandon Wilson
;TASM Compatibility
;------------------
#define equ .equ
#define EQU .EQU
#define end .end
#define END .END
;BCALL/BJUMP Macros
;------------------
#define bcall(xxxx) rst 28h \ .dw xxxx
#define bjump(xxxx) call 50h \ .dw xxxx
;Page 18h ROM Calls
;------------------------------
_LdHLind equ 4000h
_CpHLDE equ 4003h
_DivHLBy10 equ 4006h
_DivHLByA equ 4009h
_GetCSC equ 400Fh
_JForceCmdNoChar equ 401Eh
_PutAway equ 4039h
_AppInit equ 4048h
_LCD_BUSY equ 4051h
_Min equ 4054h
_Max equ 4057h
_AbsO1PAbsO2 equ 405Ah
_Intgr equ 405Dh
_Trunc equ 4060h
_InvSub equ 4063h
_Times2 equ 4066h
_Plus1 equ 4069h
_Minus1 equ 406Ch
_FPSub equ 406Fh
_FPAdd equ 4072h
_DToR equ 4075h
_RToD equ 4078h
_Cube equ 407Bh
_TimesPt5 equ 407Eh
_FPSquare equ 4081h
_FPMult equ 4084h
_InvOP1SC equ 408Ah
_InvOP1S equ 408Dh
_InvOP2S equ 4090h
_Frac equ 4093h
_FPRecip equ 4096h
_FPDiv equ 4099h
_SqRoot equ 409Ch
_RndGuard equ 409Fh
_RnFx equ 40A2h
_Int equ 40A5h
_Round equ 40A8h
_LnX equ 40ABh
_LogX equ 40AEh
_EToX equ 40B4h
_TenX equ 40B7h
_SinCosRad equ 40BAh
_Sin equ 40BDh
_Cos equ 40C0h
_Tan equ 40C3h
_ACosRad equ 40C6h
_ATanRad equ 40C9h
_ATan2Rad equ 40CCh
_ASinRad equ 40CFh
_ACos equ 40D2h
_ATan equ 40D5h
_ASin equ 40D8h
_ATan2 equ 40DBh
_PToR equ 40DEh
_RToP equ 40E1h
_HLTimes9 equ 40E4h
_CkOP1Real equ 40E7h
_CpOP4OP3 equ 40EAh
_AbsO1O2Cp equ 40F0h
_CpOP1OP2 equ 40F3h
_OP3ToOP4 equ 40F6h
_OP1ToOP4 equ 40F9h
_OP2ToOP4 equ 40FCh
_OP4ToOP2 equ 40FFh
_OP3ToOP2 equ 4102h
_OP1ToOP3 equ 4105h
_OP5ToOP2 equ 4108h
_OP5ToOP6 equ 410Bh
_OP5ToOP4 equ 410Eh
_OP1ToOP2 equ 4111h
_OP6ToOP2 equ 4114h
_OP6ToOP1 equ 4117h
_OP4ToOP1 equ 411Ah
_OP5ToOP1 equ 411Dh
_OP3ToOP1 equ 4120h
_OP6ToOP5 equ 4123h
_OP4ToOP5 equ 4126h
_OP3ToOP5 equ 4129h
_OP2ToOP5 equ 412Ch
_OP2ToOP6 equ 412Fh
_OP1ToOP6 equ 4132h
_OP1ToOP5 equ 4135h
_OP2ToOP1 equ 4138h
_Mov10B equ 413Eh
_Mov9B equ 4141h
_Mov8B equ 4147h
_Mov7B equ 414Ah
_OP2ToOP3 equ 415Fh
_OP4ToOP3 equ 4162h
_OP5ToOP3 equ 4165h
_OP4ToOP6 equ 4168h
_Mov9ToOP1 equ 416Bh
_Mov9OP1OP2 equ 416Eh
_Mov9ToOP2 equ 4171h
_MovFrOP1 equ 4174h
_OP4Set1 equ 417Dh
_OP3Set1 equ 4180h
_OP2Set8 equ 4183h
_OP2Set5 equ 4186h
_OP2SetA equ 4189h
_OP2Set4 equ 418Ch
_OP2Set3 equ 418Fh
_OP1Set1 equ 4192h
_OP1Set4 equ 4195h
_OP1Set3 equ 4198h
_OP3Set2 equ 419Bh
_OP1Set2 equ 419Eh
_OP2Set2 equ 41A1h
_OP2Set1 equ 41AAh
_Zero16D equ 41B9h
_OP5Set0 equ 41C5h
_OP4Set0 equ 41C8h
_OP3Set0 equ 41CBh
_OP2Set0 equ 41CEh
_OP1Set0 equ 41D1h
_ZeroOP1 equ 41D7h
_ZeroOP2 equ 41DAh
_ZeroOP3 equ 41DDh
_ZeroOP equ 41E0h
_ClrLp equ 41E3h
_ShRAcc equ 41E6h
_OP1ExOP5 equ 4219h
_OP1ExOP6 equ 421Ch
_OP1ExOP3 equ 421Fh
_OP1ExOP4 equ 4222h
_OP1ExOP2 equ 4225h
_ExLp equ 4228h
_CkOP1C0 equ 422Bh
_CkOP1FP0 equ 422Eh
_CkOP2FP0 equ 4231h
_PosNo0Int equ 4234h
_CkPosInt equ 4237h
_CkInt equ 423Ah
_CkOdd equ 423Dh
_ExpToHex equ 4249h
_OP1ExpToDec equ 424Ch
_CkOP2Pos equ 424Fh
_CkOP1Pos equ 4252h
_ClrOP2S equ 4255h
_ClrOP1S equ 4258h
_DecO1Exp equ 4261h
_CkValidNum equ 426Ah
_HTimesL equ 4270h
_EOP1NotReal equ 4273h
_XName equ 4279h
_YName equ 427Ch
_IsA2ByteTok equ 4291h
_Equ_or_NewEqu equ 42AFh
_ErrD_OP1NotPos equ 42B2h
_ErrD_OP1Not_R equ 42B5h
_ErrD_OP1NotPosInt equ 42B8h
_ErrD_OP1_LE_0 equ 42BBh
_ErrD_OP1_0 equ 42BEh
_Rcl_StatVar equ 42C7h
_CkOP2Real equ 42CAh
_MemChk equ 42CDh
_ChkFindSym equ 42D9h
_FindSym equ 42DCh
_InsertMem equ 42DFh
_EnoughMem equ 42E5h
_CreateReal equ 42F4h
_CreateRList equ 42FAh
_CreateStrng equ 4300h
_Create0Equ equ 4303h
_CreateEqu equ 4309h
_CreatePict equ 430Ch
_CreateProg equ 430Fh
_CreateAppVar equ 4312h
_DelVar equ 432Ah
_DelMem equ 4330h
_DataSizeA equ 4339h
_DataSize equ 433Ch
_PopOP5 equ 433Fh
_PopOP3 equ 4342h
_PopOP1 equ 4345h
_PopRealO6 equ 4348h
_PopRealO5 equ 434Bh
_PopRealO4 equ 434Eh
_PopRealO3 equ 4351h
_PopRealO2 equ 4354h
_PopRealO1 equ 4357h
_PopReal equ 435Ah
_DeallocFPS equ 4363h
_DeallocFPS1 equ 4366h
_AllocFPS equ 4369h
_AllocFPS1 equ 436Ch
_PushRealO6 equ 436Fh
_PushRealO5 equ 4372h
_PushRealO4 equ 4375h
_PushRealO3 equ 4378h
_PushRealO2 equ 437Bh
_PushRealO1 equ 437Eh
_PushReal equ 4381h
_PushOP5 equ 4384h
_PushOP3 equ 4387h
_PushOP1 equ 438Ah
_Cpyto1FPS11 equ 438Dh
_CpyTo2FPS5 equ 4390h
_Cpyto1FPS5 equ 4393h
_CpyTo2FPS6 equ 4396h
_Cpyto1FPS6 equ 4399h
_CpyTo2FPS7 equ 439Ch
_Cpyto1FPS7 equ 439Fh
_Cpyto1FPS8 equ 43A2h
_CpyTo2FPS8 equ 43A5h
_Cpyto1FPS10 equ 43A8h
_Cpyto1FPS9 equ 43ABh
_CpyTo2FPS4 equ 43AEh
_CpyTo6FPS3 equ 43B1h
_CpyTo6FPS2 equ 43B4h
_CpyTo2FPS3 equ 43B7h
_Cpyto1FPS3 equ 43BDh
_Cpyto1FPS4 equ 43C3h
_CpyTo3FPS2 equ 43C6h
_CpyTo5FPST equ 43C9h
_CpyTo6FPST equ 43CCh
_CpyTo4FPST equ 43CFh
_CpyTo3FPST equ 43D2h
_CpyTo2FPST equ 43D5h
_Cpyto1FPST equ 43D8h
_CpyStack equ 43DEh
_CpyTo3FPS1 equ 43E1h
_CpyTo2FPS1 equ 43E4h
_Cpyto1FPS1 equ 43E7h
_CpyTo2FPS2 equ 43EDh
_Cpyto1FPS2 equ 43F0h
_CpyO3toFPST equ 43F6h
_CpyO2toFPST equ 43F9h
_CpyO6toFPST equ 43FCh
_CpyO1toFPST equ 43FFh
_CpyToFPST equ 4402h
_CpyToStack equ 4405h
_CpyO3toFPS1 equ 4408h
_CpyO5toFPS1 equ 440Bh
_CpyO2toFPS1 equ 440Eh
_CpyO1toFPS1 equ 4411h
_CpyToFPS1 equ 4414h
_CpyO2toFPS2 equ 4417h
_CpyO3toFPS2 equ 441Ah
_CpyO6toFPS2 equ 441Dh
_CpyO1toFPS2 equ 4420h
_CpyToFPS2 equ 4423h
_CpyO5toFPS3 equ 4426h
_CpyO2toFPS3 equ 4429h
_CpyO1toFPS3 equ 442Ch
_CpyToFPS3 equ 442Fh
_CpyO1toFPS6 equ 4432h
_CpyO1toFPS7 equ 4435h
_CpyO1toFPS5 equ 4438h
_CpyO2toFPS4 equ 443Bh
_CpyO1toFPS4 equ 443Eh
_ErrNotEnoughMem equ 4441h
_StrCopy equ 444Ah
_PutMap equ 4468h
_PutC equ 446Bh
_DispHL equ 446Eh
_PutS equ 4471h
_PutPSB equ 4474h
_PutPS equ 4477h
_NewLine equ 4495h
_ClrLCDFull equ 44A7h
_ClrLCD equ 44AAh
_ClrScrnFull equ 44ADh
_ClrScrn equ 44B0h
_ClrTxtShd equ 44B3h
_EraseEOL equ 44B9h
_VPutMap equ 44C5h
_VPutS equ 44C8h
_VPutSN equ 44CBh
_RunIndicOn equ 44D4h
_RunIndicOff equ 44D7h
_GetTokLen equ 44F5h
_Get_Tok_Strng equ 44F8h
_DispEOL equ 450Ah
_DispDone equ 4519h
_CursorOff equ 4522h
_CursorOn equ 4528h
_KeyToString equ 452Eh
_AdrMRow equ 4567h
_AdrMEle equ 456Ah
_GetLToOP1 equ 4573h
_PutToL equ 4582h
_ToFrac equ 4594h
_BinOPExec equ 459Ah
_UnOpExec equ 45A9h
_ThreeExec equ 45ACh
_FourExec equ 45B2h
_FiveExec equ 45B5h
_CloseEditBufNoR equ 46A2h
_ReleaseBuffer equ 46A5h
_Load_SFont equ 46B7h
_SFont_Len equ 46BAh
_SetXXOP1 equ 46C0h
_SetXXOP2 equ 46C3h
_SetXXXXOP2 equ 46C6h
_UCLines equ 46C9h
_CLine equ 46CCh
_CLineS equ 46CFh
_XRootY equ 46D2h
_YtoX equ 46D5h
_ZmStats equ 46D8h
_StoGDB2 equ 46F0h
_RclGDB2 equ 46F3h
_CircCmd equ 46F6h
_GrphCirc equ 46F9h
_Mov18B equ 46FCh
_DarkLine equ 46FFh
_ILine equ 4702h
_IPoint equ 4705h
_DarkPnt equ 4714h
_CPointS equ 4717h
_VtoWHLDE equ 471Dh
_XitoF equ 4720h
_YftoI equ 4723h
_XftoI equ 4726h
_SetFuncM equ 4762h
_ZmInt equ 476Bh
_ZmDecml equ 476Eh
_ZmPrev equ 4771h
_ZmUsr equ 4774h
_ZmFit equ 477Ah
_ZmSquare equ 477Dh
_ZmTrig equ 4780h
_ZooDefault equ 4786h
_GrBufCpy equ 4789h
_RestoreDisp equ 478Ch
_AllEq equ 4792h
_Regraph equ 47AAh
_PDspGrph equ 47C2h
_HorizCmd equ 47C5h
_VertCmd equ 47C8h
_LineCmd equ 47CBh
_UnLineCmd equ 47CEh
_PointCmd equ 47D1h
_PixelTest equ 47D4h
_DrawCmd equ 47DDh
_InvCmd equ 47E3h
_CloseEditBuf equ 47E9h
_IsEditEmpty equ 483Ah
_BufClear equ 4840h
_PutTokString equ 485Eh
_CloseEditEqu equ 4867h
_GetKey equ 486Dh
_LCD_DRIVERON equ 4873h
_FormEReal equ 4885h
_FormReal equ 488Bh
_SendVarCmd equ 48F1h
_keyscnlnk equ 48F4h
_DelRes equ 48FAh
_RedimMat equ 48FDh
_IncLstSize equ 4900h
_InsertList equ 4903h
_DelListEl equ 4906h
_EditProg equ 4909h
_CloseProg equ 490Ch
_ClrGraphRef equ 490Fh
_FixTempCnt equ 4912h
_FindAlphaUp equ 491Bh
_FindAlphaDn equ 491Eh
_CmpSyms equ 4921h
_CleanAll equ 4927h
_ErrNonReal equ 495Ah
_ParseInp equ 4966h
_OP2Set60 equ 497Bh
_StoSysTok equ 4987h
_StoAns equ 498Ah
_StoY equ 498Dh
_StoX equ 4990h
_StoOther equ 4993h
_RclAns equ 4996h
_RclY equ 4999h
_RclX equ 499Ch
_RclVarSym equ 499Fh
_RclSysTok equ 49A2h
_StMatEl equ 49A5h
_ConvOP1 equ 49ABh
_Find_Parse_Formula equ 49B1h
_ErrOverflow equ 49E1h
_ErrDivBy0 equ 49E4h
_ErrDomain equ 49E7h
_ErrIncrement equ 49EAh
_ErrNon_Real equ 49EDh
_ErrSyntax equ 49F0h
_ErrDataType equ 49F9h
_ErrArgument equ 49FFh
_ErrDimMismatch equ 4A02h
_ErrDimension equ 4A05h
_ErrUndefined equ 4A08h
_ErrMemory equ 4A0Bh
_ErrInvalid equ 4A11h
_ErrBreak equ 4A20h
_ErrStat equ 4A23h
_ErrSignChange equ 4A29h
_ErrIterations equ 4A2Ch
_ErrBadGuess equ 4A2Fh
_ErrTolTooSmall equ 4A32h
_ErrStatPlot equ 4A35h
_ErrLinkXmit equ 4A38h
_MemClear equ 4A47h
_MemSet equ 4A4Ah
_JError equ 4A4Dh
_ReloadAppEntryVecs equ 4A50h
_PointOn equ 4A56h
_StrLength equ 4A5Ch
_IBounds equ 4AA4h
_IOffset equ 4AA7h
_DrawCirc2 equ 4AADh
_CanAlphIns equ 4AB0h
_AdrLEle equ 4AB6h
_GrBufClr equ 4AD4h
_DispOP1A equ 4AFBh
_ConvDim equ 4B58h
_ConvDim00 equ 4B5Bh
_AnsName equ 4B67h
_GetBaseVer equ 4B8Eh
_AppGetCbl equ 4B97h
_AppGetCalc equ 4B9Ah
_Random equ 4B9Dh
_SaveDisp equ 4BA3h
_DisableAPI equ 4BDFh
_DisableApd equ 4BE8h
_EnableApd equ 4BEBh
_JErrorNo equ 4C03h
_ApdSetup equ 4C06h
_RandInit equ 4C21h
_SrchVLstUp equ 4C33h
_SrchVLstDn equ 4C36h
_LoadPattern equ 4C51h
_SStringLength equ 4C54h
_ClearRow equ 4C8Dh
_ClearRect equ 4CFCh
_InvertRect equ 4CFFh
_FillRect equ 4D02h
_DrawRectBorder equ 4D2Ch
_EraseRectBorder equ 4D35h
_FillRectPattern equ 4D38h
_DrawRectBorderClear equ 4D3Bh
_IBoundsFull equ 4D4Dh
_DisplayImage equ 4D5Ch
_CPoint equ 4D89h
_StoRand equ 4E5Eh
;Page 1Fh ROM Calls
;--------------------------------
bootbtf equ 8000h
;400Fh may point to zero-terminated version string
_MD5Final equ 8018h
_RSAValidate equ 801Bh
_cmpStr equ 801Eh ;BigNumCompare
_WriteAByte equ 8021h
_EraseFlash equ 8024h
_FindFirstCertField equ 8027h
_ZeroToCertificate equ 802Ah
_GetCertificateEnd equ 802Dh
_FindGroupedField equ 8030h
_ret_1 equ 8033h
_ret_2 equ 8036h
_ret_3 equ 8039h
_ret_4 equ 803Ch
_ret_5 equ 803Fh
_Mult8By8 equ 8042h
_Mult16By8 equ 8045h
_Div16By8 equ 8048h
_Div16By16 equ 804Bh
;804Eh ;scary certificate reading and writing, something about calc ID and fields 0A10/0A20
_LoadAIndPaged equ 8051h
_FlashToRam2 equ 8054h
_GetCertificateStart equ 8057h
_GetFieldSize equ 805Ah
_FindSubField equ 805Dh
_EraseCertificateSector equ 8060h
_CheckHeaderKey equ 8063h
;8066h ;scans for certificate field 310h, subfield 600h/610h (certificate revision stuff?)
;8069h ;makes sure certificate field 0710h (in appID) doesn't exist, scans for 800h/810h (certificate repair/revision thing?)
_Load_LFontV2 equ 806Ch
_Load_LFontV equ 806Fh
_ReceiveOS equ 8072h
_FindOSHeaderSubField equ 8075h
_FindNextCertField equ 8078h
_GetByteOrBoot equ 807Bh
_getSerial equ 807Eh ;GetCalcSerial
_ReceiveCalcID equ 8081h ;receives certificate replacement (including calculator ID) and writes it, requires Flash unlocked
_EraseFlashPage equ 8084h
_WriteFlashUnsafe equ 8087h
_dispBootVer equ 808Ah
_MD5Init equ 808Dh
_MD5Update equ 8090h
_MarkOSInvalid equ 8093h
_FindProgramLicense equ 8096h ;copies 8010h field to appID and other insane stuff that makes zero sense
_MarkOSValid equ 8099h
_CheckOSValidated equ 809Ch
_SetupAppPubKey equ 809Fh
_SigModR equ 80A2h
_TransformHash equ 80A5h
_IsAppFreeware equ 80A8h
_FindAppHeaderSubField equ 80ABh
_WriteValidationNumber equ 80AEh ;generates two-byte validation number from calc ID and stores to certificate
_Div32By16 equ 80B1h
_FindGroup equ 80B4h ;searches until field of DE-like group is found (DE=0A00h, it stops when it finds 0Ax0h)
_getBootVer equ 80B7h
_getHardwareVersion equ 80BAh
_xorA equ 80BDh ;xor a
_bignumpowermod17 equ 80C0h
_ProdNrPart1 equ 80C3h
_WriteAByteSafe equ 80C6h
_WriteFlash equ 80C9h
_SetupDateStampPubKey equ 80CCh
;System RAM Equates
;------------------------------
ramStart equ 8000h
appData equ 8000h
asm_exec_ram equ 8001h
ramCode equ 8100h
ramCodeEnd equ 822Fh
baseAppBrTab equ 8230h
bootTemp equ 8241h
appSearchPage equ 8293h
tempSwapArea equ 8295h
appID equ 837Dh
kbdScanCode equ 83D8h
kbdKey equ 83DDh
kbdGetKy equ 83DEh
keyExtend equ 83DFh
contrast equ 83E0h
curTime equ 83E1h
curRow equ 83E2h
curCol equ 83E3h
curOffset equ 83E4h
curUnder equ 83E5h
ioFlag equ 83E6h
sndRecState equ 83E8h
ioErrState equ 83E9h
header equ 83EAh
ioData equ 83F3h
bakHeader equ 83FFh
OP1 equ 842Bh
OP1M equ 842Dh
OP2 equ 8436h
OP2EXT equ 843Fh
OP3 equ 8441h
OP3M equ 8443h
OP4 equ 844Ch
OP4M equ 844Eh
OP5 equ 8457h
OP5M equ 8459h
OP6 equ 8462h
OP6M equ 8464h
OP6EXT equ 846Bh
progToEdit equ 8472h
nameBuff equ 847Ah
equ_edit_save equ 8485h
OP2M equ 8485h
iMathPtr1 equ 8486h
iMathPtr2 equ 8488h
iMathPtr3 equ 848Ah
iMathPtr4 equ 848Ch
iMathPtr5 equ 848Eh
chkDelPtr1 equ 8490h
chkDelPtr2 equ 8492h
insDelPtr equ 8494h
upDownPtr equ 8496h
curY equ 8498h
curType equ 8499h
curXRow equ 849Ah
prevDData equ 849Bh
lFont_record equ 84A3h
sFont_record equ 84ABh
menuActive equ 84B3h
menuAppDepth equ 84B4h
MenuCurrent equ 84B5h
ProgCurrent equ 84C1h
rclQueue equ 84D2h
rclQueueEnd equ 84D4h
indicMem equ 84D6h
indicCounter equ 84DEh
indicBusy equ 84DFh
apdSubTimer equ 84E0h
apdTimer equ 84E1h
cxMain equ 84E2h
cxPPutAway equ 84E4h
cxPutAway equ 84E6h
cxRedisp equ 84E8h
cxErrorEP equ 84EAh
cxSizeWind equ 84ECh
cxPage equ 84EEh
cxCurApp equ 84EFh
cxPrev equ 84F0h
monQH equ 850Eh
monQT equ 850Fh
monQueue equ 8510h
onSP equ 8520h
ramReturnData equ 8529h
errNo equ 854Ah
errSP equ 854Bh
errOffset equ 854Dh
bstCounter equ 8559h
flags equ 855Bh
tokVarPtr equ 85A1h
tokLen equ 85A3h
fOutDat equ 85A5h
asm_data_ptr1 equ 85AFh
asm_data_ptr2 equ 85B1h
asm_sym_ptr1 equ 85B3h
asm_sym_ptr2 equ 85B5h
asm_ind_call equ 85B7h
appRawKeyHandle equ 85B8h
appBank_jump equ 85C9h
appPage equ 85CBh
customHeight equ 8612h
appBackUpScreen equ 8613h
textShadow equ 8913h
textShadCur equ 8993h
textShadTop equ 8995h
textShadAlph equ 8996h
textShadIns equ 8997h
appInfo equ 8998h
promptRow equ 89A2h
promptCol equ 89A3h
promptIns equ 89A4h
promptShift equ 89A5h
promptRet equ 89A6h
promptValid equ 89A8h
promptTop equ 89AAh
promptCursor equ 89ACh
promptTail equ 89AEh
promptBtm equ 89B0h
varType equ 89B2h
varCurrent equ 89B3h
varClass equ 89BBh
penCol equ 89DFh
penRow equ 89E0h
userMenuSA equ 89E1h
ioPrompt equ 8A41h
RectFillPHeight equ 8A42h
dImageWidth equ 8A42h
RectFillPWidth equ 8A43h
RectFillPattern equ 8A44h
saveSScreen equ 8A52h
statVars equ 8D58h
curGStyle equ 8E94h
curGY equ 8E95h
curGX equ 8E96h
curGY2 equ 8E97h
curGX2 equ 8E98h
freeSaveY equ 8E99h
freeSaveX equ 8E9Ah
XOffset equ 8EC8h
YOffset equ 8EC9h
lcdTallP equ 8ECAh
pixWideP equ 8ECBh
pixWide_m_1 equ 8ECCh
pixWide_m_2 equ 8ECDh
lastEntryPTR equ 8ECEh
lastEntryStk equ 8ED0h
numLastEntries equ 90D0h
currLastEntry equ 90D1h
curInc equ 92DEh
uXmin equ 92F5h
uXmax equ 92FEh
uXscl equ 9307h
uYmin equ 9310h
uYmax equ 9319h
uYscl equ 9322h
uThetMin equ 932Bh
uThetMax equ 9334h
uThetStep equ 933Dh
uTmin equ 9346h
uTmax equ 934Fh
uTStep equ 9358h
uPlotStart equ 9361h
unMax equ 936Ah
uu0 equ 9373h
uv0 equ 937Ch
unMin equ 9385h
uu02 equ 938Eh
uv02 equ 9397h
uw0 equ 93A0h
uPlotStep equ 93A9h
uXres equ 93B2h
uw02 equ 93BBh
Xmin equ 93C7h
Xmax equ 93D0h
Xscl equ 93D9h
Ymin equ 93E2h
Ymax equ 93EBh
Yscl equ 93F4h
ThetaMin equ 93FDh
ThetaMax equ 9406h
ThetaStep equ 940Fh
TminPar equ 9418h
TmaxPar equ 9421h
Tstep equ 942Ah
PlotStart equ 9433h
nMax equ 943Ch
u0 equ 9445h
v0 equ 944Eh
nMin equ 9457h
u02 equ 9460h
v02 equ 9469h
w0 equ 9472h
PlotStep equ 947Bh
XresO equ 9484h
w02 equ 948Dh
smallEditRAM equ 949Fh
XFact equ 950Bh
YFact equ 9514h
Xres_int equ 951Dh
deltaX equ 951Eh
deltaY equ 9527h
shortX equ 9530h
shortY equ 9539h
lower equ 9542h
upper equ 954Bh
XOutSym equ 9558h
XOutDat equ 955Ah
YOutSym equ 955Ch
YOutDat equ 955Eh
inputSym equ 9560h
inputDat equ 9562h
prevData equ 9564h
TblMin equ 9676h
TblStep equ 967Fh
P1Type equ 968ch
SavX1List equ 968dh
SavY1List equ 9692h
SavF1List equ 9697h
P1FrqOnOff equ 96abh
P2Type equ 96aeh
SavX2List equ 96afh
SavY2List equ 96b4h
SavF2List equ 96b9h
P2FrqOnOff equ 96cdh
P3Type equ 96d0h
SavX3List equ 96d1h
SavY3List equ 96d6h
SavF3List equ 96d8h
P3FrqOnOff equ 96efh
plotSScreen equ 9737h
seed1 equ 9A37h
seed2 equ 9A40h
cmdCursor equ 9A7Eh
editTop equ 9A82h
editCursor equ 9A84h
editTail equ 9A86h
editBtm equ 9A88h
editSym equ 9A94h
editDat equ 9A96h
winTop equ 9B33h
winBtm equ 9B34h
winLeftEdge equ 9B35h
winLeft equ 9B36h
winAbove equ 9B38h
winRow equ 9B3Ah
winCol equ 9B3Ch
fmtDigits equ 9B3Eh
fmtString equ 9B3Fh
fmtConv equ 9B80h
fmtLeft equ 9B92h
fmtIndex equ 9B94h
fmtMatSym equ 9B96h
fmtMatMem equ 9B98h
EQS equ 9B9Ah
tSymPtr1 equ 9BA6h
tSymPtr2 equ 9BA8h
chkDelPtr3 equ 9BAAh
chkDelPtr4 equ 9BACh
tempMem equ 9BAEh
fpBase equ 9BB0h
FPS equ 9BB2h
OPBase equ 9BB4h
OPS equ 9BB6h
pTempCnt equ 9BB8h
cleanTmp equ 9BBAh
pTemp equ 9BBCh
progPtr equ 9BBEh
newDataPtr equ 9BC0h
appErr1 equ 9BC2h
appErr2 equ 9BCFh
userMem equ 9C37h
symTable equ 0FE66h
;Equates for Fraction Entry Routines
;-----------------------------------
fieldMax equ OP5
fieldLen equ fieldMax+1
fieldCol equ fieldLen+1 ;pencol of start
fieldRow equ fieldCol+1 ;penrow of start, 3 rows above char
fieldInput equ fieldRow+1 ;9 bytes
wholeMax equ tempSwapArea
wholeLen equ wholeMax+1
wholeCol equ wholeLen+1 ;pencol of start
wholeRow equ wholeCol+1 ;penrow of start, 3 rows above char
wholeInput equ wholeRow+1 ;9 bytes
numerMax equ wholeInput+9
numerLen equ numerMax+1
numerCol equ numerLen+1 ;pencol of start
numerRow equ numerCol+1 ;penrow of start
numerInput equ numerRow+1 ;9 bytes
denomMax equ numerInput+9
denomLen equ denomMax+1
denomCol equ denomLen+1 ;pencol of start
denomRow equ denomCol+1 ;penrow of start
denomInput equ denomRow+1 ;9 bytes
fracLineLen equ denomInput+9
fracLineCol equ fracLineLen+1
fracRightEdge equ fracLineCol+1
curPosition equ fracRightEdge+1
numerSpaces equ curPosition+1
denomSpaces equ numerSpaces+1
haveFrac equ 3
haveUnit equ 4
incCurPos equ 5
;======================================================================
; system and state flags
;======================================================================
;
trigFlags equ 0 ;trigonometry mode settings
trigDeg equ 2 ; 1=degrees, 0=radians
kbdFlags equ 0 ;keyboard scan
kbdScr equ 3 ; 1=scan code ready
kbdKeyPress equ 4 ; 1=key has been pressed
doneFlags equ 0 ;display "done"
donePrgm equ 5 ; 1=display "done" after prgm
ioDelFlag equ 0
inDelete equ 0 ;1 = delete screen
;----------------------------------------------------------------------
editFlags equ 1
editOpen equ 2 ; 1=edit buffer is open
monFlags equ 1 ;monitor flags
monAbandon equ 4 ; 1=don't start any long process
; in put away (#715)
;----------------------------------------------------------------------
plotFlags equ 2 ;plot generation flags
plotTrace equ 0
plotLoc equ 1 ; 0=bkup & display, 1=display only
plotDisp equ 2 ; 1=plot is in display, 0=text in display
grfModeFlags equ 2 ;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 3
graphProg equ 1 ; 1=graph in progress
graphDraw equ 0 ; 0=graph is valid, 1=redraw graph
grfDBFlags equ 4
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 5 ;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
parsFlag2 equ 7 ;parser flags
numOP1 equ 0 ; 1=result in op1, 0=no result
newDispF equ 8 ;derivative mode flags
preClrForMode equ 0 ; 1=help blink on mode screen
apdFlags equ 8 ;automatic power-down
apdAble equ 2 ; 1=apd enabled
apdRunning equ 3 ; 1=apd clock running
web_err_mask equ 60h
onFlags equ 9 ;on key flags
onRunning equ 3
onInterrupt equ 4 ; 1=on key interrupt request
statFlags equ 9 ;statistics flags
statsValid equ 6 ; 1=stats are valid
fmtFlags equ 10 ;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 10
fmtReal equ 5
fmtRect equ 6
fmtPolar equ 7
realMode equ 5
rectMode equ 6
polarMmode 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 11 ;copy of fmtflags with conversion override
fmtEditFlags equ 12 ;numeric editing flags
fmtEdit equ 0 ; 1=format number for editing
curFlags equ 12 ;cursor
curAble equ 2 ; 1=cursor flash is enabled
curOn equ 3 ; 1=cursor is showing
curLock equ 4 ; 1=cursor is locked off
appFlags equ 13 ;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
seqFlags equ 15 ; 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 17 ;prompt line flags
promptEdit equ 0 ; 1=editing in prompt buffer
indicFlags equ 18 ;indicator flags
indicRun equ 0 ; 1=run indicator on
indicInUse equ 1 ; indicator save area in use=1, free=0
indicOnly equ 2 ; interrupt handler only checks run indicator
shiftFlags equ 18 ;[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 19 ;table flags.
autoFill equ 4 ; 1=prompt, 0=fillauto
autoCalc equ 5 ; 1=prompt, 0=calcauto
reTable equ 6 ; 0=table is ok, 1=must recompute table.