mirror of
https://github.com/cc65/cc65.git
synced 2025-02-02 00:35:32 +00:00
55f9e6ac25
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.
14 lines
332 B
ArmAsm
14 lines
332 B
ArmAsm
;
|
|
; Oliver Schmidt, 2013-05-16
|
|
;
|
|
; This module supplies a 1 byte header identifying the simulator type
|
|
;
|
|
|
|
.export __EXEHDR__ : absolute = 1 ; Linker referenced
|
|
|
|
; ------------------------------------------------------------------------
|
|
|
|
.segment "EXEHDR"
|
|
|
|
.byte .defined(__SIM65C02__)
|