include 'stack.asm'
include 'math.asm'
include 'stdio.asm'
+include 'compile.asm'
WORD p_program_version,'PROGRAM_VERSION',dostring
STRING 'RRQ Forth version 0.1 - 2021-05-13',10
pop qword [p_stdin_DFA]
;; Initial blurb
- push qword 1 ; stdout
- DOFORTH p_program_version ; version string => ( s n )
- DOFORTH sys_write ; printout
- pop rax ; ignore errors
-
- DOFORTH p_words
+ FORTH
+ dq p_program_version
+ dq p_tell
+ dq p_stdin
+ dq p_read_word
+ dq p_tell
+ dq p_nl
+ dq p_emit
+ ENDFORTH
+
+ ;; DOFORTH p_words
push 0
DOFORTH sys_exit
last_word:
heap_start:
+ rb 1048576 ; +1 Mb heap
+ rb 1048576 ; +1 Mb heap
+ rb 1048576 ; +1 Mb heap