From 7d607ec86dacbdb0fd9617c7ce220d4d13534d49 Mon Sep 17 00:00:00 2001 From: andwati Date: Sun, 21 Dec 2025 17:50:15 +0300 Subject: [PATCH] add addressing context structure with read functions for CPU memory access --- src/addressing.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/addressing.h b/src/addressing.h index e69de29..f0f1fc5 100644 --- a/src/addressing.h +++ b/src/addressing.h @@ -0,0 +1,18 @@ +#ifndef ADDRESSING_H +#define ADDRESSING_H + +#include +#include + +typedef struct +{ + uint8_t (*read8)(uint16_t addr, void *userdata); + void (*read16)(uint16_t addr, void *userdata); + + void *userdata; + + // cpu registers + +} addr_ctx_t; + +#endif \ No newline at end of file