summaryrefslogtreecommitdiff
path: root/blastem.c
diff options
context:
space:
mode:
authorMike Pavone <pavone@retrodev.com>2012-12-30 00:11:03 -0800
committerMike Pavone <pavone@retrodev.com>2012-12-30 00:11:03 -0800
commit6260a5271ccac01f19f9cc6c6a0ac8452f83362a (patch)
tree8b8f4076d687253356479ba2b9fdc9c9978f97c3 /blastem.c
parent31682de781d37f08a023710c1cb79ddc6a751ff1 (diff)
Make version register return correct value for USA
Diffstat (limited to 'blastem.c')
-rw-r--r--blastem.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/blastem.c b/blastem.c
index 4f3ae6d..b5453b4 100644
--- a/blastem.c
+++ b/blastem.c
@@ -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);