Re: [hatari-devel] Diassembly output |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/hatari-devel Archives
]
Hi,
On perjantai 24 tammikuu 2014, Miro Kropáček wrote:
> I just... don't get it. Why I can't just get my instructions shown?
Which instruction disassembler you're using?
Markus Fritze's disassembler doesn't support all instructions yet.
You can change it with:
---------------
> setopt --disasm help
Disassembly settings:
uae - use CPU core internal disassembler which has better
instruction support
ext - use external disassembler which has nicer output
and supports options below
<bitmask> - disassembly output option flags
Flag values:
1: no brackets around absolute addressing
2: opcodes in small letters
4: register names in small letters
8: stack pointer as 'SP', not 'A7'
Current settings are:
--disasm ext --disasm 15
---------------
What instructions and for what m68k CPU model your're
disassembling?
> > cpureg
>
> D0: 0000ccb2 D1: 00001234 D2: 0000ffff D3: 444d4172
> D4: 00000000 D5: 00100000 D6: 00030002 D7: 00000000
> A0: 00001644 A1: 0000ccb2 A2: 00000a8b A3: 00e023c4
> A4: 000028fe A5: 00000000 A6: 00e005de A7: 00003dd8
> USP=00000000 ISP=00003dd8 MSP=00000000 VBR=00000000
> T=00 S=1 M=0 X=0 N=0 Z=0 V=0 C=0 IMASK=3
> FP0: 0 FP1: 0 FP2: 0 FP3: 0
> FP4: 0 FP5: 0 FP6: 0 FP7: 0
> N=0 Z=0 I=0 NAN=0
> prefetch fffe23c0
> 00001682: 6000 fffe 23c0 0000 0228 BT .W #$fffe == 00001682 (TRUE)
> next PC: 00001686
>
> > disasm
>
> $001692 : 0002 DC.W $0002
> $001694 : eb0a DC.W $eb0a
What "d pc" shows in this case?
> Also, is there a way how to 'skip' instruction ('bra *' in this case)
> except setting PC to a new address?
If you mean not executing the at all, then that's the only way:
r pc=<address>
Address can be given by calculation:
r pc="(a1)+200"
> Thanks for any hints, I'm getting desperate (again! :)).
- Eero