# HG changeset patch # User Mike Pavone # Date 1356855063 28800 # Node ID 0bdbffa9fe90c8eb4574250c1c4da13e06e8f7c6 # Parent 691e4b147cea3a63ca95f70100b17fcf35014eb6 Make version register return correct value for USA diff -r 691e4b147cea -r 0bdbffa9fe90 blastem.c --- a/blastem.c Sat Dec 29 23:40:30 2012 -0800 +++ b/blastem.c Sun Dec 30 00:11:03 2012 -0800 @@ -359,6 +359,12 @@ return context; } +#define USA 0x80 +#define JAP 0x00 +#define EUR 0xC0 +#define NO_DISK 0x20 +uint8_t version_reg = NO_DISK | USA; + m68k_context * io_read(uint32_t location, m68k_context * context) { if (location < 0x100) { @@ -367,7 +373,7 @@ case 0x0: //version bits should be 0 for now since we're not emulating TMSS //Not sure about the other bits - context->value = 0; + context->value = version_reg; break; case 0x1: io_data_read(&gamepad_1, context);