summaryrefslogtreecommitdiff
path: root/lib/ccdbg-memory.c
Commit message (Collapse)AuthorAge
* Save/restore registers to host during memory operations. Cache ROM data.Keith Packard2008-12-30
| | | | | | | | | | | Because the debug port uses instructions for most operations, the debug code will clobber registers used by the running program. Save and restore these to avoid corrupting application data. If the ROM file is known, use that to return data instead of fetching it from the target to improve performance. Signed-off-by: Keith Packard <keithp@keithp.com>
* Save/restore regs when reading/writing memory. Add SFR access.Keith Packard2008-12-28
| | | | | | | | | | | The DPL and ACC registers are used by the memory access code, so they need to be saved and restored. Stuff them up high in ram for now; this should probably be fixed to pull them back to the host instead. Special SFR access is required as not all SFRs are visible in the unified address space. Signed-off-by: Keith Packard <keithp@keithp.com>
* Make read_memory debug output use ccdbg_debug.Keith Packard2008-12-22
| | | | | | This makes it default to not being presented, which makes s51 much happier Signed-off-by: Keith Packard <keithp@keithp.com>
* Autotools.Keith Packard2008-12-19
Signed-off-by: Keith Packard <keithp@keithp.com>