Added 'sim6502' and 'sim65C02' targets.

The targets allow to run cc65 programs in the sim65 exection
einvironment. As there are no "real" i/o facilities there's no
need for header files. Paravirtualized entry points are mapped
to $FFF0 ff. There's a large cc65 progam area from $0200-$FFEF.

The binary format includes a one-byte header indicating the required
execution environment: The value 0 means 6502 and the value 1
means 65C02. The load adress for the binary is fixed to $0200.

Note: Running sim65C02 programs currently doesn't work bcause
sim65 doesn't actually implement 65C02 opcodes.
This commit is contained in:
Oliver Schmidt
2013-05-20 20:35:42 +02:00
parent 3a028fb621
commit 55f9e6ac25
13 changed files with 331 additions and 1 deletions

View File

@@ -18,6 +18,8 @@ TARGETS = apple2 \
$(GEOS) \
lynx \
nes \
sim6502 \
sim65c02 \
supervision
DRVTYPES = emd \
@@ -94,6 +96,8 @@ ifeq ($(TARGET),apple2enh)
OBJPFX = a2
DRVPFX = a2e
SRCDIR = apple2
else ifeq ($(TARGET),sim65c02)
SRCDIR = sim6502
else
SRCDIR = $(TARGET)
endif