Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8159395
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T17:53:47+00:00 2026-06-06T17:53:47+00:00

how can I view the hexadecimal representation of some assembler commands? this is from

  • 0

how can I view the hexadecimal representation of some assembler commands?

this is from gdb:

0x8048395 <simple+1>            mov    %esp,%ebp
0x8048397 <simple+3>            mov    $0x1,%eax
0x804839c <simple+8>            pop    %ebp                               
0x804839d <simple+9>            ret

“simple” is the c function of this program. I tried

dump ihex value dump.hex simple

which results in

:020000040804EE
:0183940000E8
:00000001FF

and

dump ihex memory dump.hex 0x8048394 0x804839d

which results in something different

:020000040804EE
:098394005589E5B8010000005D07
:00000001FF

why are they different? is one of them correct?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T17:53:49+00:00Added an answer on June 6, 2026 at 5:53 pm

    To see the real bytes you can simply use:

    disas /r simple
    

    Of if you want to dump to a file to raw binary

    dump binary memory file.bin 0x8048394 0x804839d
    

    The ihex format is the Intel Hex format, and it is not as straightforward as it may seem.

    Also, when you use dump value you are dumping the value of the address of the function, not the code of the function itself. That is what is done with dump memory.

    UPDATE: Actually, when you do dump <format> value dump.hex simple, it dumps the content of simple, but not knowing how to dump a function value, it dumps it as if it were a char value, that is, it dumps the first byte of the function. If you want to dump the address of the function, just do: dump <format> value dump.hex &simple.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

can someone explain how this hexadecimal view of the .o file in xvi32 corresponds
I have a page where you can view a hotel's information. On this page
I can view C# code from .NET ddl's with ILSpy. Are there any programs
Can someone tell me clearly from where i can view the android error stack
Does anyone out there know how I can view what's actually being copied from
Users can view and edit account information in my app using UsersController This controller
I have a website where people can view some places on a google map,
I've got a part in my app where the user can view some notes
I have a script - where a user can view data from a text
You can view my site here - http://patiss-themes.com/planetary/ and as you can see on

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.