refactor config loading

This commit is contained in:
2026-04-08 23:12:40 +03:00
parent 9d55a87200
commit b5162a19e8
7 changed files with 219 additions and 178 deletions

View File

@@ -53,6 +53,17 @@ typedef uint32_t io_reg_cell_t;
typedef uint32_t io_reg_cell_t;
#endif
typedef struct
{
uint8_t seg_id;
char* name;
uint8_t word_len;
uint64_t default_size;
uint64_t default_addr;
uint8_t is_executable;
} memseg_metadata_t;
void* default_addr_read_handler(uint64_t ident, uint64_t addr, void* rawCells);