Make thrown value match standards.

This commit is contained in:
Brad Nelson
2023-01-22 12:16:57 -08:00
parent f82e423fb4
commit cfd70d6712

View File

@ -100,8 +100,8 @@ create input-buffer input-limit allot
( Stack Guards ) ( Stack Guards )
sp0 'stack-cells @ 2 3 */ cells + constant sp-limit sp0 'stack-cells @ 2 3 */ cells + constant sp-limit
: ?stack sp@ sp0 < if ." STACK UNDERFLOW " -1 throw then : ?stack sp@ sp0 < if ." STACK UNDERFLOW " -4 throw then
sp-limit sp@ < if ." STACK OVERFLOW " -1 throw then ; sp-limit sp@ < if ." STACK OVERFLOW " -3 throw then ;
( REPL ) ( REPL )
: prompt ." ok" cr ; : prompt ." ok" cr ;