From 9bf0461f41136f68c2367a4818d6617e36683e71 Mon Sep 17 00:00:00 2001 From: g012 Date: Thu, 28 Dec 2017 22:13:23 +0100 Subject: [PATCH] Fixed NROM missing variable. --- nes.l65 | 1 + 1 file changed, 1 insertion(+) diff --git a/nes.l65 b/nes.l65 index 1963ee2..5b4b021 100644 --- a/nes.l65 +++ b/nes.l65 @@ -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)