Dented/cpu.h

24 lines
330 B
C
Raw Permalink Normal View History

2024-11-22 14:11:26 -07:00
#ifndef CPU_H
#define CPU_H
#include <stdint.h>
typedef struct {
// program counter
uint16_t pc;
// stack pointer
uint16_t sp;
// accumulator register
uint8_t a;
// x index register
uint8_t x;
// y index register
uint8_t y;
// processor statuc register
uint8_t p;
uint8_t memory[4096];
} cpu;
#endif