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