mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2024-11-14 21:37:42 -07:00
parent
7081c2de65
commit
c475372372
13
src/Wifi.cpp
13
src/Wifi.cpp
@ -791,22 +791,15 @@ bool ProcessTX(TXSlot* slot, int num)
|
||||
}
|
||||
|
||||
|
||||
inline void IncrementRXAddr(u16& addr, u16 inc)
|
||||
inline void IncrementRXAddr(u16& addr, u16 inc = 2)
|
||||
{
|
||||
addr += inc;
|
||||
addr &= 0x1FFE;
|
||||
if (addr >= (IOPORT(W_RXBufEnd) & 0x1FFE))
|
||||
{
|
||||
addr -= (IOPORT(W_RXBufEnd) & 0x1FFE);
|
||||
addr += (IOPORT(W_RXBufBegin) & 0x1FFE);
|
||||
}
|
||||
}
|
||||
|
||||
inline void IncrementRXAddr(u16& addr)
|
||||
{
|
||||
addr += 2;
|
||||
if (addr == (IOPORT(W_RXBufEnd) & 0x1FFE))
|
||||
{
|
||||
addr = (IOPORT(W_RXBufBegin) & 0x1FFE);
|
||||
addr &= 0x1FFE;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user