From 53ea778625c54d69208af718a8b199ce11b8296d Mon Sep 17 00:00:00 2001 From: DerelictDrone Date: Tue, 20 Aug 2024 15:19:14 -0500 Subject: [PATCH] Stop marking R0-R31 as needing interrupt checks --- 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 = {}