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

  • Home
  • SEARCH
  • 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 353737
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T11:51:29+00:00 2026-05-12T11:51:29+00:00

What is the size of each asm instruction? Every instruction takes how many bytes?

  • 0

What is the size of each asm instruction? Every instruction takes how many bytes? 8 bytes? Four for the opcode and Four for the argument? What happens when you have one opcode and 2 arguments, in mov, for example? Do they have a fixed size in memory or do they vary? Does EIP have anything to do with this, of its value is always incremented by one, being totally independent of what kind of instruction it is passing by?

I ask this as when I was reading http://en.wikibooks.org/wiki/X86_Disassembly/Functions_and_Stack_Frames , I stumbled across the fact that it seems a call instruction is equivalent to a push and jmp instruction.

call MYFUNCTION
mov my_var, eax

being the same as

push [eip + 2];
jmp MYFUNCTION;
mov my_var, eax

When we’re pushing [eip + 2] on the stack, to what value are we pointing then? To the line right next to “jmp MYFUNCTION”, mov my_var eax, right?

ps: MSVC++ flags an error on the first line, as it says eip is undefined. It works for eax, esp, ebp, etc. What am I doing wrong?

  • 1 1 Answer
  • 1 View
  • 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-05-12T11:51:30+00:00Added an answer on May 12, 2026 at 11:51 am

    The size of a machine instruction depends on the processor architecture – there are architectures with fixed size instruction, but you are obviously refering to the IA-32 and Intel 64 and they have strongly varing instruction lengths. The instruction pointer is of course always incremented by the length of the processed instruction.

    You can download the IA-32 and Intel 64 manuals from Intel – they contain almost everything you can know about the architecture. You can find an opcode map and instruction set format in
    Intel® 64 and IA-32 Architectures Software Developer’s Manual Volume 2B: Instruction Set Reference, N-Z on pages 623 to 768.

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

Sidebar

Related Questions

I have a bunch of csv datasets, about 10Gb in size each. I'd like
I have 2 lists each of equal size and am interested to combine these
I have 100 models (matrices), where each matrix's size is 4X3. Each of the
I have images stored on sd card(size of each ~ 4MB). I want to
I have a number of vector containers of varying size each containing doubles. I
I have about 50 images of 50 x 50 pixel size each. I want
I am trying to change the size of each plot on the following chart
I'm reading in an id3 tag where the size of each frame is specified
I'm trying to load about 600 small images into memory. Size of each image
println args println args.size() println args.each{arg-> println arg} println args.class if (args.contains(Hello)) println Found

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.