# compile into 3 things: binary, symbolic information and debug support
rrqforth: rrqforth.asm
- fasm $^ -s $< > $@.fas
+ fasm $< -s $@.fas
+ ./fas2txt.lsp $@.fas > $@.map
chmod a+x $@
- ./symbols.lsp $@.fas > $@.dbg
+
clean:
- rm -f rrqforth{,.fas,.dbg}
+ rm -f rrqforth{,.fas,.map}
push rax+1
next
-include 'wordlists.fasm'
-include 'syscalls.fasm'
-include 'memory.fasm'
-include 'stack.fasm'
-include 'math.fasm'
-include 'stdio.fasm'
+include 'wordlists.asm'
+include 'syscalls.asm'
+include 'memory.asm'
+include 'stack.asm'
+include 'math.asm'
+include 'stdio.asm'
WORD p_program_version,'PROGRAM_VERSION',dostring
db length