Merge pull request #55 from qartis/use-depth-for-.s

Use 'depth' in definition of '.s'
This commit is contained in:
Koichi NAKAMURA 2022-08-18 11:30:37 +09:00 committed by GitHub
commit f7356eb63b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1633,7 +1633,7 @@ do-stack 16 cells + do-sp !
: rdepth rp0 rp@ - cell / ;
: .s ( -- )
sp0 sp@ - cell- cell / ( depth of the stack )
depth
'<' emit 0 u.r '>' emit space
sp@ sp0 ( beg end )
begin 2dup < while