1
0
mirror of https://github.com/jborza/emu6502.git synced 2024-06-01 19:41:29 +00:00
emu6502/state.h
2019-04-13 23:59:48 +02:00

14 lines
348 B
C

#pragma once
#include "flags.h"
#include "types.h"
typedef struct State6502 {
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
int running;
} State6502;