diff options
author | Mike Pavone <pavone@retrodev.com> | 2012-12-30 00:11:03 -0800 |
---|---|---|
committer | Mike Pavone <pavone@retrodev.com> | 2012-12-30 00:11:03 -0800 |
commit | 6260a5271ccac01f19f9cc6c6a0ac8452f83362a (patch) | |
tree | 8b8f4076d687253356479ba2b9fdc9c9978f97c3 | |
parent | 31682de781d37f08a023710c1cb79ddc6a751ff1 (diff) |
Make version register return correct value for USA
-rw-r--r-- | blastem.c | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -359,6 +359,12 @@ m68k_context * io_write_w(uint32_t location, m68k_context * context, uint16_t va 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 @@ m68k_context * io_read(uint32_t location, m68k_context * context) 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); |