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:
Andrea
2022-06-17 22:27:52 +02:00
committed by GitHub
parent 6a934bcfef
commit b3e617f1e5
2 changed files with 8 additions and 5 deletions
+1 -1
View File
@@ -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)
{