-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtias.cpp
4188 lines (3899 loc) · 182 KB
/
tias.cpp
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
// a simple TI8x Assembler with some built-in functions.
//
// By: Michael K. Pellegrino - January 2020 to January 2021
//
// Built-in functions: user_input, disp_op1, and store_op1
// the built-in functions are not compiled in unless needed.
//
// This is a work in progress and a few important notes follow.
// (more like todo's rather than notes actually)
//
// *) I would like to add a while-loop or a for-loop syntax that
// sets up some more robust looping stuff - but then we're
// turning it into a language other than assembler.
//
// *) The ability to have a string of bytes would be nice. Like
// .db 0x00, 0x45, 0xFE, 0x23 instead of having them all on
// different lines.
//
// *) the DISassembler that I made is not great, but works well enough
//
// *) Add the ability to input text too
//
// *) like this program, this to-do/notes list is a work-in-progress
// and may grow or shrink from time-to-time
//
// =======================================================
//
// To build: make tias
// make disassemble
//
// To compile: tias input.asm output.8xp
//
// To disassemble: disassemble input.8xp
// or disassemble input.8xp --help
#include <stdio.h>
#include <cstdlib>
#include <iostream>
#include <fstream>
#include <vector>
#include <cctype>
#include <math.h>
// included for the parser
#include <sstream>
#include <string>
using namespace std;
#define RealObj 0x00
#define _OP1 0x8478
#define _OP2 0x8483
#define _OP3 0x848E
#define _OP4 0x8499
#define _OP5 0x84A4
#define _OP6 0x84AF
#define _tA 0x41
#define _tB 0x42
#define _tC 0x43
#define _tD 0x44
#define _tE 0x45
#define _tF 0x46
#define _tG 0x47
#define _tH 0x48
#define _tI 0x49
#define _tJ 0x4A
#define _tK 0x4B
#define _tL 0x4C
#define _tM 0x4D
#define _tN 0x4E
#define _tO 0x4F
#define _tP 0x50
#define _tQ 0x51
#define _tR 0x52
#define _tS 0x53
#define _tT 0x54
#define _tU 0x55
#define _tV 0x56
#define _tW 0x57
#define _tX 0x58
#define _tY 0x59
#define _tZ 0x5A
#define _tTheta 0x5B
#define _CurCol 0x844C
#define _CurRow 0x844B
using namespace std;
vector<unsigned char> byte_vector;
vector<string> loc_vector;
ofstream listfile; // listing file
int listed=0;
int byte_delay=0;
int error_count=0;
int compilation_failed=0;
int memorylocation;
int start_counting=0;
int program_index=0;
int function_mem_clr=0;
int function_ui=0;
int function_hi=0;
int function_loop=0;
int store_op1=0;
int disp_op1=0;
int degree_mode=0;
int hex_to_string=0;
int radian_mode=0;
int convop1b=0;
int fully_clear_screen=0;
string name;
int line_number=0;
int add_hex_input=0;
int add_degree_mode=0;
int add_hex_to_string=0;
int add_loop=0;
int add_mem_clear=0;
int add_input=0;
int add_store_op1=0;
int add_disp_op1=0;
int add_convop1b=0;
int add_fully_clear_screen=0;
class offset;
class label;
void a(string s);
void sysCall(string s);
void addByte(unsigned char);
vector<label> label_vector;
vector<label> label_cr_vector;
vector<offset> offset_vector;
class label
{
public:
label( string s, int a )
{
index=program_index;
memory_location=a;
label_number=-1;
name=s;
line_num=line_number;
}
label( string s )
{
index=program_index;
memory_location=memorylocation;
label_number=-1;
name=s;
line_num=line_number;
}
label()
{
index=program_index;
memory_location=memorylocation;
label_number=-1;
line_num=line_number;
name="";
};
label(int l)
{
index=program_index;
memory_location=memorylocation;
label_number=l;
line_num=line_number;
name="";
};
~label(){};
int getIndex(){ return index; };
int getMemoryLocation(){ return memory_location; };
int getLabelNumber(){ return label_number; };
string getName(){ return name; };
void process()
{
if( label_number==-1 )
{
// search by name instead
int ml=-1;
for( int i=0; i<label_cr_vector.size(); i++ )
{
if( label_cr_vector[i].getName() == name )
{
ml=label_cr_vector[i].getMemoryLocation();
}
}
if( ml == -1 )
{
// Label wasn't found
cerr << endl << "*** label wasn't found [" << name << "] - compilation failed ***" << endl;
cerr << " line number: " << dec << line_number << endl;
cerr << " program index: 0x" << hex << uppercase << program_index << " (" << dec << program_index << " decimal)" << endl << endl;
compilation_failed=1;
error_count++;
}
// OPTIMIZE HERE
{
unsigned char c = byte_vector[index-1];
if( ((c==0xC3)||(c==0xC2)||(c==0xD2)||(c==0xE2)||(c==0xF2)||(c==0xCA)||(c==0xDA)||(c==0xEA)||(c==0xFA)||(c==0xE9)) && (abs(ml-memory_location)<126) )
{
cerr << "*** jump [" << index-1 << "] could be made relative... distance is: " << dec << abs( ml-memory_location )<< " [" << name << "]\nLine Number: " << dec << line_num << endl;
}
}
byte_vector[index]=ml&0xFF;
byte_vector[index+1]=(ml&0xFF00)/0xFF;
}
else
{
#ifdef DEBUG
cerr << "changing bytes: [" << index << " and " << index+1 << "] to ["
<< hex << (label_cr_vector[label_number-1].getMemoryLocation()&0xFF) << " and "
<< hex << ( (label_cr_vector[label_number-1].getMemoryLocation()&0xFF00 )/0xFF) << "]" << endl;
#endif
byte_vector[index] = (label_cr_vector[label_number-1].getMemoryLocation()&0xFF);// L
byte_vector[index+1] = ((label_cr_vector[label_number-1].getMemoryLocation()&0xFF00)/0xFF );// H
}
};
private:
int index;
int memory_location;
int label_number;
int line_num;
string name;
};
class offset
{
public:
offset(){};
offset(string s)
{
from=program_index-1;
offset_name=s;
label_number=-1;
line_num=line_number;;
#ifdef DEBUG
cerr << "creating an offset to label: " << s << " from prog index " << program_index << " (Line Number: " << dec << line_num << ")" << endl;
#endif
};
offset(int i)
{
from=program_index-1;
label_number=i;
line_num=line_number;
#ifdef DEBUG
cerr << "creating an offset to label: " << label_number << " from prog index " << program_index << " (Line Number: " << dec << line_num << ")" << endl;
#endif
};
~offset(){};
void process()
{
if( label_number == -1 )
{
// search by name
for( int i=0; i<label_cr_vector.size(); i++ )
{
if(label_cr_vector[i].getName() == offset_name)
{
label_number=i+1;
}
}
}
to=label_cr_vector[label_number-1].getIndex();
diff=to-from-2;
#ifdef DEBUG
cerr << endl << "offset -> label [" << dec << from << " -> " << to << "]\tdiff: " << diff << endl << endl;
#endif
if( (diff>126) || (diff<-126) )
{
// old code here
//cerr << endl << "*** relative jump is too far - compilation failed ***" << endl;
//cerr << " line number: " << dec << line_number << endl;
//cerr << " program index: 0x" << hex << uppercase << from << " (" << dec << from << " decimal)" << " to [" << offset_name << "]" << endl << endl;
//compilation_failed=1;
//error_count++;
// 2021 01 02 - mkpellegrino
cerr << endl << "*** WARNING - relative jump is too far ***" << endl;
cerr << " line number: " << dec << line_number << endl;
cerr << " program index: 0x" << hex << uppercase << from << " (" << dec << from << " decimal)" << " to [" << offset_name << "]" << endl << endl;
//compilation_failed=1;
//error_count++;
}
byte_vector[from+1]=(diff&0xFF);// Actually change the code
#ifdef DEBUG
cerr << "processing offset [diff=" << hex << (unsigned int) (diff&0xFF) << " hex][" << dec << (diff&0xFF) << " dec](" << offset_name << ")" << endl;
#endif
};
private:
//int index;// Where this is in the code.
string offset_name;
int label_number;// Which label number i am pointing to
int from;// Where this is in the code.
int to;//Where are we going?
int line_num;
signed int diff;//How far is it to there?
};
void startCounting()
{
start_counting=1;
memorylocation=40341;
}
void addLabel( string s, int addr )
{
#ifdef DEBUG
cerr << "[" << hex << program_index << "] creating label at [" << hex << memorylocation << "] called [" << s << "]" << endl;
#endif
label l=label(s,addr);
label_cr_vector.push_back( l );
}
void addLabel( string s )
{
#ifdef DEBUG
cerr << "[" << hex << program_index << "] creating label at [" << hex << memorylocation << "] called [" << s << "]" << endl;
#endif
label l=label(s);
label_cr_vector.push_back( l );
}
void addLabel()
{
#ifdef DEBUG
cerr << "[" << hex << program_index << " creating label at [" << hex << memorylocation << "] with no name" << endl;
#endif
label l = label();
label_cr_vector.push_back( l );
}
void subtractByte()
{
#ifdef DEBUG
#endif
program_index--;
if( start_counting == 1) memorylocation--;
byte_vector.erase(byte_vector.begin()+byte_vector.size()-1);
}
void addByte( unsigned char b )
{
program_index++;
if( start_counting == 1) memorylocation++;
byte_vector.push_back( (unsigned char) b );
// if( start_counting == 1 ) listfile << " " << std::uppercase << std::hex << (int)b;
//#ifdef DEBUG
//cerr << "Program Index [" << hex << program_index << "]" << endl;
//#endif
}
void addOffset(string s)
{
offset o = offset(s);
offset_vector.push_back(o);
addByte(0x00);
}
void addOffset(int i)
{
offset o = offset(i);
offset_vector.push_back(o);
addByte(0x00);
}
void addWord( int w=0x0000 )
{
#ifdef DEBUG
cerr << "adding word " << hex << w << "= 0x" << (w&0x00FF) << ":" << ((w&0xFF00)>>8) << endl;
#endif
addByte( (unsigned int)w&0xFF );
addByte( (unsigned int)((w&0xFF00)>>8) );
}
void addAddress( string s )
{
#ifdef DEBUG
cerr << "creating placeholder at [" << hex << memorylocation << "][" << program_index << "] for [" << s << "]" << endl;
#endif
label l = label(s);
label_vector.push_back( l );
addWord(0x0000);
}
void addAddress( int i )
{
#ifdef DEBUG
cerr << "creating placeholder at [" << hex << memorylocation << "][" << program_index << "] for label #[" << i << "]" << endl;
#endif
label l = label(i);
label_vector.push_back( l );
addWord(0x0000);
}
void addChars( string s )
{
for( int i=0; i<s.size(); i++ ) addByte( s[i] );
}
void addString( string s )
{
for( int i=0; i<s.size(); i++ ) addByte( s[i] );
if( start_counting == 1 ) addByte( 0x00 );
}
void setComment( string s )
{
s.resize(42,0x00);
addString(s);
}
void setName( string s )
{
if( name == "")
{
s.resize(8,0x00);
name = s;
addString(s);
}
else
{
name.resize(8,0x00);
for( int i=0; i<8; i++ ) name[i]=toupper(name[i]);
addString(name);
}
}
void sysCall( string s )
{
addByte( 0xEF ); // rst $28
if( s == "PutS"){addWord(0x450A);}
else if( s == "AbsO1O2Cp"){addWord(0x410E);}
else if( s == "AbsO1PAbsO2"){addWord(0x405A);}
else if( s == "ACos"){addWord(0x40DE);}
else if( s == "ACosH"){addWord(0x40F0);}
else if( s == "ACosRad"){addWord(0x40D2);}
else if( s == "AdrLEle"){addWord(0x462D);}
else if( s == "AdrMEle"){addWord(0x4609);}
else if( s == "AdrMRow"){addWord(0x4606);}
else if( s == "AllEq"){addWord(0x4876);}
else if( s == "AllocFPS"){addWord(0x43A5);}
else if( s == "AllocFPS1"){addWord(0x43A8);}
else if( s == "Angle"){addWord(0x4102);}
else if( s == "AnsName"){addWord(0x4B52);}
else if( s == "ApdSetup"){addWord(0x4C93);}
else if( s == "AppGetCalc"){addWord(0x4C78);}
else if( s == "AppGetCbl"){addWord(0x4C75);}
else if( s == "AppInit"){addWord(0x404B);}
else if( s == "Arc_Unarc"){addWord(0x4FD8);}
else if( s == "ArcChk"){addWord(0x5014);}
else if( s == "ArchiveVar"){addWord(0x4FDB);}
else if( s == "ASin"){addWord(0x40E4);}
else if( s == "ASinH"){addWord(0x40ED);}
else if( s == "ASinRad"){addWord(0x40DB);}
else if( s == "ATan"){addWord(0x40E1);}
else if( s == "ATan2"){addWord(0x40E7);}
else if( s == "ATan2Rad"){addWord(0x40D8);}
else if( s == "ATanH"){addWord(0x40EA);}
else if( s == "ATanRad"){addWord(0x40D5);}
else if( s == "BinOPExec"){addWord(0x4663);}
else if( s == "Bit_VertSplit"){addWord(0x4FA8);}
else if( s == "BufClear"){addWord(0x4936);}
else if( s == "BufClr"){addWord(0x5074);}
else if( s == "BufCpy"){addWord(0x5071);}
else if( s == "BufDelete"){addWord(0x4912);}
else if( s == "BufInsert"){addWord(0x4909);}
else if( s == "BufLeft"){addWord(0x4903);}
else if( s == "BufReplace"){addWord(0x490F);}
else if( s == "BufRight"){addWord(0x4906);}
else if( s == "CAbs"){addWord(0x4E97);}
else if( s == "CAdd"){addWord(0x4E88);}
else if( s == "CanAlphIns"){addWord(0x4C69);}
else if( s == "CancelTransmission"){addWord(0x4ECA);}
else if( s == "CDiv"){addWord(0x4E94);}
else if( s == "CDivByReal"){addWord(0x4EBB);}
else if( s == "CEtoX"){addWord(0x4EA9);}
else if( s == "CFrac"){addWord(0x4EC1);}
else if( s == "CheckOSValid"){addWord(0x809C);}
else if( s == "CheckSplitFlag"){addWord(0x49F0);}
else if( s == "Chk_Batt_Level"){addWord(0x5221);}
else if( s == "Chk_Batt_Low"){addWord(0x50B3);}
else if( s == "ChkFindSym"){addWord(0x42F1);}
else if( s == "ChkTimer0"){addWord(0x5176);}
else if( s == "CIntgr"){addWord(0x4EC4);}
else if( s == "CircCmd"){addWord(0x47D4);}
else if( s == "CkInt"){addWord(0x4234);}
else if( s == "CkOdd"){addWord(0x4237);}
else if( s == "CkOP1C0"){addWord(0x4225);}
else if( s == "CkOP1Cplx"){addWord(0x40FC);}
else if( s == "CkOP1FP0"){addWord(0x4228);}
else if( s == "CkOP1Pos"){addWord(0x4258);}
else if( s == "CkOP1Real"){addWord(0x40FF);}
else if( s == "CkOP2FP0"){addWord(0x422B);}
else if( s == "CkOP2Pos"){addWord(0x4255);}
else if( s == "CkOP2Real"){addWord(0x42DF);}
else if( s == "CkPosInt"){addWord(0x4231);}
else if( s == "CkValidNum"){addWord(0x4270);}
else if( s == "CleanAll"){addWord(0x4A50);}
else if( s == "ClearRect"){addWord(0x4D5C);}
else if( s == "ClearRow"){addWord(0x4CED);}
else if( s == "CLine"){addWord(0x4798);}
else if( s == "CLineS"){addWord(0x479B);}
else if( s == "CLN"){addWord(0x4EA0);}
else if( s == "CLog"){addWord(0x4EA3);}
else if( s == "CloseEditBuf"){addWord(0x48D3);}
else if( s == "CloseEditBufNoR"){addWord(0x476E);}
else if( s == "CloseEditEqu"){addWord(0x496C);}
else if( s == "CloseProg"){addWord(0x4A35);}
else if( s == "ClrGraphRef"){addWord(0x4A38);}
else if( s == "ClrLCD"){addWord(0x4543);}
else if( s == "ClrLCDFull"){addWord(0x4540);}
else if( s == "ClrLp"){addWord(0x41D1);}
else if( s == "ClrOP1S"){addWord(0x425E);}
else if( s == "ClrOP2S"){addWord(0x425B);}
else if( s == "ClrScrn"){addWord(0x4549);}
else if( s == "ClrScrnFull"){addWord(0x4546);}
else if( s == "ClrTxtShd"){addWord(0x454C);}
else if( s == "ClrWindow"){addWord(0x454F);}
else if( s == "CMltByReal"){addWord(0x4EB8);}
else if( s == "CmpSyms"){addWord(0x4A4A);}
else if( s == "CMult"){addWord(0x4E8E);}
else if( s == "Conj"){addWord(0x4EB5);}
else if( s == "ContinueGetByte"){addWord(0x4F00);}
else if( s == "ConvDim"){addWord(0x4B43);}
else if( s == "ConvDim00"){addWord(0x4B46);}
else if( s == "ConvLcToLr"){addWord(0x4A23);}
else if( s == "ConvLrToLc"){addWord(0x4A56);}
else if( s == "ConvOP1"){addWord(0x4AEF);}
else if( s == "COP1Set0"){addWord(0x4105);}
else if( s == "CopyFlashPage"){addWord(0x5098);}
else if( s == "Cos"){addWord(0x40C0);}
else if( s == "CosH"){addWord(0x40CC);}
else if( s == "CpHLDE"){addWord(0x400C);}
else if( s == "CPoint"){addWord(0x4DC8);}
else if( s == "CPointS"){addWord(0x47F5);}
else if( s == "CpOP1OP2"){addWord(0x4111);}
else if( s == "CpOP4OP3"){addWord(0x4108);}
else if( s == "CpyO1ToFPS1"){addWord(0x445C);}
else if( s == "CpyO1ToFPS2"){addWord(0x446B);}
else if( s == "CpyO1ToFPS3"){addWord(0x4477);}
else if( s == "CpyO1ToFPS4"){addWord(0x4489);}
else if( s == "CpyO1ToFPS5"){addWord(0x4483);}
else if( s == "CpyO1ToFPS6"){addWord(0x447D);}
else if( s == "CpyO1ToFPS7"){addWord(0x4480);}
else if( s == "CpyO1ToFPST"){addWord(0x444A);}
else if( s == "CpyO2ToFPS1"){addWord(0x4459);}
else if( s == "CpyO2ToFPS2"){addWord(0x4462);}
else if( s == "CpyO2ToFPS3"){addWord(0x4474);}
else if( s == "CpyO2ToFPS4"){addWord(0x4486);}
else if( s == "CpyO2ToFPST"){addWord(0x4444);}
else if( s == "CpyO3ToFPS1"){addWord(0x4453);}
else if( s == "CpyO3ToFPS2"){addWord(0x4465);}
else if( s == "CpyO3ToFPST"){addWord(0x4441);}
else if( s == "CpyO5ToFPS1"){addWord(0x4456);}
else if( s == "CpyO5ToFPS3"){addWord(0x4471);}
else if( s == "CpyO6ToFPS2"){addWord(0x4468);}
else if( s == "CpyO6ToFPST"){addWord(0x4447);}
else if( s == "CpyStack"){addWord(0x4429);}
else if( s == "CpyTo1FPS1"){addWord(0x4432);}
else if( s == "CpyTo1FPS10"){addWord(0x43F3);}
else if( s == "CpyTo1FPS11"){addWord(0x43D8);}
else if( s == "CpyTo1FPS2"){addWord(0x443B);}
else if( s == "CpyTo1FPS3"){addWord(0x4408);}
else if( s == "CpyTo1FPS4"){addWord(0x440E);}
else if( s == "CpyTo1FPS5"){addWord(0x43DE);}
else if( s == "CpyTo1FPS6"){addWord(0x43E4);}
else if( s == "CpyTo1FPS7"){addWord(0x43EA);}
else if( s == "CpyTo1FPS8"){addWord(0x43ED);}
else if( s == "CpyTo1FPS9"){addWord(0x43F6);}
else if( s == "CpyTo1FPST"){addWord(0x4423);}
else if( s == "CpyTo2FPS1"){addWord(0x442F);}
else if( s == "CpyTo2FPS2"){addWord(0x4438);}
else if( s == "CpyTo2FPS3"){addWord(0x4402);}
else if( s == "CpyTo2FPS4"){addWord(0x43F9);}
else if( s == "CpyTo2FPS5"){addWord(0x43DB);}
else if( s == "CpyTo2FPS6"){addWord(0x43E1);}
else if( s == "CpyTo2FPS7"){addWord(0x43E7);}
else if( s == "CpyTo2FPS8"){addWord(0x43F0);}
else if( s == "CpyTo2FPST"){addWord(0x4420);}
else if( s == "CpyTo3FPS1"){addWord(0x442C);}
else if( s == "CpyTo3FPS2"){addWord(0x4411);}
else if( s == "CpyTo3FPST"){addWord(0x441D);}
else if( s == "CpyTo4FPST"){addWord(0x441A);}
else if( s == "CpyTo5FPST"){addWord(0x4414);}
else if( s == "CpyTo6FPS2"){addWord(0x43FF);}
else if( s == "CpyTo6FPS3"){addWord(0x43FC);}
else if( s == "CpyTo6FPST"){addWord(0x4417);}
else if( s == "CpyToFPS1"){addWord(0x445F);}
else if( s == "CpyToFPS2"){addWord(0x446E);}
else if( s == "CpyToFPS3"){addWord(0x447A);}
else if( s == "CpyToFPST"){addWord(0x444D);}
else if( s == "CpyToStack"){addWord(0x4450);}
else if( s == "Create0Equ"){addWord(0x432A);}
else if( s == "CreateAppVar"){addWord(0x4E6A);}
else if( s == "CreateCList"){addWord(0x431B);}
else if( s == "CreateCplx"){addWord(0x430C);}
else if( s == "CreateEqu"){addWord(0x4330);}
else if( s == "CreatePair"){addWord(0x4B0D);}
else if( s == "CreatePict"){addWord(0x4333);}
else if( s == "CreateProg"){addWord(0x4339);}
else if( s == "CreateProtProg"){addWord(0x4E6D);}
else if( s == "CreateReal"){addWord(0x430F);}
else if( s == "CreateRList"){addWord(0x4315);}
else if( s == "CreateRMat"){addWord(0x4321);}
else if( s == "CreateStrng"){addWord(0x4327);}
else if( s == "CreateTempEqu"){addWord(0x432D);}
else if( s == "CreateVar"){addWord(0x4E70);}
else if( s == "CRecip"){addWord(0x4E91);}
else if( s == "CSqRoot"){addWord(0x4E9D);}
else if( s == "CSquare"){addWord(0x4E8B);}
else if( s == "CSub"){addWord(0x4E85);}
else if( s == "CTenX"){addWord(0x4EA6);}
else if( s == "CTrunc"){addWord(0x4EBE);}
else if( s == "Cube"){addWord(0x407B);}
else if( s == "CursorDown"){addWord(0x4948);}
else if( s == "CursorLeft"){addWord(0x493F);}
else if( s == "CursorOff"){addWord(0x45BE);}
else if( s == "CursorOn"){addWord(0x45C4);}
else if( s == "CXrootY"){addWord(0x4EAC);}
else if( s == "CYtoX"){addWord(0x4EB2);}
else if( s == "DarkLine"){addWord(0x47DD);}
else if( s == "DarkPnt"){addWord(0x47F2);}
else if( s == "DataSize"){addWord(0x436C);}
else if( s == "DataSizeA"){addWord(0x4369);}
else if( s == "DeallocFPS"){addWord(0x439F);}
else if( s == "DeallocFPS1"){addWord(0x43A2);}
else if( s == "DecO1Exp"){addWord(0x4267);}
else if( s == "DeleteApp"){addWord(0x4DCB);}
else if( s == "DelListEl"){addWord(0x4A2F);}
else if( s == "DelMem"){addWord(0x4357);}
else if( s == "DelRes"){addWord(0x4A20);}
else if( s == "DelVar"){addWord(0x4351);}
else if( s == "DelVarArc"){addWord(0x4FC6);}
else if( s == "DelVarNoArc"){addWord(0x4FC9);}
else if( s == "DeselectAllVars"){addWord(0x4A1D);}
else if( s == "DisableApd"){addWord(0x4C84);}
else if( s == "DisableAppChangeHook"){addWord(0x502F);}
else if( s == "DisableCursorHook"){addWord(0x4F69);}
else if( s == "DisablecxRedispHook"){addWord(0x506E);}
else if( s == "DisableFontHook"){addWord(0x4FE7);}
else if( s == "DisableGetCSCHook"){addWord(0x4F7E);}
else if( s == "DisableHelpHook"){addWord(0x504D);}
else if( s == "DisableHomescreenHook"){addWord(0x4FAE);}
else if( s == "DisableMenuHook"){addWord(0x5086);}
else if( s == "DisableParserHook"){addWord(0x5029);}
else if( s == "DisableRawKeyHook"){addWord(0x4F6F);}
else if( s == "DisableSilentLinkHook"){addWord(0x50D1);}
else if( s == "DisableTokenHook"){addWord(0x4F9C);}
else if( s == "Disp"){addWord(0x4F45);}
else if( s == "Disp32"){addWord(0x51CD);}
else if( s == "DispAboutScreen"){addWord(0x51C7);}
else if( s == "DispAppRestrictions"){addWord(0x52FF);}
else if( s == "DispDone"){addWord(0x45B5);}
else if( s == "DispEOL"){addWord(0x45A6);}
else if( s == "DispEOW"){addWord(0x4957);}
else if( s == "DispForward"){addWord(0x49D5);}
else if( s == "DispHead"){addWord(0x495A);}
else if( s == "DispHL"){addWord(0x4507);}
else if( s == "DisplayImage"){addWord(0x4D9B);}
else if( s == "DisplayOSProgress"){addWord(0x80F9);}
else if( s == "DispMenuTitle"){addWord(0x5065);}
else if( s == "DispOP1A"){addWord(0x4BF7);}
else if( s == "DispTail"){addWord(0x495D);}
else if( s == "Div32By16"){addWord(0x80B1);}
else if( s == "DivHLBy10"){addWord(0x400F);}
else if( s == "DivHLByA"){addWord(0x4012);}
else if( s == "DivHLbyE"){addWord(0x8048);}
else if( s == "DivHLbyDE"){addWord(0x804B);}
else if( s == "DrawCirc2"){addWord(0x4C66);}
else if( s == "DrawCmd"){addWord(0x48C1);}
else if( s == "DrawRectBorder"){addWord(0x4D7D);}
else if( s == "DrawRectBorderClear"){addWord(0x4D8C);}
else if( s == "DispResetComplete"){addWord(0x5320);}
else if( s == "DToR"){addWord(0x4075);}
else if( s == "DoNothing"){addWord(0x4CBD);}
else if( s == "EditProg"){addWord(0x4A32);}
else if( s == "EnableApd"){addWord(0x4C87);}
else if( s == "EnableAppChangeHook"){addWord(0x502C);}
else if( s == "EnableCursorHook"){addWord(0x4F60);}
else if( s == "EnablecxRedispHook"){addWord(0x506B);}
else if( s == "EnableFontHook"){addWord(0x4FE4);}
else if( s == "EnableGetCSCHook"){addWord(0x4F7B);}
else if( s == "EnableHelpHook"){addWord(0x504A);}
else if( s == "EnableHomescreenHook"){addWord(0x4FAB);}
else if( s == "EnableMenuHook"){addWord(0x5083);}
else if( s == "EnableParserHook"){addWord(0x5026);}
else if( s == "EnableRawKeyHook"){addWord(0x4F66);}
else if( s == "EnableSilentLinkHook"){addWord(0x50CE);}
else if( s == "EnableTokenHook"){addWord(0x4F99);}
else if( s == "EnoughMem"){addWord(0x42FD);}
else if( s == "EOP1NotReal"){addWord(0x4279);}
else if( s == "Equ_or_NewEqu"){addWord(0x42C4);}
else if( s == "EraseEOL"){addWord(0x4552);}
else if( s == "EraseEOW"){addWord(0x4555);}
else if( s == "EraseFlash"){addWord(0x8024);}
else if( s == "EraseFlashPage"){addWord(0x8084);}
else if( s == "EraseRectBorder"){addWord(0x4D86);}
else if( s == "ErrArgument"){addWord(0x44AD);}
else if( s == "ErrBadGuess"){addWord(0x44CB);}
else if( s == "ErrBreak"){addWord(0x44BF);}
else if( s == "ErrCustom1"){addWord(0x4D41);}
else if( s == "ErrCustom2"){addWord(0x4D44);}
else if( s == "ErrD_OP1_0"){addWord(0x42D3);}
else if( s == "ErrD_OP1_LE_0"){addWord(0x42D0);}
else if( s == "ErrD_OP1Not_R"){addWord(0x42CA);}
else if( s == "ErrD_OP1NotPos"){addWord(0x42C7);}
else if( s == "ErrD_OP1NotPosInt"){addWord(0x42CD);}
else if( s == "ErrDataType"){addWord(0x44AA);}
else if( s == "ErrDimension"){addWord(0x44B3);}
else if( s == "ErrDimMismatch"){addWord(0x44B0);}
else if( s == "ErrDivBy0"){addWord(0x4498);}
else if( s == "ErrDomain"){addWord(0x449E);}
else if( s == "ErrIncrement"){addWord(0x44A1);}
else if( s == "ErrInvalid"){addWord(0x44BC);}
else if( s == "ErrIterations"){addWord(0x44C8);}
else if( s == "ErrLinkXmit"){addWord(0x44D4);}
else if( s == "ErrMemory"){addWord(0x44B9);}
else if( s == "ErrNon_Real"){addWord(0x44A4);}
else if( s == "ErrNonReal"){addWord(0x4A8C);}
else if( s == "ErrNotEnoughMem"){addWord(0x448C);}
else if( s == "ErrOverflow"){addWord(0x4495);}
else if( s == "ErrSignChange"){addWord(0x44C5);}
else if( s == "ErrSingularMat"){addWord(0x449B);}
else if( s == "ErrStat"){addWord(0x44C2);}
else if( s == "ErrStatPlot"){addWord(0x44D1);}
else if( s == "ErrSyntax"){addWord(0x44A7);}
else if( s == "ErrTolTooSmall"){addWord(0x44CE);}
else if( s == "ErrUndefined"){addWord(0x44B6);}
else if( s == "EToX"){addWord(0x40B4);}
else if( s == "Exch9"){addWord(0x43D5);}
else if( s == "ExecuteApp"){addWord(0x4C51);}
else if( s == "ExecuteNewPrgm"){addWord(0x4C3C);}
else if( s == "ExecutePrgm"){addWord(0x4E7C);}
else if( s == "ExLp"){addWord(0x4222);}
else if( s == "ExpToHex"){addWord(0x424F);}
else if( s == "Factorial"){addWord(0x4B85);}
else if( s == "FillBasePageTable"){addWord(0x5011);}
else if( s == "FillBasePageTab"){addWord(0x5011);}
else if( s == "FillRect"){addWord(0x4D62);}
else if( s == "FillRectPattern"){addWord(0x4D89);}
else if( s == "Find_Parse_Formula"){addWord(0x4AF2);}
else if( s == "FindAlphaDn"){addWord(0x4A47);}
else if( s == "FindAlphaUp"){addWord(0x4A44);}
else if( s == "FindApp"){addWord(0x4C4E);}
else if( s == "FindAppDn"){addWord(0x4C4B);}
else if( s == "FindAppNumPages"){addWord(0x509B);}
else if( s == "FindAppUp"){addWord(0x4C48);}
else if( s == "FindOSHeaderSubField"){addWord(0x8075);}
else if( s == "FindSubField"){addWord(0x805D);}
else if( s == "FindSwapSector EQU 5095h"){addWord(0x5095);}
// else if( s == "FindSym"){addWord(0x42F4);} // should be rst 0x10h
else if( s == "FindSym"){subtractByte();addByte(0xD7);} // should be rst 0x10h
else if( s == "FiveExec"){addWord(0x467E);}
else if( s == "FixTempCnt"){addWord(0x4A3B);}
else if( s == "FlashToRam"){addWord(0x5017);}
else if( s == "FlashToRam2"){addWord(0x8054);}
else if( s == "FlashWriteDisable"){addWord(0x4F3C);}
else if( s == "ForceCmd"){addWord(0x4C90);}
else if( s == "ForceFullScreen"){addWord(0x508F);}
else if( s == "FormBase"){addWord(0x50AA);}
else if( s == "FormDCplx"){addWord(0x4996);}
else if( s == "FormEReal"){addWord(0x4990);}
else if( s == "FormReal"){addWord(0x4999);}
else if( s == "FourExec"){addWord(0x467B);}
//else if( s == "FPAdd"){addWord(0x4072);} // this should be rst(0x30h)
else if( s == "FPAdd"){subtractByte();addByte(0xF7);} // this should be rst(0x30h)
else if( s == "FPDiv"){addWord(0x4099);}
else if( s == "FPMult"){addWord(0x4084);}
else if( s == "FPRecip"){addWord(0x4096);}
else if( s == "FPSquare"){addWord(0x4081);}
else if( s == "FPSub"){addWord(0x406F);}
else if( s == "Frac"){addWord(0x4093);}
else if( s == "Get_Tok_Strng"){addWord(0x4594);}
else if( s == "Get3Bytes"){addWord(0x4EF7);}
else if( s == "Get4Bytes"){addWord(0x4EF4);}
else if( s == "Get4BytesCursor"){addWord(0x4F18);}
else if( s == "Get4BytesNC"){addWord(0x4F1B);}
else if( s == "GetBaseVer"){addWord(0x4C6F);}
else if( s == "GetBootVer"){addWord(0x80B7);}
else if( s == "GetBytePaged"){addWord(0x4F54);}
else if( s == "GetCalcSerial"){addWord(0x807E);}
else if( s == "GetCertificateStart"){addWord(0x8057);}
else if( s == "GetCSC"){addWord(0x4018);}
else if( s == "GetDataPacket"){addWord(0x4EEE);}
else if( s == "GetFieldSize"){addWord(0x805A);}
else if( s == "GetKey"){addWord(0x4972);}
else if( s == "GetKeyRetOff"){addWord(0x500B);}
else if( s == "GetLToOP1"){addWord(0x4636);}
else if( s == "GetMToOP1"){addWord(0x4615);}
else if( s == "GetPrevTok"){addWord(0x496F);}
else if( s == "GetRestrictionOptions"){addWord(0x531D);}
else if( s == "GetSmallPacket"){addWord(0x4EEB);}
else if( s == "GetSysInfo "){addWord(0x50DD);}
else if( s == "GetTime"){addWord(0x515B);}
else if( s == "GetTokLen"){addWord(0x4591);}
else if( s == "GoToErr"){addWord(0x4CD8);}
else if( s == "GoToLastRow"){addWord(0x5233);}
else if( s == "GrBufClr"){addWord(0x4BD0);}
else if( s == "GrBufCpy"){addWord(0x486A);}
else if( s == "GrBufCpyCustom"){addWord(0x52C9);}
else if( s == "GrphCirc"){addWord(0x47D7);}
else if( s == "HLMinus5"){addWord(0x509E);}
else if( s == "HLTimes9"){addWord(0x40F9);}
else if( s == "HomeUp"){addWord(0x4558);}
else if( s == "HorizCmd"){addWord(0x48A6);}
else if( s == "HorizontalLine"){addWord(0x4E67);}
else if( s == "HTimesL"){addWord(0x4276);}
else if( s == "IsA2ByteTok"){addWord(0x42A3);}
else if( s == "IBounds"){addWord(0x4C60);}
else if( s == "IBoundsFull"){addWord(0x4D98);}
else if( s == "ILine"){addWord(0x47E0);}
else if( s == "IncFetch"){addWord(0x4B73);}
else if( s == "IncLstSize"){addWord(0x4A29);}
else if( s == "InsDisp"){addWord(0x494E);}
else if( s == "InsertList"){addWord(0x4A2C);}
else if( s == "InsertMem"){addWord(0x42F7);}
else if( s == "Int"){addWord(0x40A5);}
else if( s == "Intgr"){addWord(0x405D);}
else if( s == "InvCmd"){addWord(0x48C7);}
else if( s == "InvertRect"){addWord(0x4D5F);}
else if( s == "InvOP1S"){addWord(0x408D);}
else if( s == "InvOP1SC"){addWord(0x408A);}
else if( s == "InvOP2S"){addWord(0x4090);}
else if( s == "InvSub"){addWord(0x4063);}
else if( s == "IOffset"){addWord(0x4C63);}
else if( s == "IPoint"){addWord(0x47E3);}
else if( s == "IsAtBtm"){addWord(0x4933);}
else if( s == "IsAtTop"){addWord(0x4930);}
else if( s == "IsEditEmpty"){addWord(0x492D);}
else if( s == "JError"){addWord(0x44D7);}
else if( s == "JErrorNo"){addWord(0x4000);}
else if( s == "JForceCmd"){addWord(0x402A);}
else if( s == "JForceCmdNoChar"){addWord(0x4027);}
else if( s == "JForceGraphKey"){addWord(0x5005);}
else if( s == "JForceGraphNoKey"){addWord(0x5002);}
else if( s == "JForceGroup"){addWord(0x5131);}
else if( s == "kdbScan"){addWord(0x4015);}
else if( s == "KeyToString"){addWord(0x45CA);}
else if( s == "KillUSB"){addWord(0x810E);}
else if( s == "LCD_BUSY"){addWord(0x4051);}
else if( s == "LCD_DRIVERON"){addWord(0x4978);}
else if( s == "LdHLind"){addWord(0x4009);}
else if( s == "LineCmd"){addWord(0x48AC);}
else if( s == "LnX"){addWord(0x40AB);}
else if( s == "Load_SFont"){addWord(0x4783);}
else if( s == "LoadA5"){addWord(0x5242);}
else if( s == "LoadAIndPaged"){addWord(0x8051);}
else if( s == "LoadCIndPaged"){addWord(0x501D);}
else if( s == "LoadDEIndPaged"){addWord(0x501A);}
else if( s == "LoadPattern"){addWord(0x4CB1);}
else if( s == "LogX"){addWord(0x40AE);}
else if( s == "LowBatteryBoot"){addWord(0x80D2);}
else if( s == "MarkOSValid"){addWord(0x8099);}
else if( s == "Max"){addWord(0x4057);}
else if( s == "MemChk"){addWord(0x42E5);}
else if( s == "MemClear"){addWord(0x4C30);}
else if( s == "MemSet"){addWord(0x4C33);}
else if( s == "Min"){addWord(0x4054);}
else if( s == "Minus1"){addWord(0x406C);}
else if( s == "Mon"){addWord(0x401E);}
else if( s == "MonForceKey"){addWord(0x4021);}
else if( s == "MonReset"){addWord(0x4C54);}
else if( s == "Mov10B"){addWord(0x415C);}
else if( s == "Mov18B"){addWord(0x47DA);}
else if( s == "Mov7B"){addWord(0x4168);}
else if( s == "Mov8B"){addWord(0x4165);}
else if( s == "Mov9B"){addWord(0x415F);}
else if( s == "Mov9OP1OP2"){addWord(0x417D);}
else if( s == "Mov9OP2Cp"){addWord(0x410B);}
else if( s == "Mov9ToOP1")// rst(0x20h)
{
subtractByte();
addByte( 0xE7 );
//addWord(0x417A);
}
else if( s == "Mov9ToOP2"){addWord(0x4180);}
else if( s == "MovFrOP1"){addWord(0x4183);} // Why Error?
else if( s == "MultAbyDE"){addWord(0x8045);}
else if( s == "MultAbyE"){addWord(0x8042);}
else if( s == "NewContext"){addWord(0x4030);}
else if( s == "NewContext0"){addWord(0x4033);}
else if( s == "NewLine"){addWord(0x452E);}
else if( s == "NZIf83Plus"){addWord(0x50E0);}
else if( s == "OffPageJump"){addWord(0x44F2);}
else if( s == "OneVar"){addWord(0x4BA3);}
else if( s == "OP1ExOP2"){addWord(0x421F);}
else if( s == "OP1ExOP3"){addWord(0x4219);}
else if( s == "OP1ExOP4"){addWord(0x421C);}
else if( s == "OP1ExOP5"){addWord(0x420D);}
else if( s == "OP1ExOP6"){addWord(0x4210);}
else if( s == "OP1ExpToDec"){addWord(0x4252);}
else if( s == "OP1Set0"){addWord(0x41BF);}
else if( s == "OP1Set1"){addWord(0x419B);}
else if( s == "OP1Set2"){addWord(0x41A7);}
else if( s == "OP1Set3"){addWord(0x41A1);}
else if( s == "OP1Set4"){addWord(0x419E);}
//else if( s == "OP1ToOP2"){addWord(0x412F);} // rst 0x08h subtractByte();
else if( s == "OP1ToOP2"){subtractByte();addByte(0xCF);} // rst 0x08h subtractByte();
else if( s == "OP1ToOP3"){addWord(0x4123);}
else if( s == "OP1ToOP4"){addWord(0x4117);}
else if( s == "OP1ToOP5"){addWord(0x4153);}
else if( s == "OP1ToOP6"){addWord(0x4150);}
else if( s == "OP2ExOP4"){addWord(0x4213);}
else if( s == "OP2ExOP5"){addWord(0x4216);}
else if( s == "OP2ExOP6"){addWord(0x4207);}
else if( s == "OP2Set0"){addWord(0x41BC);}
else if( s == "OP2Set1"){addWord(0x41AD);}
else if( s == "OP2Set2"){addWord(0x41AA);}
else if( s == "OP2Set3"){addWord(0x4198);}
else if( s == "OP2Set4"){addWord(0x4195);}
else if( s == "OP2Set5"){addWord(0x418F);}
else if( s == "OP2Set60"){addWord(0x4AB0);}
else if( s == "OP2Set8"){addWord(0x418C);}
else if( s == "OP2SetA"){addWord(0x4192);}
else if( s == "OP2ToOP1"){addWord(0x4156);}
else if( s == "OP2ToOP3"){addWord(0x416E);}
else if( s == "OP2ToOP4"){addWord(0x411A);}
else if( s == "OP2ToOP5"){addWord(0x414A);}
else if( s == "OP2ToOP6"){addWord(0x414D);}
else if( s == "OP3Set0"){addWord(0x41B9);}
else if( s == "OP3Set1"){addWord(0x4189);}
else if( s == "OP3Set2"){addWord(0x41A4);}
else if( s == "OP3ToOP1"){addWord(0x413E);}
else if( s == "OP3ToOP2"){addWord(0x4120);}
else if( s == "OP3ToOP4"){addWord(0x4114);}
else if( s == "OP3ToOP5"){addWord(0x4147);}
else if( s == "OP4Set0"){addWord(0x41B6);}
else if( s == "OP4Set1"){addWord(0x4186);}
else if( s == "OP4ToOP1"){addWord(0x4138);}
else if( s == "OP4ToOP2"){addWord(0x411D);}
else if( s == "OP4ToOP3"){addWord(0x4171);}
else if( s == "OP4ToOP5"){addWord(0x4144);}
else if( s == "OP4ToOP6"){addWord(0x4177);}
else if( s == "OP5ExOP6"){addWord(0x420A);}
else if( s == "OP5Set0"){addWord(0x41B3);}
else if( s == "OP5ToOP1"){addWord(0x413B);}
else if( s == "OP5ToOP2"){addWord(0x4126);}
else if( s == "OP5ToOP3"){addWord(0x4174);}
else if( s == "OP5ToOP4"){addWord(0x412C);}
else if( s == "OP5ToOP6"){addWord(0x4129);}
else if( s == "OP6ToOP1"){addWord(0x4135);}
else if( s == "OP6ToOP2"){addWord(0x4132);}
else if( s == "OP6ToOP5"){addWord(0x4141);}
else if( s == "OutputExpr"){addWord(0x4BB2);}
else if( s == "PagedGet"){addWord(0x5023);}
else if( s == "ParseInp"){addWord(0x4A9B);}
else if( s == "PDspGrph"){addWord(0x48A3);}
else if( s == "PixelTest"){addWord(0x48B5);}
else if( s == "Plus1"){addWord(0x4069);}
else if( s == "PointCmd"){addWord(0x48B2);}
else if( s == "PointOn"){addWord(0x4C39);}
else if( s == "PopMCplxO1"){addWord(0x436F);}
else if( s == "PopOP1"){addWord(0x437E);}
else if( s == "PopOP3"){addWord(0x437B);}
else if( s == "PopOP5"){addWord(0x4378);}
else if( s == "PopReal"){addWord(0x4393);}
else if( s == "PopRealO1"){addWord(0x4390);}
else if( s == "PopRealO2"){addWord(0x438D);}
else if( s == "PopRealO3"){addWord(0x438A);}
else if( s == "PopRealO4"){addWord(0x4387);}
else if( s == "PopRealO5"){addWord(0x4384);}
else if( s == "PopRealO6"){addWord(0x4381);}
else if( s == "PosNo0Int"){addWord(0x422E);}
else if( s == "PowerOff"){addWord(0x5008);}
else if( s == "ProcessBufKeys"){addWord(0x4756);}
else if( s == "PToR"){addWord(0x40F3);}
else if( s == "PullDownChk"){addWord(0x45CD);}
else if( s == "PushMCplxO1"){addWord(0x43CF);}
else if( s == "PushMCplxO3"){addWord(0x43C6);}
else if( s == "PushOP1"){addWord(0x43C9);}
else if( s == "PushOP3"){addWord(0x43C3);}
else if( s == "PushOP5"){addWord(0x43C0);}
else if( s == "PushReal"){addWord(0x43BD);}
//else if( s == "PushRealO1"){addWord(0x43BA);}// rst 0x18h
else if( s == "PushRealO1"){subtractByte();addByte(0xDF);}// rst 0x18h
else if( s == "PushRealO2"){addWord(0x43B7);}
else if( s == "PushRealO3"){addWord(0x43B4);}
else if( s == "PushRealO4"){addWord(0x43B1);}
else if( s == "PushRealO5"){addWord(0x43AE);}
else if( s == "PushRealO6"){addWord(0x43AB);}
else if( s == "PutAway"){addWord(0x403c);}
else if( s == "PutBuf"){addWord(0x4516);}
else if( s == "PutC"){addWord(0x4504);}
else if( s == "PutMap"){addWord(0x4501);}
else if( s == "PutPS"){addWord(0x4510);}