well, GX FIFO base. noting that for now, it doesn't do much beyond getting full real quick.

also make ROM loading fail gracefully if it shits itself, instead of entering an endless loop.
This commit is contained in:
StapleButter
2017-02-07 23:31:21 +01:00
parent 2b7fac05c7
commit 971e7b7e89
7 changed files with 218 additions and 20 deletions

6
FIFO.h
View File

@ -47,7 +47,7 @@ public:
}
void Write(u32 val)
void Write(T& val)
{
if (IsFull()) return;
@ -60,9 +60,9 @@ public:
NumOccupied++;
}
T Read()
T& Read()
{
T ret = Entries[ReadPos];
T& ret = Entries[ReadPos];
if (IsEmpty())
return ret;