-
Notifications
You must be signed in to change notification settings - Fork 1
/
forth.s
1572 lines (1568 loc) · 70.7 KB
/
forth.s
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
; memory-size: 65536 bytes, (10000 hex)
; data-stack: fe00, grows up
; return-stack: fffc, grows down
func_EQ: ; Implementation of EQ
m_pop ebx
m_getTOS eax
cmp eax, ebx
jz EQ_true
m_setTOS 0
ret
EQ_true: m_setTOS 1
ret
func_LT: ; Implementation of LT
m_pop ebx
m_getTOS eax
cmp eax, ebx
jl LT_true
m_setTOS 0
ret
LT_true: m_setTOS 1
ret
func_GT: ; Implementation of GT
m_pop ebx
m_getTOS eax
cmp eax, ebx
jg GT_true
m_setTOS 0
ret
GT_true: m_setTOS 1
ret
L00000040: ; WORD (HERE) (FDEB)
m_push HERE_ADDR ; CLITERAL 16
ret
L00000048: ; WORD (LAST) (FDDA)
m_push LAST_ADDR ; CLITERAL 20
ret
fw_CELL: ; WORD CELL (FDCB)
m_push 4 ; CLITERAL 4
ret
fw_BASE: ; WORD BASE (FDBC)
m_push BASE_ADDR ; CLITERAL 6
ret
fw_STATE: ; WORD STATE (FDAC)
m_push STATE_ADDR ; CLITERAL 32
ret
L00000068: ; WORD C, (FD9F)
m_push 16 ; CLITERAL 16
call func_FETCH
call func_CSTORE
m_push 16 ; CLITERAL 16
call func_FETCH
m_push 1 ; CLITERAL 1
call func_ADD
m_push 16 ; CLITERAL 16
call func_STORE
ret
L0000007B: ; WORD , (FD93)
m_push 16 ; CLITERAL 16
call func_FETCH
call func_STORE
m_push 16 ; CLITERAL 16
call func_FETCH
m_push 4 ; CLITERAL 4
call func_ADD
m_push 16 ; CLITERAL 16
call func_STORE
ret
L0000008E: ; WORD [ (FD87)
m_push 0 ; CLITERAL 0
m_push 32 ; CLITERAL 32
call func_STORE
ret
L00000099: ; WORD ] (FD7B)
m_push 1 ; CLITERAL 1
m_push 32 ; CLITERAL 32
call func_STORE
ret
fw_LITERAL: ; WORD LITERAL (FD69)
m_push 1 ; CLITERAL 1
call L00000068
ret
L000000B1: ; WORD @ (FD5D)
call func_FETCH
ret
L000000B8: ; WORD ! (FD51)
call func_STORE
ret
fw_SWAP: ; WORD SWAP (FD42)
call func_SWAP
ret
fw_DROP: ; WORD DROP (FD33)
sub ebp, 4 ; DROP
ret
fw_DUP: ; WORD DUP (FD25)
call func_DUP
ret
fw_SLITERAL: ; WORD SLITERAL (FD12)
m_push 7 ; CLITERAL 7
call L00000068
ret
fw_JMP: ; WORD JMP (FD04)
m_push 8 ; CLITERAL 8
call L00000068
ret
fw_JMPZ: ; WORD JMPZ (FCF5)
m_push 9 ; CLITERAL 9
call L00000068
ret
fw_JMPNZ: ; WORD JMPNZ (FCE5)
m_push 10 ; CLITERAL 10
call L00000068
ret
fw_CALL: ; WORD CALL (FCD6)
m_push 11 ; CLITERAL 11
call L00000068
ret
fw_RET: ; WORD RET (FCC8)
m_push 12 ; CLITERAL 12
call L00000068
ret
fw_OR: ; WORD OR (FCBB)
; OR (TODO)
ret
fw_CLITERAL: ; WORD CLITERAL (FCA8)
m_push 14 ; CLITERAL 14
call L00000068
ret
L00000136: ; WORD C@ (FC9B)
call func_CFETCH
ret
L0000013D: ; WORD C! (FC8E)
call func_CSTORE
ret
L00000144: ; WORD + (FC82)
call func_ADD
ret
L0000014B: ; WORD - (FC76)
call func_SUB
ret
L00000152: ; WORD * (FC6A)
call func_MUL
ret
L00000159: ; WORD / (FC5E)
call func_DIV
ret
L00000160: ; WORD < (FC52)
call func_LT ; LT
ret
L00000167: ; WORD = (FC46)
call func_EQ ; EQ
ret
L0000016E: ; WORD > (FC3A)
call func_GT ; GT
ret
fw_DICTP: ; WORD DICTP (FC2A)
m_push 24 ; CLITERAL 24
call L00000068
ret
fw_EMIT: ; WORD EMIT (FC1B)
call func_EMIT ; EMIT
ret
fw_OVER: ; WORD OVER (FC0C)
call func_OVER
ret
fw_COMPARE: ; WORD COMPARE (FBFA)
mov eax, 0 ; COMPARE
call func_COMPARE
ret
fw_FOPEN: ; WORD FOPEN (FBEA)
; FOPEN (TODO)
ret
fw_FREAD: ; WORD FREAD (FBDA)
; FREAD (TODO)
ret
fw_FREADLINE: ; WORD FREADLINE (FBC6)
; FREADLINE (TODO)
ret
fw_FWRITE: ; WORD FWRITE (FBB5)
; FWRITE (TODO)
ret
fw_FCLOSE: ; WORD FCLOSE (FBA4)
; FCLOSE (TODO)
ret
L000001BA: ; WORD >R (FB97)
call func_DTOR ; DTOR
ret
L000001C1: ; WORD R> (FB8A)
call func_RTOD ; RTOD
ret
fw_LOGLEVEL: ; WORD LOGLEVEL (FB77)
; LOGLEVEL
ret
fw_AND: ; WORD AND (FB69)
; AND (TODO)
ret
fw_PICK: ; WORD PICK (FB5A)
; PICK
ret
fw_DEPTH: ; WORD DEPTH (FB4A)
; DEPTH (TODO)
ret
fw_GETCH: ; WORD GETCH (FB3A)
; GETCH (TODO)
ret
fw_COMPAREI: ; WORD COMPAREI (FB27)
mov eax, 1 ; COMPAREI
call func_COMPARE
ret
fw_USINIT: ; WORD USINIT (FB16)
; USINIT (TODO)
ret
fw_USPUSH: ; WORD USPUSH (FB05)
; USPUSH (TODO)
ret
fw_USPOP: ; WORD USPOP (FAF5)
; USPOP (TODO)
ret
fw_BREAK: ; WORD BREAK (FAE5)
; BREAK (TODO)
ret
fw_RESET: ; WORD RESET (FAD5)
; RESET (TODO)
ret
fw_BYE: ; WORD BYE (FAC7)
; BYE (TODO)
ret
L0000021C: ; WORD R@ (FABA)
call L000001C1
call fw_DUP
call L000001BA
ret
fw_INLINE: ; WORD INLINE (FAA9)
m_push 0 ; CLITERAL 0
call fw_DROP
ret
fw_IMMEDIATE: ; WORD IMMEDIATE (FA95)
m_push 20 ; CLITERAL 20
call L000000B1
m_push 2 ; CLITERAL 2
m_push 4 ; CLITERAL 4
call L00000152
call L00000144
call fw_DUP
call L00000136
m_push 1 ; CLITERAL 1
call fw_OR
call fw_SWAP
call L0000013D
ret
fw_CELLS: ; WORD CELLS (FA85)
m_push 4 ; CLITERAL 4
call L00000152
ret
fw_LAST: ; WORD LAST (FA76)
call L00000048 ; CLITERAL 20
call L000000B1
ret
fw_HERE: ; WORD HERE (FA67)
call L00000040 ; CLITERAL 16
call L000000B1
ret
L0000029B: ; WORD ?COMPILING (FA52)
m_push 32 ; CLITERAL 32
call L000000B1
ret
fw_IF: ; WORD IF (FA45)
call L0000029B
m_pop eax ; JMPZ
cmp eax, 0
jz L000002C8
call fw_JMPZ
call fw_HERE
m_push 0 ; CLITERAL 0
call L0000007B
L000002C8: ret
fw_ELSE: ; WORD ELSE (FA36)
call L0000029B
m_pop eax ; JMPZ
cmp eax, 0
jz L000002FD
call fw_JMP
call fw_HERE
call fw_SWAP
m_push 0 ; CLITERAL 0
call L0000007B
call fw_HERE
call fw_SWAP
call L000000B8
L000002FD: ret
fw_THEN: ; WORD THEN (FA27)
call L0000029B
m_pop eax ; JMPZ
cmp eax, 0
jz L0000031C
call fw_HERE
call fw_SWAP
call L000000B8
L0000031C: ret
fw_BEGIN: ; WORD BEGIN (FA17)
call L0000029B
m_pop eax ; JMPZ
cmp eax, 0
jz L00000331
call fw_HERE
L00000331: ret
fw_AGAIN: ; WORD AGAIN (FA07)
call L0000029B
m_pop eax ; JMPZ
cmp eax, 0
jz L0000034B
call fw_JMP
call L0000007B
L0000034B: ret
fw_WHILE: ; WORD WHILE (F9F7)
call L0000029B
m_pop eax ; JMPZ
cmp eax, 0
jz L00000365
call fw_JMPNZ
call L0000007B
L00000365: ret
fw_UNTIL: ; WORD UNTIL (F9E7)
call L0000029B
m_pop eax ; JMPZ
cmp eax, 0
jz L0000037F
call fw_JMPZ
call L0000007B
L0000037F: ret
fw_LEAVE: ; WORD LEAVE (F9D7)
call L0000029B
m_pop eax ; JMPZ
cmp eax, 0
jz L00000394
call fw_RET
L00000394: ret
fw_COUNT: ; WORD COUNT (F9C7)
call fw_DUP
m_push 1 ; CLITERAL 1
call L00000144
call fw_SWAP
call L00000136
ret
fw_TYPE: ; WORD TYPE (F9B8)
call fw_OVER
call L00000144
m_push 1 ; CLITERAL 1
call L0000014B
call fw_SWAP
L000003CC: call fw_OVER
call fw_OVER
call L00000160
m_pop eax ; JMPZ
cmp eax, 0
jz L000003EB
call fw_DROP
call fw_DROP
ret
L000003EB: call fw_DUP
call L00000136
call fw_EMIT
m_push 1 ; CLITERAL 1
call L00000144
jmp L000003CC ; JMP
ret
fw_CR: ; WORD CR (F9AB)
m_push 13 ; CLITERAL 13
call fw_EMIT
m_push 10 ; CLITERAL 10
call fw_EMIT
ret
L0000041B: ; WORD INPUT-FP (F998)
m_push 1062 ; LITERAL 1062
ret
; .byte 0x00, '~'
; .byte 0x00, '~'
; .byte 0x00, '~'
; .byte 0x00, '~'
ret
fw_PAD: ; WORD PAD (F98A)
call fw_LAST
m_push 256 ; LITERAL 256
call L0000014B
ret
L00000440: ; WORD string-nullterm (F970)
m_push 0 ; CLITERAL 0
call fw_SWAP
call fw_DUP
call L00000136
call L00000144
m_push 1 ; CLITERAL 1
call L00000144
call L0000013D
ret
L00000468: ; WORD string-catc (F95A)
call fw_SWAP
call fw_OVER
call fw_DUP
call L00000136
call L00000144
m_push 1 ; CLITERAL 1
call L00000144
call L0000013D
call fw_DUP
call L00000136
m_push 1 ; CLITERAL 1
call L00000144
call fw_SWAP
call L0000013D
ret
L000004AE: ; WORD string-copy (F944)
call L000001BA
call fw_DUP
call L00000136
call fw_OVER
call L00000144
m_push 1 ; CLITERAL 1
call L00000144
call fw_SWAP
L000004D8: call fw_OVER
call fw_OVER
call L00000167
m_pop eax ; JMPZ
cmp eax, 0
jz L00000506
call fw_DROP
call fw_DROP
call L000001C1
call fw_DROP
ret
jmp L00000532 ; JMP
L00000506: call fw_DUP
call L00000136
call L0000021C
call L0000013D
call L000001C1
m_push 1 ; CLITERAL 1
call L00000144
call L000001BA
m_push 1 ; CLITERAL 1
call L00000144
L00000532: jmp L000004D8 ; JMP
ret
L00000538: ; WORD string-popc (F92E)
call fw_DUP
call L00000136
m_pop eax ; JMPZ
cmp eax, 0
jz L00000587
call fw_DUP
call L00000136
m_push 1 ; CLITERAL 1
call L0000014B
call fw_OVER
call L0000013D
call fw_DUP
call L00000136
call L00000144
m_push 1 ; CLITERAL 1
call L00000144
call L00000136
jmp L0000058E ; JMP
L00000587: call fw_DROP
m_push 0 ; CLITERAL 0
L0000058E: ret
fw_BETWEEN: ; WORD BETWEEN (F91C)
m_push 2 ; CLITERAL 2
call fw_PICK
call L00000160
m_pop eax ; JMPZ
cmp eax, 0
jz L000005B2
call fw_DROP
call fw_DROP
m_push 0 ; CLITERAL 0
ret
L000005B2: call L00000160
m_push 0 ; CLITERAL 0
call L00000167
ret
L000005BF: ; WORD stdin-getline (F904)
call fw_PAD
m_push 0 ; CLITERAL 0
call fw_OVER
call L000000B8
call L000001BA
L000005DA: call fw_GETCH
call fw_DUP
m_push 3 ; CLITERAL 3
call L00000167
m_pop eax ; JMPZ
cmp eax, 0
jz L0000060A
; SLITERAL (05fb)
call fw_COUNT
call fw_TYPE
call fw_BYE
L0000060A: call fw_DUP
m_push 13 ; CLITERAL 13
call L00000167
m_pop eax ; JMPZ
cmp eax, 0
jz L0000062D
call fw_DROP
call L000001C1
m_push 32 ; CLITERAL 32
call fw_EMIT
ret
L0000062D: call fw_DUP
m_push 9 ; CLITERAL 9
call L00000167
m_pop eax ; JMPZ
cmp eax, 0
jz L00000645
call fw_DROP
m_push 32 ; CLITERAL 32
L00000645: call fw_DUP
m_push 8 ; CLITERAL 8
call L00000167
m_pop eax ; JMPZ
cmp eax, 0
jz L00000680
call L0000021C
call L00000538
call fw_DROP
call fw_DUP
call fw_EMIT
m_push 32 ; CLITERAL 32
call fw_EMIT
call fw_EMIT
jmp L000006B1 ; JMP
L00000680: call fw_DUP
m_push 32 ; CLITERAL 32
m_push 127 ; CLITERAL 127
call fw_BETWEEN
m_pop eax ; JMPZ
cmp eax, 0
jz L000006AC
call fw_DUP
call fw_EMIT
call L0000021C
call L00000468
jmp L000006B1 ; JMP
L000006AC: call fw_DROP
L000006B1: jmp L000005DA ; JMP
ret
L000006B7: ; WORD file-getLine (F8ED)
call fw_PAD
m_push 200 ; CLITERAL 200
call L0000041B
call L000000B1
call fw_FREADLINE
m_push 0 ; CLITERAL 0
call L00000167
m_pop eax ; JMPZ
cmp eax, 0
jz L000006FE
call L0000041B
call L000000B1
call fw_FCLOSE
m_push 0 ; CLITERAL 0
call L0000041B
call L000000B8
jmp L00000714 ; JMP
L000006FE: m_push 46 ; CLITERAL 46
call fw_EMIT
call fw_PAD
call fw_COUNT
call fw_TYPE
L00000714: call fw_PAD
ret
L0000071A: ; WORD get-line (F8DA)
call L0000041B
call L000000B1
m_pop eax ; JMPZ
cmp eax, 0
jz L00000738
call L000006B7
jmp L0000073D ; JMP
L00000738: call L000005BF
L0000073D: ret
L0000073E: ; WORD skip-ws (F8C8)
L00000743: call fw_DUP
call L00000136
m_push 1 ; CLITERAL 1
m_push 32 ; CLITERAL 32
call fw_BETWEEN
m_pop eax ; JMPZ
cmp eax, 0
jz L00000767
m_push 1 ; CLITERAL 1
call L00000144
jmp L00000768 ; JMP
L00000767: ret
L00000768: jmp L00000743 ; JMP
ret
L0000076E: ; WORD get-word (F8B5)
call fw_HERE
m_push 256 ; LITERAL 256
call L00000144
call fw_DUP
call L000001BA
m_push 0 ; CLITERAL 0
call fw_SWAP
call L000000B8
L00000798: call fw_DUP
call L00000136
call fw_DUP
m_push 33 ; CLITERAL 33
call L00000160
m_pop eax ; JMPZ
cmp eax, 0
jz L000007D2
call fw_DROP
call L0000021C
call L00000440
call L000001C1
call fw_SWAP
ret
jmp L000007E3 ; JMP
L000007D2: call L0000021C
call L00000468
m_push 1 ; CLITERAL 1
call L00000144
L000007E3: jmp L00000798 ; JMP
ret
L000007E9: ; WORD DICT>NEXT (F8A1)
ret
L000007EF: ; WORD DICT>XT (F88F)
m_push 4 ; CLITERAL 4
call L00000144
ret
L000007FC: ; WORD DICT>FLAGS (F87A)
m_push 2 ; CLITERAL 2
call fw_CELLS
call L00000144
ret
L0000080E: ; WORD DICT>NAME (F866)
call L000007FC
m_push 1 ; CLITERAL 1
call L00000144
ret
fw_FLAG_IMMEDIATE: ; WORD FLAG_IMMEDIATE (F84D)
m_push 1 ; CLITERAL 1
ret
fw_FLAG_INLINE: ; WORD FLAG_INLINE (F837)
m_push 2 ; CLITERAL 2
ret
L00000830: ; WORD find-word (F823)
call fw_DUP
call L00000440
call fw_LAST
call L000001BA
L00000849: call L0000021C
call fw_DUP
m_pop eax ; JMPZ
cmp eax, 0
jz L0000087E
call L0000080E
call fw_OVER
call fw_COMPAREI
m_pop eax ; JMPZ
cmp eax, 0
jz L00000879
call fw_DROP
call L000001C1
m_push 1 ; CLITERAL 1
ret
L00000879: jmp L00000895 ; JMP
L0000087E: call fw_DROP
call fw_DROP
call L000001C1
call fw_DROP
m_push 0 ; CLITERAL 0
ret
L00000895: call L000001C1
call L000000B1
call L000001BA
jmp L00000849 ; JMP
ret
L000008AA: ; WORD define-word (F80D)
call fw_LAST
call fw_OVER
call L00000136
m_push 2 ; CLITERAL 2
call fw_CELLS
m_push 3 ; CLITERAL 3
call L00000144
call L00000144
call L0000014B
call fw_DUP
call L000001BA
call L000001BA
call fw_LAST
call L0000021C
call L000000B8
call L000001C1
m_push 4 ; CLITERAL 4
call L00000144
call L000001BA
call fw_HERE
call L0000021C
call L000000B8
call L000001C1
m_push 4 ; CLITERAL 4
call L00000144
call L000001BA
m_push 0 ; CLITERAL 0
call L0000021C
call L0000013D
call L000001C1
m_push 1 ; CLITERAL 1
call L00000144
call L000001BA
call L000001C1
call L000004AE
call L000001C1
m_push 20 ; CLITERAL 20
call L000000B8
ret
L00000959: ; WORD is-num-char? (F7F6)
call fw_DUP
m_push 48 ; CLITERAL 48
m_push 57 ; CLITERAL 57
call fw_BETWEEN
m_pop eax ; JMPZ
cmp eax, 0
jz L0000097B
m_push 48 ; CLITERAL 48
call L0000014B
m_push 1 ; CLITERAL 1
ret
L0000097B: m_push 6 ; CLITERAL 6
call L00000136
m_push 16 ; CLITERAL 16
call L00000167
m_pop eax ; JMPZ
cmp eax, 0
jz L000009C8
call fw_DUP
m_push 65 ; CLITERAL 65
m_push 70 ; CLITERAL 70
call fw_BETWEEN
m_pop eax ; JMPZ
cmp eax, 0
jz L000009AB
m_push 55 ; CLITERAL 55
call L0000014B
m_push 1 ; CLITERAL 1
ret
L000009AB: call fw_DUP
m_push 97 ; CLITERAL 97
m_push 102 ; CLITERAL 102
call fw_BETWEEN
m_pop eax ; JMPZ
cmp eax, 0
jz L000009C8
m_push 87 ; CLITERAL 87
call L0000014B
m_push 1 ; CLITERAL 1
ret
L000009C8: call fw_DROP
m_push 0 ; CLITERAL 0
ret
L000009D0: ; WORD is-number? (F7E1)
call fw_DUP
call L00000440
m_push 1 ; CLITERAL 1
call L00000144
call fw_DUP
call L00000136
m_push 45 ; CLITERAL 45
call L00000167
m_pop eax ; JMPZ
cmp eax, 0
jz L00000A0F
m_push 1 ; CLITERAL 1
call L000001BA
m_push 1 ; CLITERAL 1
call L00000144
jmp L00000A16 ; JMP
L00000A0F: m_push 0 ; CLITERAL 0
call L000001BA
L00000A16: call fw_DUP
call L00000136
m_push 0 ; CLITERAL 0
call L00000167
m_pop eax ; JMPZ
cmp eax, 0
jz L00000A3E
call fw_DROP
call L000001C1
call fw_DROP
m_push 0 ; CLITERAL 0
ret
L00000A3E: m_push 0 ; CLITERAL 0
call L000001BA
L00000A45: call fw_DUP
call L00000136
call fw_DUP
m_push 0 ; CLITERAL 0
call L00000167
m_pop eax ; JMPZ
cmp eax, 0
jz L00000A88
call fw_DROP
call fw_DROP
call L000001C1
call L000001C1
m_pop eax ; JMPZ
cmp eax, 0
jz L00000A85
m_push 0 ; CLITERAL 0
call fw_SWAP
call L0000014B
L00000A85: m_push 1 ; CLITERAL 1
ret
L00000A88: call L00000959
m_pop eax ; JMPZ
cmp eax, 0
jz L00000AB9
call L000001C1
m_push 6 ; CLITERAL 6
call L00000136
call L00000152
call L00000144
call L000001BA
m_push 1 ; CLITERAL 1
call L00000144
jmp L00000AD5 ; JMP
L00000AB9: call fw_DROP
call L000001C1
call fw_DROP
call L000001C1
call fw_DROP
m_push 0 ; CLITERAL 0
ret
L00000AD5: jmp L00000A45 ; JMP
ret
L00000ADB: ; WORD >IN (F7D3)
m_push 2790 ; LITERAL 2790
ret
; .byte 0x00, '~'
; .byte 0x00, '~'
; .byte 0x00, '~'
; .byte 0x00, '~'
ret
L00000AEB: ; WORD CREATE-NAME (F7BD)
call L00000ADB
call L000000B1
call L0000073E
call L00000ADB
call L000000B8
call L00000ADB
call L000000B1
call L00000136
m_push 0 ; CLITERAL 0
call L00000167
m_pop eax ; JMPZ
cmp eax, 0
jz L00000B25
ret
L00000B25: call L00000ADB
call L000000B1
call L0000076E
call L00000ADB
call L000000B8
call L000008AA
call fw_DICTP
call fw_LAST
call L0000007B
ret
L00000B53: ; WORD : (F7B1)
call L00000AEB
m_push 1 ; CLITERAL 1
m_push 32 ; CLITERAL 32
call L000000B8
ret
L00000B67: ; WORD ; (F7A5)
call fw_RET
m_push 0 ; CLITERAL 0
m_push 32 ; CLITERAL 32
call L000000B8
ret
L00000B7B: ; WORD execute-word (F78E)
call fw_DUP
call L000009D0
m_pop eax ; JMPZ
cmp eax, 0
jz L00000BCE
call fw_SWAP
call fw_DROP
call L0000029B
m_pop eax ; JMPZ
cmp eax, 0
jz L00000BCD
call fw_DUP
m_push 255 ; CLITERAL 255
call L0000016E
m_pop eax ; JMPZ
cmp eax, 0
jz L00000BC3
call fw_LITERAL
call L0000007B
jmp L00000BCD ; JMP
L00000BC3: call fw_CLITERAL
call L00000068
L00000BCD: ret
L00000BCE: call fw_DUP
call L00000830
m_pop eax ; JMPZ
cmp eax, 0
jz L00000C85
call fw_SWAP
call fw_DROP
call L0000029B
m_pop eax ; JMPZ
cmp eax, 0
jz L00000C74
call fw_DUP
call L000007FC
call L00000136
call fw_FLAG_IMMEDIATE
call L00000167
m_pop eax ; JMPZ
cmp eax, 0
jz L00000C24
call L000007EF
call L000000B1
call L000001BA
ret
jmp L00000C6F ; JMP
L00000C24: call fw_DUP
call L000007FC
call L00000136
call fw_FLAG_INLINE
call L00000167
m_pop eax ; JMPZ
cmp eax, 0
jz L00000C5B
call fw_CALL
call L000007EF
call L000000B1
call L0000007B
jmp L00000C6F ; JMP
L00000C5B: call fw_CALL
call L000007EF
call L000000B1
call L0000007B
L00000C6F: jmp L00000C84 ; JMP
L00000C74: call L000007EF
call L000000B1
call L000001BA
ret
L00000C84: ret
L00000C85: call fw_COUNT
call fw_TYPE
m_push 63 ; CLITERAL 63
call fw_DUP
call fw_EMIT
call fw_EMIT
call L0000041B
call L000000B1
m_pop eax ; JMPZ
cmp eax, 0
jz L00000CCA
call L0000041B
call L000000B1
call fw_FCLOSE
m_push 0 ; CLITERAL 0
call L0000041B
call L000000B8
L00000CCA: m_push 0 ; CLITERAL 0
m_push 32 ; CLITERAL 32
call L000000B8
ret
L00000CD4: ; WORD execute-line (F777)
L00000CD9: call L00000ADB
call L000000B1
call L0000073E
call L00000ADB
call L000000B8
call L00000ADB
call L000000B1
call L00000136
m_push 0 ; CLITERAL 0
call L00000167
m_pop eax ; JMPZ
cmp eax, 0
jz L00000D0E
ret
L00000D0E: call L00000ADB
call L000000B1
call L0000076E
call L00000ADB
call L000000B8
call L00000B7B