Save/restore regs when reading/writing memory. Add SFR access.
authorKeith Packard <keithp@keithp.com>
Sun, 28 Dec 2008 08:09:30 +0000 (00:09 -0800)
committerKeith Packard <keithp@keithp.com>
Sun, 28 Dec 2008 08:09:30 +0000 (00:09 -0800)
commit23aca1fcbc169184e32d4ec19f28dd4fd4cfda36
tree57a61e4a0170837f43315294326d14bc410eb2ae
parent1405838160b69e2cda456e21502a1d03b3aa7548
Save/restore regs when reading/writing memory. Add SFR access.

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>
lib/ccdbg-memory.c
lib/ccdbg.h