1
0
mirror of https://github.com/TomHarte/CLK.git synced 2026-04-26 19:17:52 +00:00

Introduces Jeek816 test case.

This commit is contained in:
Thomas Harte
2020-10-12 21:43:44 -04:00
parent f529eadbec
commit 28da1a724a
4 changed files with 49 additions and 5 deletions
@@ -1036,8 +1036,9 @@ void ProcessorStorage::set_emulation_mode(bool enabled) {
if(emulation_flag_ == enabled) {
return;
}
emulation_flag_ = enabled;
if(emulation_flag_) {
if(enabled) {
set_m_x_flags(true, true);
x_.halves.high = y_.halves.high = 0;
e_masks_[0] = 0xff00;
@@ -1048,8 +1049,6 @@ void ProcessorStorage::set_emulation_mode(bool enabled) {
s_.halves.high = 1; // To pretend it was 1 all along; this implementation actually ignores
// the top byte while in emulation mode.
}
emulation_flag_ = enabled;
}
void ProcessorStorage::set_m_x_flags(bool m, bool x) {