/
core-nucleus.a65
2999 lines (2705 loc) · 58.7 KB
/
core-nucleus.a65
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
; core-nucleus.a65
;#echo . core-nucleus.a65 Nucleus
;--------------------------------------------------------------
#if 0
name=UM*
stack=( u1 u2 -- ud )
tags=nucleus,math,forth-83
`ud` is the unsigned product of `u1` times `u2`. All values and
arithmetic are unsigned.
check http://6502.org/source/ for multiply and divide and stuff
```
umstar
lda stackl,x
sta n+4
lda stackh,x ;multiplicand in tos
sta n+5 ;multiplier in N2
jsr multiply ;16 bit unsigned multiply
lda n
sta stackl,x
lda n+1
sta stackh,x
lda n+2
ldy n+3
jmp put ;[26]
multiply
lda #0 ; unsigned multiply tos*N2 destroys tos
sta n+2 ;clear upper half of product
sta n+3
ldy #16
rshift
lsr tos+1
ror tos
bcc rrot ;Go rotate right if c = 0
clc ; and add multiplicand to
lda n+2 ;Get upper half of product
adc n+4 ; it
sta n+2
lda n+3
adc n+5
rrot
ror ;shift partial product right
sta n+3
ror n+2
ror n+1
ror n
dey ;Decrement bit count and
bne rshift
rts ;[38 == 64]
: um* ( u2 u1 -- ud )
0 tuck dup (um*) ;
```
#endif
#include "align.i65"
_umstar
jsr enter
#include "page.i65"
.word zero
#include "parm.i65"
.word tozp
.byt R0L+2*ACC
#include "pad.i65"
.word tuck
#include "page.i65"
.word pumstar
#include "past.i65"
.word exit
;--------------------------------------------------------------
#if 0
name=(UM*)
stack=( 0 multiplicand multiplier 0 0 -- product )
tags=nucleus,math,forth-83,nosymbol
```
set product to 0.
begin
right shift multiplier
if
add multiplicand to product
then
double multiplicand
multiplier 0=
until
```
#endif
pumstar
jsr harvests6 ;( N0 N1 N2 )
;( multiplicand.lo multiplicand.hi multiplier )
stx z ; stash stack pointer
pumstar01
lsr R0L+2*N2+1
ror R0L+2*N2 ; shift off low bit of multiplier
bcc pumstar03
clc
ldx #<(-4) ;$FC
pumstar02 ; add 32-bit multiplicand to 32-bit product
lda <(R0L+4),x
adc <(R0L+2*N0+4),x
sta <(R0L+4),x
inx
bmi pumstar02
pumstar03
;clc
ldx #R0L+2*N0
jsr wraprolls
lda R0L+2*N2 ; done when multiplier reaches 0
ora R0L+2*N2+1
bne pumstar01 ; keep go?
ldx z ; restore stack pointer
lda R0L+2*ACC
ldy R0L+2*ACC+1
dex ; tuck prod.lo at `2os`
jmp slmod40d
;--------------------------------------------------------------
#if 0
name=UD/MOD
stack=( ud1 u2 -- u3 ud4 )
tags=numword
http://www.bradrodriguez.com/papers/camel09.txt
\ High level: numeric output (c) 31mar95 bjr
: UD/MOD \ ud1 u2 -- u3 ud4 32/16->32 divide
>R 0 R@ UM/MOD ROT ROT R> UM/MOD ROT ;
#endif
udslashmod
lda #>(put-1)
pha
lda #<(put-1)
pha
stx z ; saves a dex;dex later
;ldy #4
jsr harvests4 ; dividend to n0..n3
udslashmods
clc
;ldy #0 ; harvests does this for us
ldx #33
tya
beq udslashmodb ; bra to initialization code
udslashmoda
rol n+4 ; [5] ; I don't know what this 2-bytes is called
rol n+5 ; [5] ; trial minuend or something like that
sec ; [2]
lda n+4 ; [3]
sbc tos ; [3]
tay ; [2]
lda n+5 ; [3]
sbc tos+1 ; [3]
bcc udslashmodc ; save or abandon the trial subtraction
udslashmodb
sty n+4 ; [2+3+3] or [3]?
sta n+5 ; treating this as [~6] clocks on average
udslashmodc
rol n ; [5]
rol n+1 ; [5]
rol n+2 ; [5]
rol n+3 ; [5]
dex ; [2]
bne udslashmoda ; [3]
; [54] or [59] clocks for 33x main loop = [1839]
ldx z
lda n+5
sta stackh+1,x
lda n+4
sta stackl+1,x
lda n+1
sta stackh,x
lda n
sta stackl,x
ldy n+3
lda n+2
rts ; `put` if called as a Forth word
;--------------------------------------------------------------
#if 0
name=UM/MOD
stack=( ud u -- rem quot )
tags=forth-83,nucleus
Perform an unsigned division of the 16-bit "u" into the double
"ud", leaving the 16-bit unsigned remainder and quotient on
the stack
http://6502.org/source/integers/ummodfix/ummodfix.htm
!!! pronounced: "u-m slash mod"
#endif
umslashmod
lda stackl,x
cmp tos
lda stackh,x
sbc tos+1
bcs umslashmodx
umslashmoda
lda #17
sta n ; counter
umslashmodb
rol stackl+1,x
rol stackh+1,x
dec n
beq umslashmodz
rol stackl,x
rol stackh,x
lda #$80
rol
sta n+1 ; carry
;sec
lda stackl,x
sbc tos
sta n+2
lda stackh,x
sbc tos+1
tay
lda n+1
sbc #0
bcc umslashmodb
lda n+2
sta stackl,x
sty stackh,x
bcs umslashmodb
umslashmodx
lda #$ff
sta stackl,x
sta stackh,x
sta stackh+1,x
sta stackl+1,x
umslashmodz
jsr slide ; ~
jmp swap
;--------------------------------------------------------------
#if 0
name=AND
stack=( n1 n2 -- n1&n2 )
tags=forth-83,nucleus,boolean
#endif
andx
lda tos+1
and stackh,x
tay
lda tos
and stackl,x
inx
bne not01 ; [3] ; bra
;--------------------------------------------------------------
#if 0
name=OR
stack=( n1 n2 -- n1|n2 )
tags=forth-83,nucleus,boolean
#endif
orx
lda tos+1
ora stackh,x
tay
lda tos
ora stackl,x
inx
bne not01 ; [3] ; bra
;--------------------------------------------------------------
#if 0
name=XOR
stack=( n1 n2 -- n1^n2 )
tags=forth-83,nucleus,boolean
#endif
xor
lda tos+1 ; [3]
eor stackh,x ; [4]
tay ; [2]
lda tos ; [3]
eor stackl,x ; [4]
inx ; [2]
bne not01 ; [3] ; bra
;--------------------------------------------------------------
#if 0
name=NOT
stack=( n -- !n )
tags=forth-83,nucleus,boolean
#endif
not
lda tos+1
eor #$ff
tay
lda tos
eor #$ff
not01
jmp put
;--------------------------------------------------------------
#if 0
name==R
stack=( x -- y ) r( y -- x )
tags=primitive,stack,ext
Exchange `tos` with top of return stack
#endif
rexchg
pla
tay
pla
toray
dex
sty stackl,x ; ay
sta stackh,x
bne tor ; >r
;--------------------------------------------------------------
#if 0
name=2>R
stack=( x1 x2 -- ) r( -- x1 x2 )
tags=double,stack,ext
Transfer cell pair x1 x2 to the return stack. Semantically equivalent to `swap >r >r` .
#endif
twotor
lda stackh,x
pha
lda stackl,x
pha
inx
; fall through
;--------------------------------------------------------------
#if 0
name=>R
stack=( n -- ) ( R; -- n )
tags=forth-83,nucleus,stack
Move the top element of the data stack to the return stack
!!! pronounced: "to-r"
#endif
tor
sec
.byt $29 ; AND #
;fall through
;--------------------------------------------------------------
#if 0
name=DUP>R
stack=( n -- n ) ( R; -- n )
tags=primitive,nucleus,stack
Copy the top of the data stack to the return stack
!!! pronounced: "dupe to-r"
#endif
duptor
clc
;
lda tos+1
pha
lda tos
pha
bcc rdrop01
jmp drop
;--------------------------------------------------------------
#if 0
name=RDROP
stack=( -- ) ( R; a -- )
tags=nucleus,stack
Drop the top item on the return stack
!!! pronounced: "r-drop"
#endif
rdrop
pla
pla
rdrop01
jmp next
;--------------------------------------------------------------
#if 0
name=2OFF
stack=( addr -- )
tags=nucleus,memory
Erase four bytes starting at `addr`
#endif
twooff
ldy #4
.byt $2C ; BIT abs opcode skips `ldy #1`
; fall through
;--------------------------------------------------------------
#if 0
name=3COFF
stack=( addr -- )
tags=nucleus,memory
Erase three bytes starting at `addr`
#endif
threecoff
ldy #3
;
.byt $2C ; BIT abs opcode skips `ldy #1`
; fall through
;--------------------------------------------------------------
#if 0
name=COFF
stack=( addr -- )
tags=nucleus,memory
Store 0 char at `addr`
#endif
coff
ldy #1
;
.byt $2C ; BIT abs opcode skips `clc $29`
; fall through
;--------------------------------------------------------------
#if 0
name=OFF
stack=( addr -- )
tags=nucleus,memory
Store 0 at `addr`
#endif
off
ldy #2
;
sec
off02
lda #>(drop-1)
pha
lda #<(drop-1)
pha
jsr dectos ; alters A, not C
lda #0
sbc #0
erases02
sta (tos),y
dey
bne erases02
rts
;--------------------------------------------------------------
#if 0
name=ON
stack=( addr -- )
tags=nucleus,memory
Store -1 at `addr`
#endif
on
ldy #2
clc
bcc off02 ; bra
;--------------------------------------------------------------
#if 0
name=-
stack=( n1 n2 -- difference )
tags=forth-83,nucleus
Subtract `n2` from `n1`
#endif
minus
jsr donegate
; fall through
;--------------------------------------------------------------
#if 0
name=+
stack=( n1 n2 -- sum )
registers=A:X:C:TOS=sum
tags=forth-83,nucleus,math,fig,forth-79,primitive
Return the sum of n1 plus n2
!!! pronounced: "plus"
#endif
plus
lda stackl,x
plus01 ; entry point from >BIT
clc
adc tos
sta tos
lda stackh,x
adc tos+1
sta tos+1
;fall through
;--------------------------------------------------------------
#if 0
name=NIP
stack=( n1 n2 -- n2 )
tags=nucleus,stack
Remove the second item from the stack
#endif
nip
inx
qdup01
jmp next
;--------------------------------------------------------------
#if 0
name=ABS
stack=( n -- u )
tags=forth-83,nucleus,math,fig,forth-79
Leave the absolute value of n as u.
#endif
abs
bit tos+1
bpl qdup01
;fall through
;--------------------------------------------------------------
#if 0
name=NEGATE
stack=( n -- -n )
tags=forth-83,nucleus,math
#endif
negate
lda #>(next-1)
pha
lda #<(next-1)
pha
donegate
sec
neg2
lda #0
sbc tos
sta tos
lda #0
sbc tos+1
sta tos+1
rts
;--------------------------------------------------------------
#if 0
name=OVER
stack=( n1 n2 -- n1 n2 n1 )
tags=forth-83,nucleus,stack
#endif
over
ldy stackh,x
lda stackl,x
jmp pushya
;--------------------------------------------------------------
#if 0
name=SWAP
stack=( n1 n2 -- n2 n1 )
tags=forth-83,nucleus,stack,fig,forth-79
Exchange the top two values on the stack.
#endif
swap
lda #>(next-1)
pha
lda #<(next-1)
pha
swaps
ldy tos+1
lda stackh,x
sta tos+1
sty stackh,x
ldy tos
lda stackl,x
sta tos
sty stackl,x
rts
;--------------------------------------------------------------
#if 0
name=TUCK
stack=( n1 n2 -- n2 n1 n2 )
tags=nucleus,stack
Insert the top item on the stack beneath the second.
#endif
tuck
dex
jsr tuckdashrot
jmp next
tuckdashrot
lda stackh+1,x
sta stackh,x
lda stackl+1,x
sta stackl,x
lda tos+1
sta stackh+1,x
lda tos
sta stackl+1,x
rts
;--------------------------------------------------------------
#if 0
name=-ROT
stack=( a b c -- c a b )
tags=nucleus,stack
#endif
dashrot
ldy stackh,x
lda stackl,x ; b
pha
jsr tuckdashrot
pla
jmp put ; b -> c
;--------------------------------------------------------------
#if 0
name=?DUP
stack=( 0 -- 0 | n -- n n )
tags=forth-83,nucleus
DUP if top of stack is nonzero
#endif
qdup
lda tos
ora tos+1
beq qdup01
; fall through
;--------------------------------------------------------------
#if 0
name=DUP
stack=( n -- n n )
tags=forth-83,nucleus,stack,forth-79,fig
Duplicate the value on the stack.
!!! pronounced: "dupe"
#endif
dup
lda #>(next-1)
pha
lda #<(next-1)
pha
; fall through
;--------------------------------------------------------------
#if 0
name=SLIP
stack=( n -- n n )
tags=nosymbol,subroutine
Push TOS to the stack (DUP)
#endif
slip
dex
slip01
lda tos+1
sta stackh,x
lda tos
sta stackl,x
rts
;[10]{22}
;--------------------------------------------------------------
#if 0
name=+!
stack=( n addr -- )
tags=forth-83,nucleus,fig,forth-79
Add "n" to the value at "addr"
!!! pronounced: "plus-store"
#endif
plusstore
ldy #0
clc
lda stackl,x
adc (tos),y
sta (tos),y
iny
lda stackh,x
adc (tos),y
sta (tos),y
jmp twodrop
;--------------------------------------------------------------
#if 0
name=TOGGLE
stack=( addr bitmask -- )
tags=nucleus,boolean,fig
Complement the contents of addr by the bit pattern b.
#endif
toggle
lda stackl,x
sta n
lda stackh,x
sta n+1
ldy #0
lda (n),y
eor tos
sta (n),y
jmp twodrop
;--------------------------------------------------------------
#if 0
name=COUNT
stack=( addr1 -- addr2 n1 )
tags=forth-83
Leaves the address, addr2 and the character count +n of text
beginning at addr1. addr2 is addr1+1 and n1 is the length of
the counted string at addr1. The byte at addr1 contains the
byte count +n. Range of +n is {0...255}.
#endif
count
; synonym for C@+, fall through
;--------------------------------------------------------------
#if 0
name=C@+
stack=( addr -- addr+1 c )
tags=nucleus,memory,primitive
Fetches the byte at addr, increments addr
!!!pronounced: "c-fetch-plus"
#endif
cfetchplus
ldy #0
lda (tos),y
jsr inctos
jmp pushya
;--------------------------------------------------------------
#if 0
name=@+
stack=( addr -- addr+2 w )
tags=nucleus,memory,primitive
Fetches word `w` at `addr`, increments addr by 2
!!!pronounced: "c-fetch-plus"
#endif
fetchplus
ldy #1
fetchplus01
lda (tos),y
pha
dey
bpl fetchplus01
jsr inctos
jsr inctos
jmp rfrom
;--------------------------------------------------------------
#if 0
name=CBIT!
stack=( mask addr -- )
tags=nucleus,boolean,memory
Turn on the `mask` bits in the byte at `addr`
!!! pronounced: "c-bit-store"
#endif
cbitstore
ldy #0
lda (tos),y
ora stackl,x
sta (tos),y
jmp twodrop
;--------------------------------------------------------------
#if 0
name=CBIT@
stack=( mask addr -- flag )
tags=nucleus
test the mask bits in the byte at address
#endif
cbitfetch
ldy #0
lda (tos),y
and stackl,x
inx
jmp put
;--------------------------------------------------------------
#if 0
name=TIB
stack=( -- addr )
tags=nucleus,const,forth-83
The address of the text input buffer. This buffer is used
to hold characters when the input stream is coming from the
keyboard or other input stream (not a block). The minimum
capacity of TIB is 80 characters.
!!!pronounced: "t-i-b"
#endif
tib
jsr doconst
.word BUF ; $0200
;--------------------------------------------------------------
#if 0
name=SIB
stack=( -- addr )
tags=nucleus,const,forth-83
The address of the screen input buffer. This buffer is used to hold each logical line of screen codes from a packet that has been unpacked to `blkbuf` while interpreting it. As a working area, both `interpret` and `create` will replace space characters before and after a token with length bytes and vocabulary id's. This buffer may not be pristine!
!!!pronounced: "screen-input-buffer"
#endif
sib
jsr doconst
.word $0130 ; Put 80 bytes for a line input buffer
; in the middle of the system stack
; page? What could possibly go wrong?
;--------------------------------------------------------------
#if 0
name=-5
stack=( -- -5 )
tags=nucleus,const
#endif
minusfive
jsr doconst
.word -5
;--------------------------------------------------------------
#if 0
name=-4
stack=( -- -4 )
tags=nucleus,const
#endif
minusfour
jsr doconst
.word -4
;--------------------------------------------------------------
#if 0
name=-3
stack=( -- -3 )
tags=nucleus,const
#endif
minusthree
jsr doconst
.word -3
;--------------------------------------------------------------
#if 0
name=-2
stack=( -- -2 )
tags=nucleus,const
#endif
minustwo
jsr doconst
.word -2
;--------------------------------------------------------------
#if 0
name=BLK@
stack=( -- blk )
tags=numword
Return the contents of user variable `blk`
~ implementation limits `blk` to the range 0..255 (tape only)
#endif
blkfetch
lda userblk
.byt $2c ; BIT abs opcode
;--------------------------------------------------------------
#if 0
name=9
stack=( -- 9 )
tags=nucleus
Constant: `9`
#endif
nine
lda #9
.byt $2c ; BIT abs opcode
;--------------------------------------------------------------
#if 0
name=8
stack=( -- 8 )
tags=nucleus
Constant: `8`
#endif
eight
lda #8
.byt $2c ; BIT abs opcode
;--------------------------------------------------------------
#if 0
name=7
stack=( -- 7 )
tags=nucleus
Constant: `7`
#endif
seven
lda #7
.byt $2c ; BIT abs opcode
;--------------------------------------------------------------
#if 0
name=6
stack=( -- 6 )
tags=nucleus
Constant: `6`
#endif
six
lda #6
.byt $2c ; BIT abs opcode
;--------------------------------------------------------------
#if 0
name=EIGHTY
stack=( -- 80 )
tags=nucleus,const
Constant: `80`
#endif
eighty
lda #80
.byt $2c ; BIT abs opcode
;--------------------------------------------------------------
#if 0
name=FORTY
stack=( -- 40 )
tags=nucleus,const
Constant: `40`
#endif
forty
lda #40
.byt $2c ; BIT abs opcode
;--------------------------------------------------------------
#if 0
name=TEN
stack=( -- 10 )
tags=nucleus,const
Constant: `10`
#endif
ten
lda #10
.byt $2c ; BIT abs opcode
;--------------------------------------------------------------
#if 0
name=BL
stack=( -- n )
tags=nucleus,const
Constant: `32`
#endif
bl
lda #' '
.byt $2c ; BIT abs opcode
;--------------------------------------------------------------
#if 0
name=L/SCR
stack=( -- n )
tags=nucleus,const
Lines per screen, 25
Constant: `25`
#endif
lperscr
lda #LPERSCR
.byt $2c ; BIT abs opcode
;--------------------------------------------------------------
#if 0
name=5
stack=( -- 5 )
tags=nucleus
Constant: `5`
#endif
five
lda #5
.byt $2c ; BIT abs opcode
;--------------------------------------------------------------
#if 0
name=4
stack=( -- 4 )
tags=nucleus
Constant: `4`
#endif
four
lda #4
.byt $2c ; BIT abs opcode
;--------------------------------------------------------------
#if 0
name=3
stack=( -- 3 )
tags=nucleus
Constant: `3`
#endif
three
lda #3
.byt $2c ; BIT abs opcode
;--------------------------------------------------------------
#if 0
name=2
stack=( -- 2 )
tags=nucleus
Constant: `2`
#endif
two
lda #2
.byt $2c ; BIT abs opcode
;--------------------------------------------------------------
#if 0
name=1
stack=( -- 1 )
tags=nucleus,const
Constant: `1`
#endif
one
lda #1
jmp push0a
;--------------------------------------------------------------
#if 0
name=?TERMINAL
stack=( -- flag )
tags=forth-83