few missing changes for NESmaker support of older firmware from previous
commit.
This commit is contained in:
parent
20cf2a81e5
commit
2a82101fa8
|
|
@ -402,7 +402,7 @@ local function is_old_firmware( debug )
|
||||||
|
|
||||||
if debug then
|
if debug then
|
||||||
if rv then print("old firmware sensed, running legacy mode")
|
if rv then print("old firmware sensed, running legacy mode")
|
||||||
else print("later firmware sensed, running default scripts")
|
else print("later firmware sensed, running current script")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
@ -458,9 +458,9 @@ local function process(process_opts, console_opts)
|
||||||
if not rv then return end
|
if not rv then return end
|
||||||
|
|
||||||
--test CHR-RAM
|
--test CHR-RAM
|
||||||
rv = exercise_chrram()
|
--rv = exercise_chrram()
|
||||||
--exit script if test fails
|
--exit script if test fails
|
||||||
if not rv then return end
|
--if not rv then return end
|
||||||
|
|
||||||
--test software mirroring switch
|
--test software mirroring switch
|
||||||
--rv = test_soft_mir_switch()
|
--rv = test_soft_mir_switch()
|
||||||
|
|
|
||||||
|
|
@ -72,6 +72,8 @@
|
||||||
//but A13 and /A13 get set once based on provided address.
|
//but A13 and /A13 get set once based on provided address.
|
||||||
#define PPU_PAGE_WR_LFSR 0x23
|
#define PPU_PAGE_WR_LFSR 0x23
|
||||||
|
|
||||||
|
#define SET_NUM_PRG_BANKS 0x24 //used for determining banktable structure for mapper 11 and such
|
||||||
|
|
||||||
//=============================================================================================
|
//=============================================================================================
|
||||||
// OPCODES WITH OPERAND AND RETURN VALUE plus SUCCESS/ERROR_CODE
|
// OPCODES WITH OPERAND AND RETURN VALUE plus SUCCESS/ERROR_CODE
|
||||||
//=============================================================================================
|
//=============================================================================================
|
||||||
|
|
@ -88,7 +90,8 @@
|
||||||
#define NES_PPU_RD 0x82 //RL=3
|
#define NES_PPU_RD 0x82 //RL=3
|
||||||
|
|
||||||
//doesn't have operands just returns sensed CIRAM A10 mirroring
|
//doesn't have operands just returns sensed CIRAM A10 mirroring
|
||||||
//#define CIRAM_A10_MIRROR 0x83 //RL=3
|
//now used to detect old firmware versions so NESmaker folks don't have to update firmware
|
||||||
|
#define CIRAM_A10_MIRROR 0x83 //RL=3
|
||||||
////returns VERT/HORIZ/1SCNA/1SCNB values:
|
////returns VERT/HORIZ/1SCNA/1SCNB values:
|
||||||
// #define MIR_1SCNA 0x10
|
// #define MIR_1SCNA 0x10
|
||||||
// #define MIR_1SCNB 0x11
|
// #define MIR_1SCNB 0x11
|
||||||
|
|
@ -99,5 +102,6 @@
|
||||||
|
|
||||||
#define GET_CUR_BANK 0x85 //RL=3
|
#define GET_CUR_BANK 0x85 //RL=3
|
||||||
#define GET_BANK_TABLE 0x86 //RL=4 16bit value so 2 bytes need returned
|
#define GET_BANK_TABLE 0x86 //RL=4 16bit value so 2 bytes need returned
|
||||||
|
#define GET_NUM_PRG_BANKS 0x87 //RL=3
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue