-
Notifications
You must be signed in to change notification settings - Fork 23
/
headers.asm
2597 lines (2111 loc) · 53.8 KB
/
headers.asm
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
; Dictionary Headers for Tali Forth 2
; Scot W. Stevenson <[email protected]>
; First version: 05. Dec 2016 (Liara Forth)
; This version: 29. Dec 2018
; Dictionary headers are kept separately from the code, which allows various
; tricks in the code. We roughly follow the Gforth terminology: The Execution
; Token (xt) is the address of the first byte of a word's code that can be, uh,
; executed; the Name Token (nt) is a pointer to the beginning of the word's
; header in the Dictionary. There the link to the next word in the Dictionary
; is always one cell down from the current word's own nt. In the code itself,
; we use "nt_<WORD>" for the nt and "xt_<WORD>" for the xt.
; This gives us the following header structure:
; 8 bit 8 bit
; LSB MSB
; nt_word -> +--------+--------+
; +0 | Length | Status |
; +--------+--------+
; +2 | Next Header | -> nt_next_word
; +-----------------+
; +4 | Start of Code | -> xt_word
; +-----------------+
; +6 | End of Code | -> z_word
; +--------+--------+
; +8 | Name | |
; +--------+--------+
; | | |
; +--------+--------+
; | | ... | (name string does not end with a zero)
; +n +--------+--------+
; The Status Byte is created by adding the flags defined in definitions.asm,
; which are:
; CO - Compile Only
; IM - Immediate Word
; NN - Never Native Compile (must always be called by JSR)
; AN - Always Native Compile (may not be called by JSR)
; UF - Contains underflow check
; HC - Has CFA (words created by CREATE and DOES> only)
; Note there are currently two bits unused.
; By default, all existing words can be natively compiled (compiled inline) or
; as a subroutine jump target; the system decides which variant to use based on
; a threshold the user can set. By default, all user-created words are flagged
; never-native. The user can override this by using the always-native word
; just after defining their new word. The NN flag forbids native compiling,
; the AN flag forces it.
; The last word (top word in code) is always BYE. It is marked as the last word
; by its value of 0000 in its Next Header field. The words are sorted with the
; more common ones first (further down in code) so they are found earlier.
; Anything to do with output comes later (further up) because things will
; always be slow if there is a human involved.
; The initial skeleton of this list was automatically generated by a script
; in the tools folder and then sorted by hand.
nt_bye:
.byte 3 ; length of word strings
.byte 0 ; status byte
.word 0000 ; next word in Dictionary, 0000 signals end
.word xt_bye ; start of code block (xt of this word)
.word z_bye ; end of code (RTS)
.byte "bye" ; word name, always lower case, not zero-terminated
nt_cold:
.byte 4, 0
.word nt_bye, xt_cold, z_cold
.byte "cold"
nt_ed: ; ed6502
.byte 2, NN
.word nt_cold, xt_ed, z_ed
.byte "ed"
nt_see: .byte 3, NN
.word nt_ed, xt_see, z_see
.byte "see"
nt_forth:
.byte 5, 0
.word nt_see, xt_forth, z_forth
.byte "forth"
nt_order:
.byte 5, 0
.word nt_forth, xt_order, z_order
.byte "order"
nt_to_order:
.byte 6, 0
.word nt_order, xt_to_order, z_to_order
.byte ">order"
nt_previous:
.byte 8, 0
.word nt_to_order, xt_previous, z_previous
.byte "previous"
nt_also:
.byte 4, 0
.word nt_previous, xt_also, z_also
.byte "also"
nt_only:
.byte 4, 0
.word nt_also, xt_only, z_only
.byte "only"
nt_forth_wordlist: ; shares code with ZERO
.byte 14, 0
.word nt_only, xt_forth_wordlist, z_forth_wordlist
.byte "forth-wordlist"
nt_editor_wordlist: ; shares code with ONE
.byte 15, 0
.word nt_forth_wordlist, xt_editor_wordlist, z_editor_wordlist
.byte "editor-wordlist"
nt_assembler_wordlist: ; shares code with TWO
.byte 18, 0
.word nt_editor_wordlist, xt_assembler_wordlist, z_assembler_wordlist
.byte "assembler-wordlist"
nt_root_wordlist:
.byte 13, 0
.word nt_assembler_wordlist, xt_root_wordlist, z_root_wordlist
.byte "root-wordlist"
nt_get_order:
.byte 9, 0
.word nt_root_wordlist, xt_get_order, z_get_order
.byte "get-order"
nt_set_order:
.byte 9, 0
.word nt_get_order, xt_set_order, z_set_order
.byte "set-order"
nt_get_current:
.byte 11, 0
.word nt_set_order, xt_get_current, z_get_current
.byte "get-current"
nt_set_current:
.byte 11, UF
.word nt_get_current, xt_set_current, z_set_current
.byte "set-current"
nt_search_wordlist:
.byte 15, UF
.word nt_set_current, xt_search_wordlist, z_search_wordlist
.byte "search-wordlist"
nt_wordlist:
.byte 8, 0
.word nt_search_wordlist, xt_wordlist, z_wordlist
.byte "wordlist"
nt_definitions:
.byte 11, 0
.word nt_wordlist, xt_definitions, z_definitions
.byte "definitions"
nt_block_ramdrive_init:
.byte 19, UF
.word nt_definitions, xt_block_ramdrive_init, z_block_ramdrive_init
.byte "block-ramdrive-init"
nt_list:
.byte 4, UF
.word nt_block_ramdrive_init, xt_list, z_list
.byte "list"
nt_thru:
.byte 4, UF
.word nt_list, xt_thru, z_thru
.byte "thru"
nt_load:
.byte 4, UF
.word nt_thru, xt_load, z_load
.byte "load"
nt_flush:
.byte 5, 0
.word nt_load, xt_flush, z_flush
.byte "flush"
nt_empty_buffers:
.byte 13, 0
.word nt_flush, xt_empty_buffers, z_empty_buffers
.byte "empty-buffers"
nt_buffer:
.byte 6, 0
.word nt_empty_buffers, xt_buffer, z_buffer
.byte "buffer"
nt_update:
.byte 6, 0
.word nt_buffer, xt_update, z_update
.byte "update"
nt_block:
.byte 5, 0
.word nt_update, xt_block, z_block
.byte "block"
nt_save_buffers:
.byte 12, 0
.word nt_block, xt_save_buffers, z_save_buffers
.byte "save-buffers"
nt_block_read_vector:
.byte 17, HC+NN ; Deferred words need the HC (Code Field) flag.
.word nt_save_buffers, xt_block_read_vector, z_block_read_vector
.byte "block-read-vector"
nt_block_read:
.byte 10, HC+NN ; Deferred words need the HC (Code Field) flag.
.word nt_block_read_vector, xt_block_read, z_block_read
.byte "block-read"
nt_block_write_vector:
.byte 18, NN ; Deferred words need the HC (Code Field) flag.
.word nt_block_read, xt_block_write_vector, z_block_write_vector
.byte "block-write-vector"
nt_block_write:
.byte 11, NN ; Deferred words need the HC (Code Field) flag.
.word nt_block_write_vector, xt_block_write, z_block_write
.byte "block-write"
nt_blk:
.byte 3, 0
.word nt_block_write, xt_blk, z_blk
.byte "blk"
nt_scr:
.byte 3, 0
.word nt_blk, xt_scr, z_scr
.byte "scr"
nt_blkbuffer:
.byte 9, 0
.word nt_scr, xt_blkbuffer, z_blkbuffer
.byte "blkbuffer"
nt_buffblocknum:
.byte 12, 0
.word nt_blkbuffer, xt_buffblocknum, z_buffblocknum
.byte "buffblocknum"
nt_buffstatus:
.byte 10, 0
.word nt_buffblocknum, xt_buffstatus, z_buffstatus
.byte "buffstatus"
nt_buffer_colon:
.byte 7, 0
.word nt_buffstatus, xt_buffer_colon, z_buffer_colon
.byte "buffer:"
nt_useraddr:
.byte 8, 0
.word nt_buffer_colon, xt_useraddr, z_useraddr
.byte "useraddr"
nt_action_of:
.byte 9, IM
.word nt_useraddr, xt_action_of, z_action_of
.byte "action-of"
nt_is:
.byte 2, IM
.word nt_action_of, xt_is, z_is
.byte "is"
nt_defer_store:
.byte 6, 0
.word nt_is, xt_defer_store, z_defer_store
.byte "defer!"
nt_defer_fetch:
.byte 6, 0
.word nt_defer_store, xt_defer_fetch, z_defer_fetch
.byte "defer@"
nt_endcase:
.byte 7, IM+CO+NN
.word nt_defer_fetch, xt_endcase, z_endcase
.byte "endcase"
nt_endof:
.byte 5, IM+CO+NN
.word nt_endcase, xt_endof, z_endof ; shares code with ELSE
.byte "endof"
nt_of:
.byte 2, IM+CO+NN
.word nt_endof, xt_of, z_of
.byte "of"
nt_case:
.byte 4, IM+CO+NN
.word nt_of, xt_case, z_case ; shares code with ZERO
.byte "case"
nt_while:
.byte 5, IM+CO+NN
.word nt_case, xt_while, z_while
.byte "while"
nt_until:
.byte 5, IM+CO+NN
.word nt_while, xt_until, z_until
.byte "until"
nt_repeat:
.byte 6, IM+CO+NN
.word nt_until, xt_repeat, z_repeat
.byte "repeat"
nt_else:
.byte 4, IM+CO+NN
.word nt_repeat, xt_else, z_else
.byte "else"
nt_then:
.byte 4, IM+CO+NN
.word nt_else, xt_then, z_then
.byte "then"
nt_if:
.byte 2, IM+CO+NN
.word nt_then, xt_if, z_if
.byte "if"
nt_dot_paren:
.byte 2, IM
.word nt_if, xt_dot_paren, z_dot_paren
.byte ".("
nt_paren:
.byte 1, IM
.word nt_dot_paren, xt_paren, z_paren
.byte "("
nt_word:
.byte 4, UF
.word nt_paren, xt_word, z_word
.byte "word"
nt_find:
.byte 4, UF
.word nt_word, xt_find, z_find
.byte "find"
nt_environment_q:
.byte 12, UF
.word nt_find, xt_environment_q, z_environment_q
.byte "environment?"
nt_search:
.byte 6, UF+NN
.word nt_environment_q, xt_search, z_search
.byte "search"
nt_compare:
.byte 7, UF
.word nt_search, xt_compare, z_compare
.byte "compare"
nt_disasm:
.byte 6, UF
.word nt_compare, xt_disasm, z_disasm
.byte "disasm"
nt_dot_s:
.byte 2, 0
.word nt_disasm, xt_dot_s, z_dot_s
.byte ".s"
nt_dump:
.byte 4, UF
.word nt_dot_s, xt_dump, z_dump
.byte "dump"
nt_bell:
.byte 4, 0
.word nt_dump, xt_bell, z_bell
.byte "bell"
nt_align:
.byte 5, 0
.word nt_bell, xt_align, z_align
.byte "align"
nt_aligned: ; same code as ALIGN
.byte 7, 0
.word nt_align, xt_align, z_align
.byte "aligned"
nt_wordsize:
.byte 8, UF
.word nt_aligned, xt_wordsize, z_wordsize
.byte "wordsize"
nt_words:
.byte 5, 0
.word nt_wordsize, xt_words, z_words
.byte "words"
nt_marker:
.byte 6, IM
.word nt_words, xt_marker, z_marker
.byte "marker"
nt_at_xy:
.byte 5, UF
.word nt_marker, xt_at_xy, z_at_xy
.byte "at-xy"
nt_page:
.byte 4, 0
.word nt_at_xy, xt_page, z_page
.byte "page"
nt_cr:
.byte 2, 0
.word nt_page, xt_cr, z_cr
.byte "cr"
nt_input:
.byte 5, 0
.word nt_cr, xt_input, z_input
.byte "input"
nt_output:
.byte 6, 0
.word nt_input, xt_output, z_output
.byte "output"
nt_sign:
.byte 4, UF
.word nt_output, xt_sign, z_sign
.byte "sign"
nt_hold:
.byte 4, UF
.word nt_sign, xt_hold, z_hold
.byte "hold"
nt_number_sign_greater:
.byte 2, UF
.word nt_hold, xt_number_sign_greater, z_number_sign_greater
.byte "#>"
nt_number_sign_s:
.byte 2, UF
.word nt_number_sign_greater, xt_number_sign_s, z_number_sign_s
.byte "#s"
nt_number_sign:
.byte 1, UF
.word nt_number_sign_s, xt_number_sign, z_number_sign
.byte "#"
nt_less_number_sign:
.byte 2, 0
.word nt_number_sign, xt_less_number_sign, z_less_number_sign
.byte "<#"
nt_to_in:
.byte 3, 0
.word nt_less_number_sign, xt_to_in, z_to_in
.byte ">in"
nt_within:
.byte 6, UF
.word nt_to_in, xt_within, z_within
.byte "within"
nt_hexstore:
.byte 8, UF
.word nt_within, xt_hexstore, z_hexstore
.byte "hexstore"
nt_cleave:
.byte 6, UF
.word nt_hexstore, xt_cleave, z_cleave
.byte "cleave"
nt_pad:
.byte 3, 0
.word nt_cleave, xt_pad, z_pad
.byte "pad"
nt_cmove:
.byte 5, UF
.word nt_pad, xt_cmove, z_cmove
.byte "cmove"
nt_cmove_up:
.byte 6, UF
.word nt_cmove, xt_cmove_up, z_cmove_up
.byte "cmove>"
nt_move:
.byte 4, NN+UF
.word nt_cmove_up, xt_move, z_move
.byte "move"
nt_backslash:
.byte 1, IM
.word nt_move, xt_backslash, z_backslash
.byte $5c
nt_star_slash:
.byte 2, UF
.word nt_backslash, xt_star_slash, z_star_slash
.byte "*/"
nt_star_slash_mod:
.byte 5, UF
.word nt_star_slash, xt_star_slash_mod, z_star_slash_mod
.byte "*/mod"
nt_mod:
.byte 3, UF
.word nt_star_slash_mod, xt_mod, z_mod
.byte "mod"
nt_slash_mod:
.byte 4, UF
.word nt_mod, xt_slash_mod, z_slash_mod
.byte "/mod"
nt_slash:
.byte 1, UF
.word nt_slash_mod, xt_slash, z_slash
.byte "/"
nt_fm_slash_mod:
.byte 6, UF
.word nt_slash, xt_fm_slash_mod, z_fm_slash_mod
.byte "fm/mod"
nt_sm_slash_rem:
.byte 6, UF
.word nt_fm_slash_mod, xt_sm_slash_rem, z_sm_slash_rem
.byte "sm/rem"
nt_um_slash_mod:
.byte 6, UF
.word nt_sm_slash_rem, xt_um_slash_mod, z_um_slash_mod
.byte "um/mod"
nt_star:
.byte 1, UF
.word nt_um_slash_mod, xt_star, z_star
.byte "*"
nt_um_star:
.byte 3, UF
.word nt_star, xt_um_star, z_um_star
.byte "um*"
nt_m_star:
.byte 2, UF
.word nt_um_star, xt_m_star, z_m_star
.byte "m*"
nt_count:
.byte 5, UF
.word nt_m_star, xt_count, z_count
.byte "count"
nt_decimal:
.byte 7, 0
.word nt_count, xt_decimal, z_decimal
.byte "decimal"
nt_hex:
.byte 3, 0
.word nt_decimal, xt_hex, z_hex
.byte "hex"
nt_to_number:
.byte 7, UF
.word nt_hex, xt_to_number, z_to_number
.byte ">number"
nt_number:
.byte 6, UF
.word nt_to_number, xt_number, z_number
.byte "number"
nt_digit_question:
.byte 6, UF
.word nt_number, xt_digit_question, z_digit_question
.byte "digit?"
nt_base:
.byte 4, 0
.word nt_digit_question, xt_base, z_base
.byte "base"
nt_evaluate:
.byte 8, UF
.word nt_base, xt_evaluate, z_evaluate
.byte "evaluate"
nt_state:
.byte 5, 0
.word nt_evaluate, xt_state, z_state
.byte "state"
nt_again:
.byte 5, AN+CO+IM+UF
.word nt_state, xt_again, z_again
.byte "again"
nt_begin:
.byte 5, AN+CO+IM
.word nt_again, xt_begin, z_begin
.byte "begin"
nt_quit:
.byte 4, 0
.word nt_begin, xt_quit, z_quit
.byte "quit"
nt_recurse:
.byte 7, CO+IM+NN
.word nt_quit, xt_recurse, z_recurse
.byte "recurse"
nt_leave:
.byte 5, AN+CO
.word nt_recurse, xt_leave, z_leave
.byte "leave"
nt_unloop:
.byte 6, AN+CO
.word nt_leave, xt_unloop, z_unloop
.byte "unloop"
nt_exit:
.byte 4, AN+CO
.word nt_unloop, xt_exit, z_exit
.byte "exit"
nt_plus_loop:
.byte 5, CO+IM
.word nt_exit, xt_plus_loop, z_plus_loop
.byte "+loop"
nt_loop:
.byte 4, CO+IM
.word nt_plus_loop, xt_loop, z_loop
.byte "loop"
nt_j:
.byte 1, AN+CO
.word nt_loop, xt_j, z_j
.byte "j"
nt_i:
.byte 1, AN+CO
.word nt_j, xt_i, z_i
.byte "i"
nt_question_do:
.byte 3, CO+IM+NN
.word nt_i, xt_question_do, z_question_do
.byte "?do"
nt_do:
.byte 2, CO+IM+NN
.word nt_question_do, xt_do, z_do
.byte "do"
nt_abort_quote:
.byte 6, CO+IM+NN
.word nt_do, xt_abort_quote, z_abort_quote
.byte "abort", $22
nt_abort:
.byte 5, 0
.word nt_abort_quote, xt_abort, z_abort
.byte "abort"
nt_strip_underflow:
.byte 15, 0
.word nt_abort, xt_strip_underflow, z_strip_underflow
.byte "strip-underflow"
nt_nc_limit:
.byte 8, 0
.word nt_strip_underflow, xt_nc_limit, z_nc_limit
.byte "nc-limit"
nt_allow_native:
.byte 12, 0
.word nt_nc_limit, xt_allow_native, z_allow_native
.byte "allow-native"
nt_always_native:
.byte 13, 0
.word nt_allow_native, xt_always_native, z_always_native
.byte "always-native"
nt_never_native:
.byte 12, 0
.word nt_always_native, xt_never_native, z_never_native
.byte "never-native"
nt_compile_only:
.byte 12, 0
.word nt_never_native, xt_compile_only, z_compile_only
.byte "compile-only"
nt_immediate:
.byte 9, 0
.word nt_compile_only, xt_immediate, z_immediate
.byte "immediate"
nt_postpone:
.byte 8, IM+CO
.word nt_immediate, xt_postpone, z_postpone
.byte "postpone"
nt_s_backslash_quote:
.byte 3, IM
.word nt_postpone, xt_s_backslash_quote, z_s_backslash_quote
.byte "s", $5C, $22
nt_s_quote:
.byte 2, IM+NN
.word nt_s_backslash_quote, xt_s_quote, z_s_quote
.byte "s", $22
nt_dot_quote:
.byte 2, CO+IM
.word nt_s_quote, xt_dot_quote, z_dot_quote
.byte ".", $22
nt_sliteral:
.byte 8, CO+IM+UF
.word nt_dot_quote, xt_sliteral, z_sliteral
.byte "sliteral"
nt_literal:
.byte 7, IM+CO+UF
.word nt_sliteral, xt_literal, z_literal
.byte "literal"
nt_right_bracket:
.byte 1, IM
.word nt_literal, xt_right_bracket, z_right_bracket
.byte "]"
nt_left_bracket:
.byte 1, IM+CO
.word nt_right_bracket, xt_left_bracket, z_left_bracket
.byte "["
nt_compile_comma:
.byte 8, UF+NN
.word nt_left_bracket, xt_compile_comma, z_compile_comma
.byte "compile,"
nt_colon_noname:
.byte 7, 0
.word nt_compile_comma, xt_colon_noname, z_colon_noname
.byte ":noname"
nt_semicolon:
.byte 1, CO+IM
.word nt_colon_noname, xt_semicolon, z_semicolon
.byte ";"
nt_colon:
.byte 1, 0
.word nt_semicolon, xt_colon, z_colon
.byte ":"
nt_source_id:
.byte 9, 0
.word nt_colon, xt_source_id, z_source_id
.byte "source-id"
nt_source:
.byte 6, 0
.word nt_source_id, xt_source, z_source
.byte "source"
nt_execute_parsing:
.byte 15, UF
.word nt_source, xt_execute_parsing, z_execute_parsing
.byte "execute-parsing"
nt_parse:
.byte 5, UF
.word nt_execute_parsing, xt_parse, z_parse
.byte "parse"
nt_parse_name:
.byte 10, NN
.word nt_parse, xt_parse_name, z_parse_name
.byte "parse-name"
nt_latestnt:
.byte 8, 0
.word nt_parse_name, xt_latestnt, z_latestnt
.byte "latestnt"
nt_latestxt:
.byte 8, 0
.word nt_latestnt, xt_latestxt, z_latestxt
.byte "latestxt"
nt_defer:
.byte 5, 0
.word nt_latestxt, xt_defer, z_defer
.byte "defer"
nt_to_body:
.byte 5, UF
.word nt_defer, xt_to_body, z_to_body
.byte ">body"
nt_name_to_string:
.byte 11, UF
.word nt_to_body, xt_name_to_string, z_name_to_string
.byte "name>string"
nt_int_to_name:
.byte 8, UF
.word nt_name_to_string, xt_int_to_name, z_int_to_name
.byte "int>name"
nt_name_to_int:
.byte 8, UF
.word nt_int_to_name, xt_name_to_int, z_name_to_int
.byte "name>int"
nt_bracket_tick:
.byte 3, CO+IM
.word nt_name_to_int, xt_bracket_tick, z_bracket_tick
.byte "[']"
nt_tick:
.byte 1, 0
.word nt_bracket_tick, xt_tick, z_tick
.byte "'"
nt_find_name:
.byte 9, UF
.word nt_tick, xt_find_name, z_find_name
.byte "find-name"
nt_fill:
.byte 4, UF
.word nt_find_name, xt_fill, z_fill
.byte "fill"
nt_blank:
.byte 5, 0 ; underflow checked by FILL
.word nt_fill, xt_blank, z_blank
.byte "blank"
nt_erase:
.byte 5, 0 ; underflow checked by FILL
.word nt_blank, xt_erase, z_erase
.byte "erase"
nt_d_plus:
.byte 2, UF
.word nt_erase, xt_d_plus, z_d_plus
.byte "d+"
nt_d_minus:
.byte 2, UF
.word nt_d_plus, xt_d_minus, z_d_minus
.byte "d-"
nt_d_to_s:
.byte 3, UF
.word nt_d_minus, xt_d_to_s, z_d_to_s
.byte "d>s"
nt_s_to_d:
.byte 3, UF
.word nt_d_to_s, xt_s_to_d, z_s_to_d
.byte "s>d"
nt_to:
.byte 2, NN+IM
.word nt_s_to_d, xt_to, z_to
.byte "to"
nt_value: ; same code as CONSTANT
.byte 5, UF
.word nt_to, xt_constant, z_constant
.byte "value"
nt_constant:
.byte 8, UF
.word nt_value, xt_constant, z_constant
.byte "constant"
nt_variable:
.byte 8, 0
.word nt_constant, xt_variable, z_variable
.byte "variable"
nt_does:
.byte 5, CO+IM
.word nt_variable, xt_does, z_does
.byte "does>"
nt_create:
.byte 6, 0
.word nt_does, xt_create, z_create
.byte "create"
nt_allot:
.byte 5, UF
.word nt_create, xt_allot, z_allot
.byte "allot"
nt_key:
.byte 3, 0
.word nt_allot, xt_key, z_key
.byte "key"
nt_depth:
.byte 5, 0
.word nt_key, xt_depth, z_depth
.byte "depth"
nt_unused:
.byte 6, 0
.word nt_depth, xt_unused, z_unused
.byte "unused"
nt_r_to_input:
.byte 7, NN
.word nt_unused, xt_r_to_input, z_r_to_input
.byte "r>input"
nt_input_to_r:
.byte 7, NN
.word nt_r_to_input, xt_input_to_r, z_input_to_r
.byte "input>r"
nt_accept:
.byte 6, UF+NN
.word nt_input_to_r, xt_accept, z_accept
.byte "accept"
nt_refill:
.byte 6, 0
.word nt_accept, xt_refill, z_refill
.byte "refill"
nt_slash_string:
.byte 7, UF
.word nt_refill, xt_slash_string, z_slash_string
.byte "/string"
nt_minus_leading:
.byte 8, UF
.word nt_slash_string, xt_minus_leading, z_minus_leading
.byte "-leading"
nt_minus_trailing:
.byte 9, UF
.word nt_minus_leading, xt_minus_trailing, z_minus_trailing
.byte "-trailing"
nt_bl:
.byte 2, 0
.word nt_minus_trailing, xt_bl, z_bl
.byte "bl"
nt_spaces:
.byte 6, UF
.word nt_bl, xt_spaces, z_spaces
.byte "spaces"
nt_bounds:
.byte 6, UF