Mercurial > repos > blastem
comparison blastem.c @ 130:0bdbffa9fe90
Make version register return correct value for USA
author | Mike Pavone <pavone@retrodev.com> |
---|---|
date | Sun, 30 Dec 2012 00:11:03 -0800 |
parents | 11d72e471104 |
children | 0e7e1ccc0a81 |
comparison
equal
deleted
inserted
replaced
129:691e4b147cea | 130:0bdbffa9fe90 |
---|---|
357 } | 357 } |
358 } | 358 } |
359 return context; | 359 return context; |
360 } | 360 } |
361 | 361 |
362 #define USA 0x80 | |
363 #define JAP 0x00 | |
364 #define EUR 0xC0 | |
365 #define NO_DISK 0x20 | |
366 uint8_t version_reg = NO_DISK | USA; | |
367 | |
362 m68k_context * io_read(uint32_t location, m68k_context * context) | 368 m68k_context * io_read(uint32_t location, m68k_context * context) |
363 { | 369 { |
364 if (location < 0x100) { | 370 if (location < 0x100) { |
365 switch(location/2) | 371 switch(location/2) |
366 { | 372 { |
367 case 0x0: | 373 case 0x0: |
368 //version bits should be 0 for now since we're not emulating TMSS | 374 //version bits should be 0 for now since we're not emulating TMSS |
369 //Not sure about the other bits | 375 //Not sure about the other bits |
370 context->value = 0; | 376 context->value = version_reg; |
371 break; | 377 break; |
372 case 0x1: | 378 case 0x1: |
373 io_data_read(&gamepad_1, context); | 379 io_data_read(&gamepad_1, context); |
374 break; | 380 break; |
375 case 0x2: | 381 case 0x2: |