mirror of
https://github.com/tdinucci/6502-emulator.git
synced 2024-06-08 10:57:31 +00:00
23 lines
349 B
C
23 lines
349 B
C
|
#ifndef INC_6502_EMULATOR_STACK_H
|
||
|
#define INC_6502_EMULATOR_STACK_H
|
||
|
|
||
|
#include <memory>
|
||
|
#include <stack>
|
||
|
|
||
|
using namespace std;
|
||
|
|
||
|
class Stack {
|
||
|
public:
|
||
|
explicit Stack();
|
||
|
|
||
|
void push(uint8_t byte);
|
||
|
uint8_t pop();
|
||
|
|
||
|
private:
|
||
|
static const uint8_t MAX_SIZE = 0xFF;
|
||
|
unique_ptr<stack<uint8_t>> data;
|
||
|
};
|
||
|
|
||
|
|
||
|
#endif //INC_6502_EMULATOR_STACK_H
|