diff options
| -rw-r--r-- | rvcontroller.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/rvcontroller.lua b/rvcontroller.lua index d6381e2..6f97a32 100644 --- a/rvcontroller.lua +++ b/rvcontroller.lua @@ -2827,14 +2827,14 @@ local function run(limit) end first = false local instruction = readram(mem.registers.pc,4,true) - if mem.lpe and mem.mlpe then + if mem.elp and mem.mlpe then if instruction%2^12 == 0x017 and mem.registers.pc%4 == 0 and (math.floor(instruction/2^12) == math.floor(getreg(7)/2^12) or math.floor(instruction/2^12) == 0) then - mem.lpe = false + mem.elp = false else trap(18,2) end end - mem.lpe = mem.mlpe and checklpe(instruction) + mem.elp = mem.mlpe and checklpe(instruction) if instruction%4 == 3 or not mem.isa.c then if mem.registers.pc%4 ~= 0 and not mem.isa.c then local _,stop = trap(0) |
