diff options
author | Ian C <ianc@noddybox.co.uk> | 2025-01-18 20:28:56 +0000 |
---|---|---|
committer | Ian C <ianc@noddybox.co.uk> | 2025-01-18 20:28:56 +0000 |
commit | 62f9b04442646be9094e4f07f0c40158a859a4c3 (patch) | |
tree | e0de3a7c16a805545dc644889a3451dbbedac9d6 | |
parent | dfbe546f993bdebb2c62328f20b0df7c14e40faa (diff) |
Removed notes regarding array memory and disabling the disassembler.
We are only going to support functional memory interfaces (which makes
more sense over the Z80 as devices are memory mapped) and we will always
have a disassembler.
-rw-r--r-- | 6502.h | 16 |
1 files changed, 6 insertions, 10 deletions
@@ -127,9 +127,9 @@ typedef enum } C6502FlagRegister; -/* Disassembly label -- only useful if ENABLE_DISASSEMBLER is set. - Labels are stored as an array, where a NULL in the label field marks - the end of the list. +/* Labels are stored as an array, where a NULL in the label field marks + the end of the list. Each entry in the list is simply a mapping from + an address to a symbolic name. */ typedef struct { @@ -144,13 +144,9 @@ typedef struct /* Initialises the processor. */ -#ifdef ENABLE_ARRAY_MEMORY -C6502 *C6502Init(void); -#else C6502 *C6502Init(C6502ReadMemory read_memory, C6502WriteMemory write_memory, C6502ReadMemory read_for_disassem); -#endif /* Resets the processor. @@ -209,11 +205,11 @@ void C6502SetTimer(C6502 *cpu, C6502Timer timer, C6502Val cycles); /* Set address to label mappings for the disassembler */ -void C6502SetLabels(C6502Label labels[]); +void C6502SetLabels(C6502 *cpu, C6502Label labels[]); -/* Simple disassembly of memory accessed through read_for_disassem, or - C6502_MEMORY as appropriate. addr is updated on exit. +/* Simple disassembly of memory accessed through read_for_disassem. + addr is updated on exit with the next opcode to disassemble. */ const char *C6502Disassemble(C6502 *cpu, C6502Word *addr); |