Add nes.lib for GBDK installation

* Add crt0 for NES with NMI handler performing OAM DMA, palette update and VRAM transfers via a transfer buffer at bottom of stack
* Add trivial definition of crlf in crlf.c
* Add "nes" to PLATFORMS in top-level Makefile and gbdk-lib/libc/Makefile
* Add gbdk-lib/include/nes/hardware.h and gbdk-lib/include/nes/nes.h, with hardware registers and platform function prototypes
* Update gbdk-lib/include/gbdk/platform.h to include nes/nes.h
* Update Makefiles to build nes.lib
This commit is contained in:
MichelIwaniec
2022-06-08 16:01:20 +01:00
parent fa36db9268
commit 694da68aed
9 changed files with 1663 additions and 2 deletions

View File

@@ -11,7 +11,7 @@ PKG = gbdk
VER = 4.0.6
PORTS=sm83 z80 mos6502
PLATFORMS=gb ap duck gg sms msxdos
PLATFORMS=gb ap duck gg sms msxdos nes
# Prefix to add to the standard tools. Usefull for a standard gcc
# cross-compile.