mirror of
https://github.com/TomHarte/CLK.git
synced 2025-01-13 07:30:21 +00:00
This also can just use rom_mask_
.
This commit is contained in:
parent
6b602c74b7
commit
6913c7a018
@ -97,7 +97,7 @@ int Machine::perform_machine_cycle(const CPU::Z80::MachineCycle &cycle) {
|
||||
size_t char_address = (size_t)((refresh & 0xff00) | ((value & 0x3f) << 3) | line_counter_);
|
||||
if((char_address & 0xc000) == 0x0000) {
|
||||
uint8_t mask = (value & 0x80) ? 0x00 : 0xff;
|
||||
value = rom_[char_address & (rom_.size() - 1)] ^ mask;
|
||||
value = rom_[char_address & rom_mask_] ^ mask;
|
||||
}
|
||||
|
||||
video_->output_byte(value);
|
||||
|
Loading…
x
Reference in New Issue
Block a user