home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.lang.asm.x86      Ahh, the lost art of x86 assembly      4,675 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 4,424 of 4,675   
   Kerr-Mudd, John to wolfgang kern   
   Re: Help! JMP out of range?   
   24 Nov 21 14:27:03   
   
   From: admin@nospicedham.127.0.0.1   
      
   On Tue, 23 Nov 2021 07:40:41 +0100   
   wolfgang kern  wrote:   
      
   > On 22/11/2021 20:16, Nicolae Nasturica posted:   
   > ---   
   > >>> Can someone please explain why MASM is reporting "Jump out of   
   > >>> range by 130(bytes)   
   >   
   > because the range is a signed byte (+127..-128) and because MASM   
   > don't know about long CC-instructions (perhaps it knows with hint   
   > "long"):   
   >   
   > 0F 8x 43 21  jmp cc rel+4+2143   
      
   There are also the unconditional jmps   
   E9 xx xx     jmp   
   EB xx        jmp near[/short]   
   has the same +127-128 range, but means a slightly increased jmp   
   forward, ability as the jmp is from the address of the next op code.   
   >   
   > versus short:   
   > 7x 12        jmp cc rel+2+12   
   >   
   > both variants use signed values relative to the address after the   
   > jump. __   
   > wolfgang   
   >   
      
   It might be useful to someone here; but Alexei answered Vassone's   
   question back in 2000.   
      
      
   --   
   Bah, and indeed Humbug.   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca