byte code in listing differs from emitted bytes
Reported by Wolf Lammen | July 24th, 2011 @ 03:29 PM
The following simple program (named xx.asm):
$loop:
jmp $loop
yields the following listing after compilation, using 'yasm -l xx.list xx.asm'
1 %line 1+1 xx.asm
2 $loop:
3 00000000 EBFC jmp $loop
4
The emitted bytes actually are:
od -t x1 xx
0000000 eb fe
0000002
As you can see, line 3 of the listing gives an incorrect
displacement.
Some more information:
yasm --version
yasm 1.1.0.2352
Compiled on Aug 10 2010.
Copyright (c) 2001-2010 Peter Johnson and other Yasm
developers.
Run yasm --license for licensing overview and summary.
uname -a
Linux wolf-Latitude-D620 2.6.38-10-generic #46-Ubuntu SMP
Tue Jun 28 15:07:17 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux
cheers
Wolf Lammen
No comments found
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
The Yasm Modular Assembler Project