mirror of
https://github.com/hsoft/collapseos.git
synced 2024-11-05 23:40:56 +11:00
da371451cc
Now I struggle to remember why I ever did things they way I did. There must have been a reason...
7 lines
357 B
Plaintext
7 lines
357 B
Plaintext
STACK OVERFLOW PROTECTION: To avoid having to check for stack
|
|
underflow after each pop operation (which can end up being
|
|
prohibitive in terms of costs), PS_ADDR should be set to
|
|
at least 6 bytes before its actual limit. 6 bytes because we
|
|
seldom have words requiring more than 3 items from the stack.
|
|
Then, at each "exit" call we check for stack underflow.
|