Build for 65C02.

This commit is contained in:
Lawrence Kesteloot 2018-08-05 23:25:38 -07:00
parent af7c5b440f
commit 7e28d224bf
2 changed files with 8 additions and 3 deletions

View File

@ -7,7 +7,7 @@ endif
CC65 ?= $(TREES)/cc65/bin
APPLE2E ?= $(TREES)/apple2e/apple2e
CPU = 6502
CPU = 65C02
ROM = apple2a.rom
LIB = apple2rom.lib
@ -16,9 +16,14 @@ CC65_FLAGS = -t none --cpu $(CPU) --register-vars
$(ROM): a.out
(dd count=5 bs=4096 if=/dev/zero 2> /dev/null; cat a.out) > $(ROM)
.PHONY: run
run: $(ROM)
$(APPLE2E) -mute -map main.map $(ROM)
.PHONY: debug
debug: $(ROM)
lldb -- $(APPLE2E) -mute -map main.map $(ROM)
a.out: main.o interrupt.o vectors.o exporter.o platform.o runtime.o apple2rom.cfg $(LIB)
$(CC65)/ld65 -C apple2rom.cfg -m main.map --dbgfile main.dbg interrupt.o vectors.o exporter.o platform.o runtime.o main.o $(LIB)
awk -f rom_usage.awk < main.map

View File

@ -7,11 +7,11 @@ Runs between 5 and 30 times faster.
Supported features: The classic way to enter programs with
line numbers, 16-bit integer variables, `HOME`, `PRINT`, `IF/THEN`,
`FOR/NEXT`, `GOTO`, low-res graphics (`GR`, `PLOT`, `COLOR=`, `TEXT`),
`DIM` (arrays), `POKE`, and integer and boolean arithmetic.
`DIM` (single-dimensional arrays), `POKE`, and integer and boolean arithmetic.
Not supported: Floating point, strings,
high-res graphics, `DATA/READ/RESUME`, `GOSUB/RETURN/POP`,
`REM`, keyboard input, exponentiation (`A^B`), and cassette I/O.
`REM`, multi-dimensional arrays, keyboard input, exponentiation (`A^B`), and cassette I/O.
# Dependencies