Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use MEMRQ = 6 to signify interrupt handled write #67

Merged
merged 1 commit into from
Sep 6, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading