mirror of
https://github.com/AppleWin/AppleWin.git
synced 2024-12-23 00:30:17 +00:00
Uthernet II: the real hardware only decodes A0 and A1, so we introduce a 0x03 mask. (PR #1115)
Fixes #1113
This commit is contained in:
parent
6a934bcfef
commit
b3e617f1e5
@ -1407,7 +1407,7 @@ BYTE Uthernet2::IO_C0(WORD programcounter, WORD address, BYTE write, BYTE value,
|
||||
const uint16_t oldAddress = myDataAddress;
|
||||
#endif
|
||||
|
||||
const uint8_t loc = address & 0x0F;
|
||||
const uint8_t loc = address & U2_C0X_MASK;
|
||||
|
||||
if (write)
|
||||
{
|
||||
|
@ -2,10 +2,13 @@
|
||||
|
||||
// Uthernet II registers
|
||||
|
||||
#define U2_C0X_MODE_REGISTER 0x04
|
||||
#define U2_C0X_ADDRESS_HIGH 0x05
|
||||
#define U2_C0X_ADDRESS_LOW 0x06
|
||||
#define U2_C0X_DATA_PORT 0x07
|
||||
// only A0 and A1 are decoded
|
||||
#define U2_C0X_MASK 0x03
|
||||
|
||||
#define U2_C0X_MODE_REGISTER (0x04 & U2_C0X_MASK)
|
||||
#define U2_C0X_ADDRESS_HIGH (0x05 & U2_C0X_MASK)
|
||||
#define U2_C0X_ADDRESS_LOW (0x06 & U2_C0X_MASK)
|
||||
#define U2_C0X_DATA_PORT (0x07 & U2_C0X_MASK)
|
||||
|
||||
// W5100 registers and values
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user