Re: [hatari-devel] 68020 addressing modes not correctly disassembled

[ Thread Index | Date Index | More lists.tuxfamily.org/hatari-devel Archives ]


Thorsten Otto schrieb:

> while investing some bug, i found that 68020 addressing modes are not
> disassembled correctly.

> Eg. the opcode sequence

> 0x4eb0,0x01f1,0x0013,0x5b82

> should be disassembled to
>
> [0013122a] 4eb0 01f1 0013 5b82 jsr ([$00135B82])
>
> but actually yields
>
> $0013122a : 4eb0 DC.W $4eb0
>
> $0013122c : 01f1 0013 bset d0,$13(a1,d0.w)
>
> $00131230 : 5b82 subq.l #5,d2

Works for me, Hatari from latest Git sources, actually with *both*
disassemblers:

UAE disassembler:

czietz@NotebookHP:~/hatari$ ./src/hatari.exe --cpulevel 2 -D --disasm uae
INFO : Exception debugging enabled (0x203).
Selected UAE CPU core internal disassembler.
INFO : Hatari v2.2.1, compiled on:  Jun 16 2020, 08:35:10
INFO : GEMDOS HDD emulation, C: <-> C:\Temp\atari.
Bus error exception at 0xe00086!

----------------------------------------------------------------------
You have entered debug mode. Type c to continue emulation, h for help.

CPU=$e00086, VBL=0, FrameCycles=159, HBL=0, LineCycles=159, DSP=N/A
00E00086 4a78 8006                TST.W $8006
> w w $20000 0x4eb0 0x01f1 0x0013 0x5b82
Wrote 4 'w' values starting from 0x20000.
> d $20000
00020000 4eb0 01f1 0013 5b82      JSR ([$00135b82]) == $00000000

External disassembler:
czietz@NotebookHP:~/hatari$ ./src/hatari.exe --cpulevel 2 -D --disasm ext
INFO : Exception debugging enabled (0x203).
Selected external disassembler.
Disassembly output flags are 15.
INFO : Hatari v2.2.1, compiled on:  Jun 16 2020, 08:35:10
INFO : GEMDOS HDD emulation, C: <-> C:\Temp\atari.
Bus error exception at 0xe00086!

----------------------------------------------------------------------
You have entered debug mode. Type c to continue emulation, h for help.

CPU=$e00086, VBL=0, FrameCycles=159, HBL=0, LineCycles=159, DSP=N/A
$00e00086 : 4a78 8006                          tst.w     $ffff8006.w
> w w $20000 0x4eb0 0x01f1 0x0013 0x5b82
Wrote 4 'w' values starting from 0x20000.
> d $20000
$00020000 : 4eb0 01f1 0013 5b82                jsr       ([$135b82])

Regards
Christian
--
Christian Zietz  -  CHZ-Soft  -  czietz@xxxxxxx
WWW: https://www.chzsoft.de/
PGP/GnuPG-Key-ID: 0x52CB97F66DA025CA / 0x6DA025CA



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/