From d7658d0ab224516400377105696b515e009134cb Mon Sep 17 00:00:00 2001 From: Paul Desktop ASUS-C7H Date: Thu, 19 Sep 2019 10:00:57 -0500 Subject: [PATCH] GTROM fix, forgot about adding (prob unnecessary) cur_bank write to the firmware flash routine and neglected to commit my local copy of gtrom.lua which was needed for that change. --- host/scripts/nes/gtrom.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/host/scripts/nes/gtrom.lua b/host/scripts/nes/gtrom.lua index ffa8fb4..304f7fd 100644 --- a/host/scripts/nes/gtrom.lua +++ b/host/scripts/nes/gtrom.lua @@ -186,6 +186,7 @@ local function flash_prgrom(file, rom_size_KB, debug) --select bank to flash dict.nes("NES_CPU_WR", 0x5000, cur_bank) + dict.nes("SET_CUR_BANK", cur_bank) --program the entire bank's worth of data @@ -207,6 +208,7 @@ local function flash_prgrom(file, rom_size_KB, debug) if (true) then readdata = dict.nes("NES_CPU_RD", base_addr+byte_num) + -- print("flashed byte number", byte_num, " in bank",cur_bank, " to flash ", data, readdata) if readdata ~= data then print("ERROR flashing byte number", byte_num, " in bank",cur_bank, " to flash ", data, readdata) end