Fixed NROM missing variable.

This commit is contained in:
g012 2017-12-28 22:13:23 +01:00
parent d539f9c194
commit 9bf0461f41
1 changed files with 1 additions and 0 deletions

View File

@ -322,6 +322,7 @@ mappers.NROM = function(t)
prgrom = prgrom0
section{"vectors", org=0xfffa} dc.w nmi, main, irq
if (t.chrsize > 0) then
local ci = 0
local chrmap = t.chrmap or function(ci) return ci*0x1000, 0x1000, (ci&1)*0x1000 end
repeat
local off, sz, rorg = chrmap(ci)