mirror of
https://github.com/jborza/emu6502.git
synced 2024-11-19 10:31:21 +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; |