Thread Closed

[ASM] Instruction Offset

 
Share Thread Thread Tools
Feb3-05, 09:20 PM   #1
 
Recognitions:
Retired Staff Staff Emeritus

[ASM] Instruction Offset


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?
 
PhysOrg.com
PhysOrg
science news on PhysOrg.com

>> 'Whodunnit' of Irish potato famine solved
>> The mammoth's lament: Study shows how cosmic impact sparked devastating climate change
>> Curiosity Mars rover drills second rock target
Feb3-05, 09:29 PM   #2
 
Recognitions:
Gold Membership Gold Member
Science Advisor Science Advisor
Retired Staff Staff Emeritus
Is it consistently 3 or 5? Do you know how the programs were compiled? Are they on the same machine?
 
Feb3-05, 09:39 PM   #3
 
Recognitions:
Retired Staff 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
 
Thread Closed
Thread Tools


Similar Threads for: [ASM] Instruction Offset
Thread Forum Replies
single instruction Engineering, Comp Sci, & Technology Homework 2
Instruction needed Differential Equations 7
Clock cycles per instruction? Computing & Technology 3
DC Offset Electrical Engineering 2
Weapons of math instruction General Discussion 15