mirror of
https://github.com/bradgrantham/apple2a.git
synced 2025-02-17 04:30:32 +00:00
Build for 65C02.
This commit is contained in:
parent
af7c5b440f
commit
7e28d224bf
7
Makefile
7
Makefile
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user