From 5efb2a5e0ec60309c5e42c82e3d498ef6315cdd9 Mon Sep 17 00:00:00 2001 From: DerelictDrone <57756830+DerelictDrone@users.noreply.github.com> Date: Mon, 26 Aug 2024 03:04:38 -0500 Subject: [PATCH] Stop marking R0-R31 as needing interrupt checks (#64) --- lua/wire/zvm/zvm_data.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lua/wire/zvm/zvm_data.lua b/lua/wire/zvm/zvm_data.lua index 8698fa0..36a7171 100644 --- a/lua/wire/zvm/zvm_data.lua +++ b/lua/wire/zvm/zvm_data.lua @@ -444,8 +444,10 @@ ZVM.NeedInterruptCheck[38] = true ZVM.NeedInterruptCheck[39] = true ZVM.NeedInterruptCheck[40] = true ZVM.NeedInterruptCheck[41] = true +-- Ports section for i=1000,2023 do ZVM.NeedInterruptCheck[i] = true end -for i=2048,2207 do ZVM.NeedInterruptCheck[i] = true end +-- Starts just after R31, so these ones past that are going to be the memory access modifiers. +for i=2048+32,2207 do ZVM.NeedInterruptCheck[i] = true end -- Register lookup table FIXME: add segments ZVM.NeedRegisterLookup = {}