few missing changes for NESmaker support of older firmware from previous

commit.
This commit is contained in:
Paul XPS 2019-02-07 23:37:38 -06:00
parent 20cf2a81e5
commit 2a82101fa8
2 changed files with 8 additions and 4 deletions

View File

@ -402,7 +402,7 @@ local function is_old_firmware( debug )
if debug then
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
@ -458,9 +458,9 @@ local function process(process_opts, console_opts)
if not rv then return end
--test CHR-RAM
rv = exercise_chrram()
--rv = exercise_chrram()
--exit script if test fails
if not rv then return end
--if not rv then return end
--test software mirroring switch
--rv = test_soft_mir_switch()

View File

@ -72,6 +72,8 @@
//but A13 and /A13 get set once based on provided address.
#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
//=============================================================================================
@ -88,7 +90,8 @@
#define NES_PPU_RD 0x82 //RL=3
//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:
// #define MIR_1SCNA 0x10
// #define MIR_1SCNB 0x11
@ -99,5 +102,6 @@
#define GET_CUR_BANK 0x85 //RL=3
#define GET_BANK_TABLE 0x86 //RL=4 16bit value so 2 bytes need returned
#define GET_NUM_PRG_BANKS 0x87 //RL=3
#endif