fixed gcc build errors
This commit is contained in:
parent
f2baa96968
commit
cabc0ae639
3 changed files with 7 additions and 6 deletions
|
@ -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));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue