OS4 DepotLogo by Alkaron 
(anonymous IP: 3.239.111.79,1885) 
 HomeRecentStatsSearchSubmitUploadsMirrorsContactInfoDisclaimerConfigAdmin
 Menu

 Features
   Crashlogs
   Bug tracker
   Locale browser
 

 Categories

   o Audio (333)
   o Datatype (50)
   o Demo (199)
   o Development (580)
   o Document (21)
   o Driver (96)
   o Emulation (146)
   o Game (948)
   o Graphics (488)
   o Library (108)
   o Network (224)
   o Office (61)
   o Utility (881)
   o Video (65)

Total files: 4200

Full index file
Recent index file

 Links

  Amigans.net
  OpenAmiga
  Aminet
  IntuitionBase


Support the site


 Readme for:  Development » Cross » dis8080.lha

dis8080

Description: Disassembler for Intel 8080 processor
Download: dis8080.lha       (TIPS: Use the right click menu if your browser takes you back here all the time)
Size: 67kb
Version: 2022
Date: 28 Jan 2022
Author: Martin Aberg
Submitter: Eugene aGGreSSor Sobolev
Category: development/cross
License: Freeware
Distribute: yes
Min OS Version: 4.0
FileID: 11932
 
Comments: 0
Snapshots: 0
Videos: 0
Downloads: 19  (Current version)
19  (Accumulated)
Votes: 0 (0/0)  (30 days/7 days)

Show comments Show snapshots Show videos Show content Show crashlogs Replace file 
============================== F E A T U R E S ==============================

dis8080 is an Intel 8080 instruction disassembler. It reads machine
code from standard input and writes the disassembly to standard
output.

============================ R E Q U I R E M E N T ==========================

dis8080 tested and worked fine on the following configurations:

- AmigaOS 4.1 Final Edition (Kickstart 53.70, Workbench 53.14)

================================= U S A G E =================================

dis8080 [-d ADDR COUNT]

The option -d ADDR COUNT tells the disassembler to emit data
definitions instead of instructions for COUNT bytes, starting at
input offset ADDR. This option can be used multiple times.

Output from dis8080 can be assembled with an assembler such as vasm
or asmx.

============================= E X A M P L E S ===============================

To disassemble the file example/add.bin, issue:

1> dis8080 < example/add.bin

It generates the following output.

-----------------------------------------------------
                lxi     b,L0009
                lxi     h,L000A
                jmp     L000B
        L0009:
                mov     d,d
        L000A:
                call    L860A
                ret

        L000B   = $000B
        L860A   = $860A

        end
-----------------------------------------------------

This does not look quite right, because:
* The two "lxi" instructions hint that the values at label L0009
  and L000A should be interpreted as data rather than instructions.
* "jmp" is unconditional so the "mov" will not be executed.
* The "jmp" target is inside the "call" instruction.
* "mov d,d" is not a commonly used instruction.

What is happening here is that the disassembler does not know that
following the "jmp" are two bytes of data, after which the program
instruction stream continues at address $000B. In other words, the
disassembler has become "out of phase". It is common to encounter
cases like this in production code.

To get a more realistic disassembly, mark the addresses $0009 and
$000A as data with the -d option:

1> dis8080 < example/add.bin -d 0x0009 2

-----------------------------------------------------
                lxi     b,L0009
                lxi     h,L000A
                jmp     L000B
        L0009:
                db      $52             ; 'R'
        L000A:
                db      $cd
        L000B:
                ldax    b
                add     m
                ret


        end
-----------------------------------------------------

Now this looks better as locations $0009 and $000A are interpreted
as data rather than instructions. At label L000B the two data bytes
in memory are added together.

================================ S O U R C E ================================

Aminet backport:
http://aminet.net/package/dev/cross/dis8080

Compiled and improved by

        ______ ______              ______ ______ 
 ______|:: .__|:: .__|_____ ______|:: ___|:: ___|______ _____ 
|: ,   |:  |  |:  |  |:  ,_|:  ,__|:___  |:___  |:  -  |:  ,_|
|__|___|______|______|___|   _____|______|______|______|___|

                home cross-compilation factory

Copyright © 2004-2022 by Björn Hagström All Rights Reserved