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,016 of 4,675   
   wolfgang kern to R.Wieser   
   Re: Why does adding a 49 prefix to this    
   08 Mar 20 12:39:21   
   
   From: nowhere@nospicedham.never.at   
      
   On 08.03.2020 12:19, R.Wieser wrote:   
      
   ...   
      
   > 3) "and sign extended".   If-and-when that happens that is your FORTH   
   > compiler at work - most likely recognising a preceeding minus sign in your   
   > sourcecode as an intention to have a negative value stored - and extends the   
   > sign /while compiling/ (read: before the program is executed).   
      
   :)   
      
   USE16:   
   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 ...   
   not all compilers default to the shorter variant.   
   __   
   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