CLOSED - How to use GDB-Xroar to debug 6309 code
Posted: Thu Nov 14, 2019 10:36 am
Hello,
I have been trying to debug a test program written with lots of 6309 opcodes and have found a lot of trouble
- GDB doesn't decode 6309 opcodes, instead it treats them as FCB data, not very useful
- After LDMD $01 to enter native mode ($3D $01) MD register is not updated!
- After LDW $1111 MD changes to $11 so receiving value from register E, while registers E,F show $00 $00 but next to E
we can see 4352d which is in fact $1100. But reg E is 8 bits, so the decimal value should be less than 256, correct is 17
Should GDB be called in a special way to activate 6309 decoding?
The other behaviour seems more related to the params order that it receives from XRoar ...
Any advice would be greatly apreciated
pere
I have been trying to debug a test program written with lots of 6309 opcodes and have found a lot of trouble
- GDB doesn't decode 6309 opcodes, instead it treats them as FCB data, not very useful
- After LDMD $01 to enter native mode ($3D $01) MD register is not updated!
- After LDW $1111 MD changes to $11 so receiving value from register E, while registers E,F show $00 $00 but next to E
we can see 4352d which is in fact $1100. But reg E is 8 bits, so the decimal value should be less than 256, correct is 17
Should GDB be called in a special way to activate 6309 decoding?
The other behaviour seems more related to the params order that it receives from XRoar ...
Any advice would be greatly apreciated
pere