mirror of
https://github.com/forth-ev/VolksForth.git
synced 2025-02-16 21:30:59 +00:00
new "vlist" inspired by F79Forth
This commit is contained in:
parent
52740e8949
commit
30577e05d4
@ -1 +0,0 @@
|
||||
|
18
8086/pc-baremetal/vlist.fth
Normal file
18
8086/pc-baremetal/vlist.fth
Normal file
@ -0,0 +1,18 @@
|
||||
: .flags ( cntf -- )
|
||||
dup $80 and if [char] R emit else space then
|
||||
dup $40 and if [char] I emit else space then
|
||||
$20 and if [char] N emit else space then ;
|
||||
|
||||
: vlist ( -- ) base @ cr
|
||||
." Word" &25 spaces ." Flags CFA Length" cr
|
||||
[compile] char capital >r context @
|
||||
BEGIN @ dup stop? 0= and
|
||||
WHILE ?cr dup 2+ r@ bl = over 1+ c@ r@ = or
|
||||
IF dup .name
|
||||
dup c@ $F and &20 swap - spaces ( Name )
|
||||
dup c@ .flags space ( Count Field )
|
||||
dup name> hex u. space ( CFA )
|
||||
2- 2- @ decimal 3 u.r space ( Block )
|
||||
cr
|
||||
ELSE drop THEN
|
||||
REPEAT drop rdrop base ! ;
|
Loading…
x
Reference in New Issue
Block a user