summaryrefslogtreecommitdiff
path: root/rvcontroller.lua
diff options
context:
space:
mode:
authorcheapie <cheapiephp@gmail.com>2026-11-05 04:48:54 -0600
committercheapie <cheapiephp@gmail.com>2026-11-05 04:48:54 -0600
commit13ac03758bc70c1ec7529f07f9b13557cb1e60a7 (patch)
treef423631b421387fa59b3e7129c265bd17cc24961 /rvcontroller.lua
parent203798c72f10d003f16485b1ffb2758b9bcfa58c (diff)
downloadrvcontroller-13ac03758bc70c1ec7529f07f9b13557cb1e60a7.tar
rvcontroller-13ac03758bc70c1ec7529f07f9b13557cb1e60a7.tar.gz
rvcontroller-13ac03758bc70c1ec7529f07f9b13557cb1e60a7.tar.bz2
rvcontroller-13ac03758bc70c1ec7529f07f9b13557cb1e60a7.tar.xz
rvcontroller-13ac03758bc70c1ec7529f07f9b13557cb1e60a7.zip
More Zicfilp fixes
Diffstat (limited to 'rvcontroller.lua')
-rw-r--r--rvcontroller.lua6
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)