Skip to content

Commit

Permalink
Add check for return value of hypercall MACPTR()
Browse files Browse the repository at this point in the history
  • Loading branch information
cnelson20 committed Mar 23, 2024
1 parent d693db1 commit 0597d66
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/hypercalls.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,12 @@ void hypercalls_update()

state6502.x = count & 0xff;
state6502.y = count >> 8;
state6502.status &= 0xfe; // clear C -> supported

if (s == -3) {
state6502.status |= 0x01; // set C -> unsupported
} else {
state6502.status &= 0xfe; // clear C -> supported
}

set_kernal_status(s);
return true;
Expand Down

0 comments on commit 0597d66

Please sign in to comment.