fixed a bug

This commit is contained in:
Koichi Nakamura 2021-01-11 02:06:39 +09:00
parent db86f87671
commit a17e38b16d

View file

@ -623,11 +623,6 @@ allot-cell : &find! [ ' L , , ] ; \ ( c-addr -- nt ) Throw exception at error
: sp0 [ sp@ ] literal ;
: rp0 [ rp@ ] literal ;
\ ( -- n )
\ Number of elemtns in the stack
: depth sp0 sp@ - cell- cell / ;
: rdepth rp0 rp@ - cell / ;
\ === Integer Arithmetic ===
: 1+ 1 + ;
@ -1486,6 +1481,11 @@ do-stack 16 cells + do-sp !
( === Dump of data stack === )
\ ( -- n )
\ Number of elemtns in the stack
: depth sp0 sp@ - cell- cell / ;
: rdepth rp0 rp@ - cell / ;
: .s ( -- )
sp0 sp@ - cell- cell / ( depth of the stack )
'<' emit 0 u.r '>' emit space