mirror of
https://github.com/jborza/emu6502.git
synced 2024-06-08 07:29:32 +00:00
13 lines
353 B
C
13 lines
353 B
C
|
#pragma once
|
||
|
#include <cstdint>
|
||
|
#include "flags.h"
|
||
|
|
||
|
typedef struct State6502 {
|
||
|
uint8_t A; //accumulator
|
||
|
uint8_t X; //x index
|
||
|
uint8_t Y; //y index
|
||
|
uint8_t SP; //stack pointer, 256 byte stack between $0100 and $01FF
|
||
|
uint16_t PC; //program counter, points to the next instruction to be executed
|
||
|
uint8_t* Memory;
|
||
|
Flags Flags; //CPU flags
|
||
|
} State6502;
|