mirror of
https://github.com/jborza/emu6502.git
synced 2024-11-25 03:34:40 +00:00
14 lines
348 B
C
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; |