Skip to content

Commit

Permalink
Use MEMRQ = 6 to signify interrupt handled write
Browse files Browse the repository at this point in the history
  • Loading branch information
DerelictDrone committed Aug 28, 2024
1 parent 5efb2a5 commit 1293d19
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lua/wire/zvm/zvm_features.lua
Original file line number Diff line number Diff line change
Expand Up @@ -312,9 +312,14 @@ function ZVM:WriteCell(Address,Value)
-- 2 - read interrupt requested
-- 3 - write interrupt requested
-- 4 - read interrupt handled
-- 5 - write interrupt handled
-- 5 - write address / value changed, write request is allowed
-- 6 - write request handled by interrupt, skip performing the write ourselves
-- Check if page is overriden
if Page.Override == 1 then
if self.MEMRQ == 6 then -- Skip performing the write ourselves, the interrupt did it for us.
self.MEMRQ = 0
return true
end
if self.MEMRQ == 5 then -- write IRQ handled, new address/value available
self.MEMRQ = 0
Address = self.MEMADDR
Expand Down

0 comments on commit 1293d19

Please sign in to comment.