Hi, I was trying my work-in-progress game in my emulators and it was running well (I use FCEUX, Jnes, Nintendulator and Nestopia), but then I needed extra 8K of RAM in order to use more variables and it just run in FCEUX and Jnes. In the rest of my emulators just got the grey screen and nothing else. I'd like to know if it is normal in some emulators or if I need to fix something in the code. I use C language. This is what I got in my nes.cfg file (just a part of it):
All I did is set the very last line of this code and changed the CHR size to $4000 in order to use 2 chr files.
Greetings ans thanks!
Code:
# First 28 bytes of the zero page are used by NES library
ZP: start = $28, size = $d8, type = rw, define = yes;
# INES Cartridge Header
HEADER: start = $0, size = $10, file = %O ,fill = yes;
# 2 16K ROM Banks
# - startup
# - code
# - rodata
# - data (load)
# NROM256
PRG: start = $8000, size = $7f00, file = %O ,fill = yes, define = yes;
# DPCM Samples at end of the ROM
# NROM256
DMC: start = $ff00, size = $fa, file = %O, fill = yes;
# Hardware Vectors at end of the ROM
# NROM256
VECTORS: start = $fffa, size = $6, file = %O, fill = yes;
# 1 8K CHR Bank
CHR: start = $0000, size = $4000, file = %O, fill = yes;
# standard 2K SRAM (-zeropage)
# $0100 famitone, palette, cpu stack
# $0200 oam buffer
# $0300..$800 ca65 stack
#RAM: start = $0300, size = $0500, define = yes;
# Use this definition instead if you going to use extra 8K RAM
RAM: start = $6000, size = $2000, define = yes;
ZP: start = $28, size = $d8, type = rw, define = yes;
# INES Cartridge Header
HEADER: start = $0, size = $10, file = %O ,fill = yes;
# 2 16K ROM Banks
# - startup
# - code
# - rodata
# - data (load)
# NROM256
PRG: start = $8000, size = $7f00, file = %O ,fill = yes, define = yes;
# DPCM Samples at end of the ROM
# NROM256
DMC: start = $ff00, size = $fa, file = %O, fill = yes;
# Hardware Vectors at end of the ROM
# NROM256
VECTORS: start = $fffa, size = $6, file = %O, fill = yes;
# 1 8K CHR Bank
CHR: start = $0000, size = $4000, file = %O, fill = yes;
# standard 2K SRAM (-zeropage)
# $0100 famitone, palette, cpu stack
# $0200 oam buffer
# $0300..$800 ca65 stack
#RAM: start = $0300, size = $0500, define = yes;
# Use this definition instead if you going to use extra 8K RAM
RAM: start = $6000, size = $2000, define = yes;
All I did is set the very last line of this code and changed the CHR size to $4000 in order to use 2 chr files.
Greetings ans thanks!