mirror of
https://github.com/TomHarte/CLK.git
synced 2024-11-30 04:50:08 +00:00
Took a first stab at high-res support.
This commit is contained in:
parent
acfd4dde36
commit
cb105fdeb4
@ -109,9 +109,11 @@ int Machine::perform_machine_cycle(const CPU::Z80::PartialMachineCycle &cycle) {
|
|||||||
}
|
}
|
||||||
if(latched_video_byte_) {
|
if(latched_video_byte_) {
|
||||||
size_t char_address = (size_t)((address & 0xff00) | ((latched_video_byte_ & 0x3f) << 3) | line_counter_);
|
size_t char_address = (size_t)((address & 0xff00) | ((latched_video_byte_ & 0x3f) << 3) | line_counter_);
|
||||||
|
uint8_t mask = (latched_video_byte_ & 0x80) ? 0x00 : 0xff;
|
||||||
if(char_address < ram_base_) {
|
if(char_address < ram_base_) {
|
||||||
uint8_t mask = (latched_video_byte_ & 0x80) ? 0x00 : 0xff;
|
|
||||||
latched_video_byte_ = rom_[char_address & rom_mask_] ^ mask;
|
latched_video_byte_ = rom_[char_address & rom_mask_] ^ mask;
|
||||||
|
} else {
|
||||||
|
latched_video_byte_ = ram_[address & ram_mask_] ^ mask;
|
||||||
}
|
}
|
||||||
|
|
||||||
video_->output_byte(latched_video_byte_);
|
video_->output_byte(latched_video_byte_);
|
||||||
|
@ -68,13 +68,14 @@
|
|||||||
</AdditionalOptions>
|
</AdditionalOptions>
|
||||||
</TestAction>
|
</TestAction>
|
||||||
<LaunchAction
|
<LaunchAction
|
||||||
buildConfiguration = "Release"
|
buildConfiguration = "Debug"
|
||||||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
||||||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
||||||
launchStyle = "0"
|
launchStyle = "0"
|
||||||
useCustomWorkingDirectory = "NO"
|
useCustomWorkingDirectory = "NO"
|
||||||
ignoresPersistentStateOnLaunch = "NO"
|
ignoresPersistentStateOnLaunch = "NO"
|
||||||
debugDocumentVersioning = "YES"
|
debugDocumentVersioning = "YES"
|
||||||
|
enableAddressSanitizer = "YES"
|
||||||
debugServiceExtension = "internal"
|
debugServiceExtension = "internal"
|
||||||
allowLocationSimulation = "NO">
|
allowLocationSimulation = "NO">
|
||||||
<BuildableProductRunnable
|
<BuildableProductRunnable
|
||||||
|
Loading…
Reference in New Issue
Block a user