1
0
mirror of https://github.com/jborza/emu6502.git synced 2024-06-07 16:16:37 +00:00
emu6502/state.h

13 lines
334 B
C
Raw Normal View History

2019-04-13 08:02:18 +00:00
#pragma once
#include "flags.h"
2019-04-13 08:28:57 +00:00
#include "types.h"
2019-04-13 08:02:18 +00:00
typedef struct State6502 {
2019-04-13 08:28:57 +00:00
byte a; //accumulator
byte X; //x index
byte Y; //y index
byte sp; //stack pointer, 256 byte stack between $0100 and $01FF
word pc; //program counter, points to the next instruction to be executed
byte* memory;
Flags flags; //CPU flags
2019-04-13 08:02:18 +00:00
} State6502;