Monitor: Z-80 assembler (ASM "file", A addr)
Two-pass table-driven assembler in the monitor: assembles BASIC-saved source files from the file system, or one line at a time with A addr. Labels, EQU/ORG/DB/DW/DS/END, expressions. Table generated from the disassembler (tools/gen-asmtab.py); round-trip and sdasz80 tests, plus a Z-80 build run in z80emu. Monitor RAM grows to 6000-7FFF for the symbol table. Works around an SDCC 4.5 inline strcpy bug with s_copy(). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
88b5942da5
commit
fe1daf180d
16 files changed
+14320
-13257
No files matched your search
+2
-2
@@ -1,5 +1,5 @@
|
||||
;; Monitor start-up. The monitor's bank holds ROM at 0000-6FFF and RAM at
|
||||
;; 7000-7FFF. It is entered through the trampoline at 0066h (shared with
|
||||
;; Monitor start-up. The monitor's bank holds ROM at 0000-5FFF and RAM at
|
||||
;; 6000-7FFF. It is entered through the trampoline at 0066h (shared with
|
||||
;; BASIC) with the program's AF and PC pushed on the program's stack.
|
||||
.module crt0
|
||||
.globl _mon_main
|
||||
|
||||
Reference in new issue
Block a user