FInal opcodes

This commit is contained in:
2026-08-30 23:02:24 +02:00
parent 1f4390a42b
commit f5672ee9c3
8 changed files with 452 additions and 146 deletions
+1 -2
View File
@@ -2,7 +2,6 @@
#define CPU_H
#include <stdint.h>
#include <unistd.h>
typedef struct {
uint16_t ProgrammeCounter;
@@ -29,6 +28,6 @@ typedef struct {
void initCPU(CPU *cpu);
void resetCPU(CPU *cpu, uint8_t *rom);
useconds_t runCycle(CPU *cpu, uint8_t *ram, uint8_t *rom);
uint8_t runCycle(CPU *cpu, uint8_t *ram, uint8_t *rom);
#endif // CPU_H
+1 -1
View File
@@ -123,7 +123,7 @@
#define CLV 0xb8 // Clear overflow flag
#define LDA_YA 0xb9 // Load A from memory, Y-indexed absolute
#define TSX 0xba // Transfer stack pointer to X
#define LDY_XA 0xbb // Load Y from memory, X-indexed absolute
#define LDY_XA 0xbc // Load Y from memory, X-indexed absolute
#define LDA_XA 0xbd // Load A from memory, X-indexed absolute
#define LDX_YA 0xbe // Load X from memory, Y-indexed absolute
/* 113 */