fixed gcc build errors

This commit is contained in:
Robert 2021-10-29 22:17:01 +02:00
parent f2baa96968
commit cabc0ae639
3 changed files with 7 additions and 6 deletions

View file

@ -5,12 +5,12 @@
#include "log.h"
#include "bus.h"
inline void Push(struct Bus* bus, Byte val)
static inline void Push(struct Bus* bus, Byte val)
{
writeBus(bus, 0x0100 + (bus->cpu->sp--), val);
}
inline Byte Pop(struct Bus* bus)
static inline Byte Pop(struct Bus* bus)
{
return readBus(bus, 0x0100 + (++bus->cpu->sp));
}