r16/emu/cpu/stack.h
2024-04-19 10:08:32 +00:00

15 lines
249 B
C

#ifndef EMU_CPU_STACK_H
#define EMU_CPU_STACK_H
#include "./ram.h"
#include "./register.h"
#define STACK_SIZE 256
#define STACK_LOCATION (UINT16_MAX - STACK_SIZE)
#define DO_STACK_CHECKS
r16_int StackPop();
void StackPush(r16_int value);
#endif