]> git.sur5r.net Git - cc65/commit
Added 'sim6502' and 'sim65C02' targets.
authorOliver Schmidt <ol.sc@web.de>
Mon, 20 May 2013 18:35:42 +0000 (20:35 +0200)
committerOliver Schmidt <ol.sc@web.de>
Mon, 20 May 2013 18:35:42 +0000 (20:35 +0200)
commit55f9e6ac2555d31517bf96d5d910161b329735a7
treefc603471e312bce30208f31d8c2c5b084f6ac93f
parent3a028fb6219f46dec01e9e00fd70e89df699ed58
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.
13 files changed:
cfg/sim6502.cfg [new file with mode: 0644]
cfg/sim65c02.cfg [new file with mode: 0644]
libsrc/Makefile
libsrc/dbg/dbg.c
libsrc/sim6502/crt0.s [new file with mode: 0644]
libsrc/sim6502/ctype.s [new file with mode: 0644]
libsrc/sim6502/errno.s [new file with mode: 0644]
libsrc/sim6502/exehdr.s [new file with mode: 0644]
libsrc/sim6502/paravirt.s [new file with mode: 0644]
src/ca65/main.c
src/cc65/main.c
src/common/target.c
src/common/target.h