Created
March 21, 2010 03:34
-
-
Save 7shi/339056 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- src/devices/dev_mc146818.c.orig | |
+++ src/devices/dev_mc146818.c | |
@@ -209,11 +209,13 @@ | |
* emulation. However, for Linux, commenting out this line | |
* works better. (TODO: Find a way to make both work?) | |
*/ | |
- d->reg[4 * MC_YEAR] += 80; | |
+ d->reg[4 * MC_YEAR] -= 20; | |
break; | |
+ case MC146818_ARC_JAZZ: | |
case MC146818_ARC_NEC: | |
d->reg[4 * MC_YEAR] += (0x18 - 104); | |
break; | |
+ case MC146818_PC_CMOS: | |
case MC146818_CATS: | |
d->reg[4 * MC_YEAR] %= 100; | |
break; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment