Skip to content

Improve the debugger's ability to write to the machine#382

Open
stople wants to merge 1 commit intoX16Community:masterfrom
stople:improve-write-from-debugger
Open

Improve the debugger's ability to write to the machine#382
stople wants to merge 1 commit intoX16Community:masterfrom
stople:improve-write-from-debugger

Conversation

@stople
Copy link
Copy Markdown
Contributor

@stople stople commented Feb 6, 2026

The debugger supports writing to the machine using the "FILL_MEMORY" command:

f addr value [repeats] [increment rate]

(It uses the x16 bank specified using m bank:address)

The existing implementation did only support writing to RAM.

This modification allows the debugger to also write to IO peripherals and cartridge memory, as well as modify ROM.

IO modification can be tested by activating the mouse cursor ("MOUSE 1"), then deactivate/activate the sprite enable bit in DC_VIDEO. The new state is immediately visible in the debugger, and, when running the system again, the next frames will be according to the new register state.

ROM modification can be tested by e.g writing "A" (41) to the bytes at 00:C000. The modification is immediately visible in the debugger. When typing "HELP" afterwards, the manipulated git sha is visible.

@stople stople force-pushed the improve-write-from-debugger branch from b701147 to 3a561e1 Compare February 6, 2026 20:28
@stople stople marked this pull request as ready for review February 6, 2026 20:56
@stople stople force-pushed the improve-write-from-debugger branch 2 times, most recently from 4a943a1 to bafe50e Compare February 6, 2026 21:09
The debugger supports writing to the machine using the "FILL_MEMORY"
command:

"f addr value <repeats> <increment rate>"

(It uses the x16 bank specified using "d bank:address")

The existing implementation did only support writing to RAM.

This modification allows the debugger to also write to IO peripherals and
cartridge memory, as well as modify ROM.
@stople stople force-pushed the improve-write-from-debugger branch from bafe50e to 133b07b Compare March 8, 2026 16:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant