Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

[ASM] Instruction Offset

  1. Feb 3, 2005 #1

    dduardo

    User Avatar
    Staff Emeritus

    I notice with gdb/linux each instruction is offset by 5 while debug/dos each instruction is offset by 3. What is linux doing that dos isn't?
     
  2. jcsd
  3. Feb 3, 2005 #2

    Hurkyl

    User Avatar
    Staff Emeritus
    Science Advisor
    Gold Member

    Is it consistently 3 or 5? Do you know how the programs were compiled? Are they on the same machine?
     
  4. Feb 3, 2005 #3

    dduardo

    User Avatar
    Staff Emeritus

    Yes, under dos it is always 3 and under linux it is always 5. I'm running the same two programs on different computers and assembling and linking them with different programs

    dos/masm/ml/debug
    linux/nasm/ld/gdb
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Have something to add?



Similar Discussions: [ASM] Instruction Offset
  1. TI-83 asm programming (Replies: 5)

Loading...