some new words
[rrq/rrqforth.git] / rrqforth.asm
index 894e4b440bcb5e2d890020dd87a2577e7890aa9d..5187c902a06c7a202b08a4292bb98482d2a897e6 100644 (file)
@@ -133,7 +133,12 @@ previous_word = 0
        pop rax
        jmp qword [rax]         ; goto code of that FORTH word (64 bit jump)
        
-       WORD p_exit, 'EXIT',fasm
+       WORD p_sysexit, 'EXIT',
+       ;; ( v -- )
+       ;; Terminate RRQFORTH with error code
+       dq sys_exit
+
+       WORD p_return, 'RETURN',fasm
        ;; ( -- ) ( R: addr -- )
        ;; Returns execution to the calling definition as per the
        ;; return stack.