1
0
mirror of https://github.com/cc65/cc65.git synced 2024-12-23 19:29:37 +00:00
cc65/libsrc
Marshall Ward 09495519c0 NES memory map amend (16k prg, 8k chr default)
The configuration file and runtime (crt0.s) provided for the default NES
ROM layout (2x16k PRG, 8k CHR) incorrectly added interrupts (IRQ1, IRQ2,
TIMERIRQ) which are not supported by the NES hardware.  For example, see
the NESdev wiki, which makes no reference to these interrupts.

    https://wiki.nesdev.com/w/index.php/CPU_memory_map

The VECTORS region was also incorrectly set to 0xFFF6, which would have
left the 0xFFF4 normally unspecified.  This did not result in any error,
however, since cc65 simply placed ROMV directly after ROM0 regardless of
start address.

(This layout may be due to a copy-and-paste from the PC-Engine
configuration, whose interrupt registers start at 0xFFF6, begins with
the three interrupts listed above, followed by NMI and START, and does
not end with a final IRQ interrupt.)

Despite the absence of any actual error, since START is still placed at
0xFFFC, this patch removes the nonexistent interrupts and also correctly
aligns the ROM0 and ROMV regions.  It also has the (admittedly very
minor) benefit of freeing up 6 additional bytes for ROM0.
2016-12-24 08:32:54 +11:00
..
apple2 Added CONIO cursor support. 2016-06-19 15:03:20 +02:00
atari Atari: fix lookup of default device on XDOS. 2016-09-12 23:40:25 +02:00
atari5200 Introduced internal gotoxy that pops both parameters. 2016-06-05 14:58:38 +02:00
atmos
c16 Introduced internal gotoxy that pops both parameters. 2016-06-05 14:58:38 +02:00
c64 Introduced internal gotoxy that pops both parameters. 2016-06-05 14:58:38 +02:00
c128 Introduced internal gotoxy that pops both parameters. 2016-06-05 14:58:38 +02:00
cbm Added C-code interfaces for the CBM Kernal functions SCNKEY and UDTIM. 2016-08-07 15:50:10 -04:00
cbm510 Introduced internal gotoxy that pops both parameters. 2016-06-05 14:58:38 +02:00
cbm610 Introduced internal gotoxy that pops both parameters. 2016-06-05 14:58:38 +02:00
common added 4510 cpu detection to getcpu.s 2016-09-07 19:44:11 +02:00
conio Introduced internal gotoxy that pops both parameters. 2016-06-05 14:58:38 +02:00
dbg
em
gamate Introduced internal gotoxy that pops both parameters. 2016-06-05 14:58:38 +02:00
geos-apple
geos-cbm
geos-common Introduced internal gotoxy that pops both parameters. 2016-06-05 14:58:38 +02:00
joystick
lynx Changed __BLOCKSIZE__ to __BANK0BLOCKSIZE__. 2016-09-11 22:26:52 +02:00
mouse
nes NES memory map amend (16k prg, 8k chr default) 2016-12-24 08:32:54 +11:00
osic1p Introduced internal gotoxy that pops both parameters. 2016-06-05 14:58:38 +02:00
pce Introduced internal gotoxy that pops both parameters. 2016-06-05 14:58:38 +02:00
pet Introduced internal gotoxy that pops both parameters. 2016-06-05 14:58:38 +02:00
plus4 Added C-code interfaces for the CBM Kernal functions SCNKEY and UDTIM. 2016-08-07 15:50:10 -04:00
runtime
serial
sim6502
supervision
tgi
vic20 Introduced internal gotoxy that pops both parameters. 2016-06-05 14:58:38 +02:00
zlib Used more mundane addressing in some of the instructions in "zlib/inflatemem.s". 2016-07-19 10:42:49 -04:00
Makefile