Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
14
Task/Stack-traces/Forth/stack-traces.fth
Normal file
14
Task/Stack-traces/Forth/stack-traces.fth
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
[UNDEFINED] R.S [IF]
|
||||
\ Return stack counterpart of DEPTH
|
||||
\ Note the STACK-CELLS correction is there to hide RDEPTH itself
|
||||
( -- n)
|
||||
: RDEPTH STACK-CELLS -2 [+] CELLS RP@ - ;
|
||||
|
||||
\ Return stack counterpart of .S
|
||||
\ Note the : R.S R> .. >R ; sequence is there to hide R.S itself
|
||||
( --)
|
||||
: R.S R> CR RDEPTH DUP 0> IF DUP
|
||||
BEGIN DUP WHILE R> -ROT 1- REPEAT DROP DUP
|
||||
BEGIN DUP WHILE ROT DUP . >R 1- REPEAT DROP
|
||||
THEN ." (TORS) " DROP >R ;
|
||||
[THEN]
|
||||
Loading…
Add table
Add a link
Reference in a new issue