[hatari-devel] DSP debug minor problems
Laurent Sallafranque
laurent.sallafranque at free.fr
Fri Jul 10 23:51:48 CEST 2009
Hello Eero,
I've just seen that you've changed things into dsp.c debug code.
You've removed the PC register (it's not really a dsp register as it's
an implicit register),
but I added it because it's useful when debugging to do a "dr pc=adr"
I think there's just to add something like :
/* 16-bit status register */
{ "PC", &dsp_core.pc, 16, BITMASK(16) },
I'm not sure of the SSH and SSL code you added :
{ "SSH", &dsp_core.registers[DSP_REG_SP], 32, BITMASK(16) },
{ "SSL", &dsp_core.registers[DSP_REG_SP], 32, BITMASK(16) },
{ "SP", &dsp_core.registers[DSP_REG_SP], 32, BITMASK(6) },
ssh and ssl are saved into a stack (15).
the position into the stack is given by SP.
Example :
SSH SSL SP
0 0 0
123456 abcdef 1
222222 bbbbbb 2
0 0 3
0 0 4
0 0 5
...
0 0 15
SSH + SSL is called the SS (32 bits)
SSH is at bits (32-16)
SSL is at bits (15-0)
if SP=5, SSH value is SS[5] (bits 32-16) and SSL value is SS[5] (bits 15-0)
Regards
Laurent
More information about the hatari-devel
mailing list