mirror of
https://github.com/nineties/planckforth
synced 2024-12-25 21:58:22 +01:00
Add .s
This commit is contained in:
parent
0327f5e68b
commit
ca8f5a191f
1 changed files with 10 additions and 0 deletions
10
bootstrap.fs
10
bootstrap.fs
|
@ -1291,3 +1291,13 @@ create word-buffer s" 63" >number drop cell+ allot drop
|
|||
;
|
||||
|
||||
main
|
||||
|
||||
( === Dump of data stack === )
|
||||
: .s ( -- )
|
||||
sp0 sp@ - cell- cell / ( depth of the stack )
|
||||
'<' emit 0 u.r '>' emit space
|
||||
sp@ sp0 ( beg end )
|
||||
begin 2dup < while
|
||||
cell- dup @ .
|
||||
repeat 2drop
|
||||
;
|
||||
|
|
Loading…
Reference in a new issue