Fixing subtle bugs

This commit is contained in:
2026-01-27 13:40:52 +01:00
parent 574625735b
commit a3a39ea28e
8 changed files with 194 additions and 55 deletions

View File

@@ -742,6 +742,10 @@ impl Forth {
scope_stack.push(new_scope);
}
Op::ClearCmd => {
cmd.clear();
}
Op::EmitN => {
let n = stack.pop().ok_or("stack underflow")?.as_int()?;
if n < 0 {