English Amiga Board


Go Back   English Amiga Board > Coders > Coders. General

 
 
Thread Tools
Old 14 April 2019, 17:07   #1
bebbo
bye
 
Join Date: Jun 2016
Location: Some / Where
Posts: 680
gnu objectdump as disassembler

What do you think about m68k-amigaos-objdump to disassemble files?

HINT: m68k-amigaos-objdump -dNL <exe>

Code:
m68k-amigaos-objdump.exe -dNL nshello2

nshello2:     file format amiga


Disassembly of section .text:
pass 1: 1/2
pass 2: 1/5
pass 3: 1/7
pass 4: 1/7
pass 5: 0/7

 .text:
        jmp  .L3
        .word 0x0000

 .D1:
        .word 0x16c0,0x4e75

 .L1:
        lea -256(sp),sp
        movem.l d2-d3/a2-a4/a6,-(sp)
        movea.l 284(sp),a4
        movea.l (a4),a6
        lea 24(sp),a3
        lea  .D1(pc),a2
        movea.l 288(sp),a0
        lea 292(sp),a1
        jsr -522(a6)
        move.l 8(a4),d1

 .L2:
        tst.b (a3)+
        bne.s  .L2
        moveq #24,d2
        add.l sp,d2
        move.l d2,d3
        sub.l a3,d3
        not.l d3
        movea.l 4(a4),a6
        jsr -48(a6)
        movem.l (sp)+,d2-d3/a2-a4/a6
        lea 256(sp),sp
        rts

 .D2:
        .ascii "dos.library\0"

 .D3:
        .ascii "Just a hello world. if you cast "
        .ascii "x to integer is: %ld\n\0"

 .L3:
        lea  .bss,a2
        movea.l +0x4,a6
        move.l a6,(a2)
        moveq #33,d0
        lea  .D2(pc),a1
        jsr -552(a6)
        move.l d0,4(a2)
        movea.l d0,a6
        jsr -60(a6)
        move.l d0,8(a2)
        pea +0xa2
        pea  .D3(pc)
        move.l a2,-(sp)
        jsr  .L1(pc)
        movea.l (a2)+,a6
        movea.l (a2),a1
        jsr -414(a6)
        moveq #0,d0
        lea 12(sp),sp
        rts
        .word 0x0000

Last edited by bebbo; 16 April 2019 at 08:11. Reason: added an example
bebbo is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
Label as expression in GNU Assembler JuanLuis Coders. Asm / Hardware 5 03 January 2019 06:32
Mounting HDF with RDB in GNU/Linux Gaula92 support.Other 0 25 August 2016 12:04
GNU GAS Immediate data misbehaving MintyTheCat Coders. Asm / Hardware 14 03 January 2016 16:01
Preparing a CF from GNU/Linux iddqd support.FS-UAE 1 21 June 2015 10:09
OS3.9 Gnu C Compiler Environment help Morbane Coders. General 0 06 January 2012 08:35

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 19:43.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.08162 seconds with 13 queries