asm.rst
author Oleksandr Gavenko <gavenkoa@gmail.com>
Mon, 22 Feb 2016 12:41:52 +0200
changeset 1903 901e7394849f
parent 1682 f24fa90e806b
child 1905 fba288d59662
permissions -rw-r--r--
Decrease intent to increase space usage on mobile.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1675
7e5ff3a96f2d Convert ELF to Intex hex format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 892
diff changeset
     1
.. -*- coding: utf-8; -*-
7e5ff3a96f2d Convert ELF to Intex hex format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 892
diff changeset
     2
.. include:: HEADER.rst
892
9cecee6342a3 objdump.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     3
1675
7e5ff3a96f2d Convert ELF to Intex hex format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 892
diff changeset
     4
============
7e5ff3a96f2d Convert ELF to Intex hex format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 892
diff changeset
     5
 Assempler.
7e5ff3a96f2d Convert ELF to Intex hex format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 892
diff changeset
     6
============
7e5ff3a96f2d Convert ELF to Intex hex format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 892
diff changeset
     7
.. contents::
7e5ff3a96f2d Convert ELF to Intex hex format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 892
diff changeset
     8
7e5ff3a96f2d Convert ELF to Intex hex format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 892
diff changeset
     9
Decompile binary file.
7e5ff3a96f2d Convert ELF to Intex hex format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 892
diff changeset
    10
======================
7e5ff3a96f2d Convert ELF to Intex hex format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 892
diff changeset
    11
7e5ff3a96f2d Convert ELF to Intex hex format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 892
diff changeset
    12
With GNU Binutils::
892
9cecee6342a3 objdump.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    13
9cecee6342a3 objdump.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    14
  $ objdump -w -d file.o
9cecee6342a3 objdump.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    15
1675
7e5ff3a96f2d Convert ELF to Intex hex format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 892
diff changeset
    16
Convert ELF to binary format.
7e5ff3a96f2d Convert ELF to Intex hex format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 892
diff changeset
    17
=============================
7e5ff3a96f2d Convert ELF to Intex hex format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 892
diff changeset
    18
::
7e5ff3a96f2d Convert ELF to Intex hex format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 892
diff changeset
    19
1682
f24fa90e806b Convert ELF to binary format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1675
diff changeset
    20
  $ objcopy -O binary image.elf image.bin
f24fa90e806b Convert ELF to binary format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1675
diff changeset
    21
1675
7e5ff3a96f2d Convert ELF to Intex hex format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 892
diff changeset
    22
Convert ELF to Intex hex format.
7e5ff3a96f2d Convert ELF to Intex hex format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 892
diff changeset
    23
================================
7e5ff3a96f2d Convert ELF to Intex hex format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 892
diff changeset
    24
::
7e5ff3a96f2d Convert ELF to Intex hex format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 892
diff changeset
    25
7e5ff3a96f2d Convert ELF to Intex hex format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 892
diff changeset
    26
  $ avr-objcopy -O ihex image.elf image.ihex
7e5ff3a96f2d Convert ELF to Intex hex format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 892
diff changeset
    27