1
0
mirror of https://github.com/cc65/cc65.git synced 2024-06-08 15: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 Converted the Atmos configuration to the new constructor segment model. 2016-03-18 11:28:56 -04:00
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 Made _afailed() and uncompress() be fastcall functions. 2015-03-13 07:35:47 -04:00
em Changed multi-line C comments into another style. 2014-06-30 16:51:07 -04:00
gamate Introduced internal gotoxy that pops both parameters. 2016-06-05 14:58:38 +02:00
geos-apple directory structure changed from driver-centric to target-centric 2016-05-16 19:49:43 +02:00
geos-cbm Create static drivers directly from source files. 2014-06-04 23:50:18 +02:00
geos-common Introduced internal gotoxy that pops both parameters. 2016-06-05 14:58:38 +02:00
joystick added compiler/assembler target, lib compiles 2014-11-29 15:35:20 +01:00
lynx Changed __BLOCKSIZE__ to __BANK0BLOCKSIZE__. 2016-09-11 22:26:52 +02:00
mouse Changed multi-line C comments into another style. 2014-06-30 16:51:07 -04:00
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 Renamed INITBSS to INIT and INIT to ONCE. 2016-03-06 21:27:19 +01:00
serial Changed multi-line C comments into another style. 2014-06-30 16:51:07 -04:00
sim6502 Renamed RAM to MAIN for all disk based targets. 2016-03-07 01:28:55 +01:00
supervision Don't presume the stack size to be a multiple of pages. 2016-03-10 10:07:09 +01:00
tgi Changed multi-line C comments into another style. 2014-06-30 16:51:07 -04:00
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 samples zip and install targets moved into samples/Makefile as agreed 2016-05-30 17:42:01 +02:00