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.
This commit is contained in:
parent
cc4aa6c67c
commit
d7658d0ab2
|
|
@ -186,6 +186,7 @@ local function flash_prgrom(file, rom_size_KB, debug)
|
||||||
|
|
||||||
--select bank to flash
|
--select bank to flash
|
||||||
dict.nes("NES_CPU_WR", 0x5000, cur_bank)
|
dict.nes("NES_CPU_WR", 0x5000, cur_bank)
|
||||||
|
dict.nes("SET_CUR_BANK", cur_bank)
|
||||||
|
|
||||||
--program the entire bank's worth of data
|
--program the entire bank's worth of data
|
||||||
|
|
||||||
|
|
@ -207,6 +208,7 @@ local function flash_prgrom(file, rom_size_KB, debug)
|
||||||
|
|
||||||
if (true) then
|
if (true) then
|
||||||
readdata = dict.nes("NES_CPU_RD", base_addr+byte_num)
|
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
|
if readdata ~= data then
|
||||||
print("ERROR flashing byte number", byte_num, " in bank",cur_bank, " to flash ", data, readdata)
|
print("ERROR flashing byte number", byte_num, " in bank",cur_bank, " to flash ", data, readdata)
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue