add .R PAD U.R U> UNUSED WITHIN
parent
6b1955a69e
commit
5ee8f7e01d
@ -0,0 +1,16 @@
|
|||||||
|
1 constant bit0
|
||||||
|
2 constant bit1
|
||||||
|
4 constant bit2
|
||||||
|
8 constant bit3
|
||||||
|
16 constant bit4
|
||||||
|
32 constant bit5
|
||||||
|
64 constant bit6
|
||||||
|
128 constant bit7
|
||||||
|
|
||||||
|
1 constant port1
|
||||||
|
2 constant port2
|
||||||
|
3 constant port3
|
||||||
|
4 constant port4
|
||||||
|
5 constant port5
|
||||||
|
|
||||||
|
: pindef
|
@ -0,0 +1,25 @@
|
|||||||
|
: .s depth dup 0 ?do dup i - pick . loop drop ;
|
||||||
|
: ? @ . ;
|
||||||
|
: dump hex 0 do i cells over + @ s>d <# # # # # bl hold #> type loop
|
||||||
|
drop decimal ;
|
||||||
|
|
||||||
|
7 cells 80 chars + constant _begin
|
||||||
|
: words _latest @ begin
|
||||||
|
dup @ dup 31 &
|
||||||
|
2 pick cell+ \ lt l len ws
|
||||||
|
2 pick 6 >> 1023 < if \ lt l len ws
|
||||||
|
rot 6 >> else \ lt len ws adv
|
||||||
|
>r cell+ rot drop r> @ then
|
||||||
|
-rot swap type space \ lt adv
|
||||||
|
over _begin <> while - repeat 2drop ;
|
||||||
|
|
||||||
|
( xt -- caddr u )
|
||||||
|
: _nameof _latest @ begin \ xt lt
|
||||||
|
2dup < while \ xt lt
|
||||||
|
dup @ \ xt lt l
|
||||||
|
dup 6 >> 1023 < if \ xt lt l
|
||||||
|
6 >> - else
|
||||||
|
drop dup cell+ @ - then \ xt lt
|
||||||
|
repeat nip \ lt
|
||||||
|
dup @ swap cell+ over 31 & \ l lt len
|
||||||
|
rot 6 >> 1023 = if swap cell+ swap then ; \ lt len
|
Loading…
Reference in New Issue