From 6260a5271ccac01f19f9cc6c6a0ac8452f83362a Mon Sep 17 00:00:00 2001 From: Mike Pavone Date: Sun, 30 Dec 2012 00:11:03 -0800 Subject: Make version register return correct value for USA --- blastem.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'blastem.c') 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); -- cgit v1.2.3