mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2024-11-14 21:37:42 -07:00
implement 8bit reads to the joypad ports
This commit is contained in:
parent
bdac2467e7
commit
8fd1124117
@ -1284,6 +1284,9 @@ u8 ARM9IORead8(u32 addr)
|
|||||||
{
|
{
|
||||||
switch (addr)
|
switch (addr)
|
||||||
{
|
{
|
||||||
|
case 0x04000130: return KeyInput & 0xFF;
|
||||||
|
case 0x04000131: return (KeyInput >> 8) & 0xFF;
|
||||||
|
|
||||||
case 0x040001A2: return NDSCart::ReadSPIData();
|
case 0x040001A2: return NDSCart::ReadSPIData();
|
||||||
|
|
||||||
case 0x040001A8: return NDSCart::ROMCommand[0];
|
case 0x040001A8: return NDSCart::ROMCommand[0];
|
||||||
@ -1883,6 +1886,11 @@ u8 ARM7IORead8(u32 addr)
|
|||||||
{
|
{
|
||||||
switch (addr)
|
switch (addr)
|
||||||
{
|
{
|
||||||
|
case 0x04000130: return KeyInput & 0xFF;
|
||||||
|
case 0x04000131: return (KeyInput >> 8) & 0xFF;
|
||||||
|
case 0x04000136: return (KeyInput >> 16) & 0xFF;
|
||||||
|
case 0x04000137: return KeyInput >> 24;
|
||||||
|
|
||||||
case 0x04000138: return RTC::Read() & 0xFF;
|
case 0x04000138: return RTC::Read() & 0xFF;
|
||||||
|
|
||||||
case 0x040001A2: return NDSCart::ReadSPIData();
|
case 0x040001A2: return NDSCart::ReadSPIData();
|
||||||
|
Loading…
Reference in New Issue
Block a user