Short/Near jump (bad) choice

Edouard Gomez ed.gomez at free.fr
Thu Oct 23 01:32:55 PDT 2003


Test case:

section .text
foo:
	jz  .exit ; should be 74 
%rep 127
     nop
%endrep
.exit
	ret

So if yasm chooses a short jump, .exit is 126 bytes from the instruction
pointer (<128 bytes, the 8086 short version is right). So the short jump
choice  is correct.  But  yasm chooses  a  near jump  for  a >=124  byte
distance.

-- 
Edouard Gomez


More information about the bug-yasm mailing list