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 3,141 of 4,675   
   wolfgang kern to All   
   Re: sys_read from stdin   
   30 Nov 17 11:31:15   
   
   From: nowhere@never.at   
      
   Bernhard Schornak translated:   
   >>>>>  MOV AL,[charbuffer_in]   
   >>>>>  MOV AH,0   
   ...   
   > Hit and sunken! ;)   
      
   > Actually it's a (bad) translation from   
   >   
   > movzb 0x00(buffer), %eax   
   >   
   > to LETNi syntax.   
   :)   
      
   just to add some confusion about MOVZX/MOVSX:   
   this instructions exist in two forms:   
      
   0F B6 r/rm   MOVZX(B)   
   0F B7 r/rm   MOVZX(W)   
      
   some tools need "MOVZX byte ..." while others use register size.   
   ie:   
   MOVZX AX,DL and MOVZX ESI,CX shouldn't need a size cast, in opposition   
   to movzx (e/r)ax [mem], here the assembler need to know "byte or word".   
   __   
   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