]> Shamusworld >> Repos - virtualjaguar/blobdiff - src/jerry.cpp
Various fixes for GPU/DSP DIV instruction, fixes for joypad handling.
[virtualjaguar] / src / jerry.cpp
index 9ff7ac6af141faeb92409025c5193051aa9ec8ee..3237d7bd16ca461492a090788725cf89b789dcc4 100644 (file)
@@ -435,7 +435,8 @@ WriteLog("JERRY: Unhandled timer read (BYTE) at %08X...\n", offset);
 //     else if (offset >= 0xF17C00 && offset <= 0xF17C01)
 //             return anajoy_byte_read(offset);
        else if (offset >= 0xF14000 && offset <= 0xF14003)
-               return JoystickReadByte(offset) | EepromReadByte(offset);
+//             return JoystickReadByte(offset) | EepromReadByte(offset);
+               return JoystickReadWord(offset & 0xFE) | EepromReadByte(offset);
        else if (offset >= 0xF14000 && offset <= 0xF1A0FF)
                return EepromReadByte(offset);
 
@@ -568,7 +569,8 @@ WriteLog("JERRY: Unhandled timer write (BYTE) at %08X...\n", offset);
        }*/
        else if ((offset >= 0xF14000) && (offset <= 0xF14003))
        {
-               JoystickWriteByte(offset, data);
+//             JoystickWriteByte(offset, data);
+               JoystickWriteWord(offset & 0xFE, (uint16_t)data);
                EepromWriteByte(offset, data);
                return;
        }