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

[MD] Fix control port writes to always set command/address bits #173

Merged
merged 1 commit into from
Apr 8, 2021
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
8 changes: 4 additions & 4 deletions higan/md/vdp/io.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -151,17 +151,17 @@ auto VDP::writeControlPort(uint16 data) -> void {
return;
}

//command/address bits are always set here, even for register writes
io.command.bit(0,1) = data.bit(14,15);
io.address.bit(0,13) = data.bit(0,13);

//command write (hi)
if(data.bit(14,15) != 2) {
io.commandPending = true;

io.command.bit(0,1) = data.bit(14,15);
io.address.bit(0,13) = data.bit(0,13);
return;
}

//register write (d13 is ignored)
if(data.bit(14,15) == 2)
switch(data.bit(8,12)) {

//mode register 1
Expand Down