Skip to content

Commit

Permalink
Use MEMRQ = 6 to signify interrupt handled write (#67)
Browse files Browse the repository at this point in the history
  • Loading branch information
DerelictDrone authored Sep 6, 2024
1 parent 7adeecf commit ce0555a
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 @@ -318,9 +318,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 ce0555a

Please sign in to comment.