Add some code for IO register higher than 0xFF
This commit is contained in:
parent
e22d345598
commit
8193c19ba9
@ -335,6 +335,15 @@ BYTE cpu_readport(BYTE port)
|
||||
printf("Reading IEEP %02X\n", port);
|
||||
}*/
|
||||
|
||||
if (port > 0x100)
|
||||
{
|
||||
port &= 0xFF;
|
||||
if (port > 0x100)
|
||||
{
|
||||
return 0x00;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
switch (port)
|
||||
{
|
||||
@ -597,6 +606,14 @@ void cpu_writeport(DWORD port,BYTE value)
|
||||
return;
|
||||
}*/
|
||||
|
||||
if (port > 0x100)
|
||||
{
|
||||
port &= 0xFF;
|
||||
if (port > 0x100)
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
ws_ioRam[port]=value;
|
||||
|
||||
switch (port)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user