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,017 of 4,675   
   wolfgang kern to R.Wieser   
   Re: Why does adding a 49 prefix to this    
   08 Mar 20 16:45:24   
   
   From: nowhere@nospicedham.never.at   
      
   On 08.03.2020 15:04, R.Wieser wrote:   
   > Wolfgang   
   >   
   >> 81 00 80 FF   add word [bx+si], 0xFF80  ;unsigned   
   >> 83 00 80      add word [bx+si],-128     ;sign extended byte   
   >>   
   >> both do the same ...   
   >   
   > :-) You got me, there are indeed a few more instructions that actually do   
   > consider signed immediate values   
   >   
   > Though did you /have/ to use that particular decimal value ?   As a byte its   
   > one of two special values that can't be negated (made negative), which   
   > rather distracted me. :-p   
      
   NEG AL   
   NOT AL   
      
   use32/64   
   6A 00      push 00  ;32bit Zero /64 bit   
   6A FF      push -1  ;0xFFFFFFFF /64 bit   
      
   and a view more with 83... are quite handy to create short code.   
   __   
   wolfgang   
      
   --- 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