Skip to content

Commit 5efb2a5

Browse files
Stop marking R0-R31 as needing interrupt checks (#64)
1 parent a3c0987 commit 5efb2a5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lua/wire/zvm/zvm_data.lua

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -444,8 +444,10 @@ ZVM.NeedInterruptCheck[38] = true
444444
ZVM.NeedInterruptCheck[39] = true
445445
ZVM.NeedInterruptCheck[40] = true
446446
ZVM.NeedInterruptCheck[41] = true
447+
-- Ports section
447448
for i=1000,2023 do ZVM.NeedInterruptCheck[i] = true end
448-
for i=2048,2207 do ZVM.NeedInterruptCheck[i] = true end
449+
-- Starts just after R31, so these ones past that are going to be the memory access modifiers.
450+
for i=2048+32,2207 do ZVM.NeedInterruptCheck[i] = true end
449451

450452
-- Register lookup table FIXME: add segments
451453
ZVM.NeedRegisterLookup = {}

0 commit comments

Comments
 (0)