Skip to content

Instantly share code, notes, and snippets.

@7shi
Created March 21, 2010 03:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 7shi/339056 to your computer and use it in GitHub Desktop.
Save 7shi/339056 to your computer and use it in GitHub Desktop.
--- 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