Revision d56dd6cf ioport.c
b/ioport.c | ||
---|---|---|
94 | 94 |
{ |
95 | 95 |
uint32_t data; |
96 | 96 |
data = ioport_read(0, address); |
97 |
address = (address + 1) & (MAX_IOPORTS - 1);
|
|
97 |
address = (address + 1) & IOPORTS_MASK;
|
|
98 | 98 |
data |= ioport_read(0, address) << 8; |
99 | 99 |
return data; |
100 | 100 |
} |
... | ... | |
102 | 102 |
static void default_ioport_writew(void *opaque, uint32_t address, uint32_t data) |
103 | 103 |
{ |
104 | 104 |
ioport_write(0, address, data & 0xff); |
105 |
address = (address + 1) & (MAX_IOPORTS - 1);
|
|
105 |
address = (address + 1) & IOPORTS_MASK;
|
|
106 | 106 |
ioport_write(0, address, (data >> 8) & 0xff); |
107 | 107 |
} |
108 | 108 |
|
Also available in: Unified diff