1
0
mirror of https://github.com/pevans/erc-c.git synced 2025-02-18 14:30:45 +00:00

Use bitwise OR, not AND, to add flags.

This was a copy-n-paste oops. I swear I know how bitwise AND and OR
works. Pinky swear!
This commit is contained in:
Peter Evans 2018-01-16 20:51:14 -06:00
parent 603ad7a036
commit 05e95d7798

View File

@ -204,7 +204,7 @@ SEGMENT_WRITER(apple2_mem_switch_write)
case 0xC005: case 0xC005:
apple2_set_memory_mode(mach, apple2_set_memory_mode(mach,
mach->memory_mode & MEMORY_WRITE_AUX); mach->memory_mode | MEMORY_WRITE_AUX);
break; break;
case 0xC004: case 0xC004:
@ -214,7 +214,7 @@ SEGMENT_WRITER(apple2_mem_switch_write)
case 0xC001: case 0xC001:
apple2_set_memory_mode(mach, apple2_set_memory_mode(mach,
mach->memory_mode & MEMORY_80STORE); mach->memory_mode | MEMORY_80STORE);
break; break;
case 0xC000: case 0xC000:
@ -224,7 +224,7 @@ SEGMENT_WRITER(apple2_mem_switch_write)
case 0xC055: case 0xC055:
apple2_set_memory_mode(mach, apple2_set_memory_mode(mach,
mach->memory_mode & MEMORY_PAGE2); mach->memory_mode | MEMORY_PAGE2);
break; break;
case 0xC054: case 0xC054:
@ -240,7 +240,7 @@ SEGMENT_WRITER(apple2_mem_switch_write)
case 0xC059: case 0xC059:
case 0xC057: case 0xC057:
apple2_set_memory_mode(mach, apple2_set_memory_mode(mach,
mach->memory_mode & MEMORY_HIRES); mach->memory_mode | MEMORY_HIRES);
break; break;
case 0xC056: case 0xC056: