#include struct AddressSpace_s { uint8_t *rom; uint32_t romSize; uint8_t *ram; uint32_t ramSize; }; typedef struct AddressSpace_s AddressSpace; AddressSpace create_address_space(int romSize, int ramSize); int read_address_space(const AddressSpace *addressSpace, uint32_t address, const int n, void *dest); int write_address_space(const AddressSpace *addressSpace, uint32_t address, const int n, void *src);