mirror of
https://github.com/andwati/mos-6502.git
synced 2026-11-12 23:15:13 +00:00
completed game
This commit is contained in:
+10
-11
@@ -1,18 +1,17 @@
|
||||
#ifndef ADDRESSING_H
|
||||
#define ADDRESSING_H
|
||||
|
||||
#include <stdbool.h>
|
||||
#include <stdint.h>
|
||||
#include <stddef.h>
|
||||
|
||||
typedef struct
|
||||
{
|
||||
uint8_t (*read8)(uint16_t addr, void *userdata);
|
||||
void (*read16)(uint16_t addr, void *userdata);
|
||||
typedef enum {
|
||||
AM_IMP, AM_ACC, AM_IMM, AM_ZP, AM_ZPX, AM_ZPY, AM_ABS, AM_ABSX,
|
||||
AM_ABSY, AM_IND, AM_INDX, AM_INDY, AM_REL
|
||||
} addr_mode_t;
|
||||
|
||||
void *userdata;
|
||||
typedef struct {
|
||||
uint16_t address;
|
||||
bool page_crossed;
|
||||
} addr_result_t;
|
||||
|
||||
// cpu registers
|
||||
|
||||
} addr_ctx_t;
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user