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,022 of 4,675   
   none) (albert to Stephen Pelc   
   Re: Why does adding a 49 prefix to this    
   09 Mar 20 14:57:40   
   
   XPost: comp.lang.forth   
   From: albert@nospicedham.cherry   
      
   In article <5e664d7e.203314246@news.eternal-september.org>,   
   Stephen Pelc  wrote:   
   >On 09 Mar 2020 07:39:30 GMT, albert@nospicedham.cherry (none) (albert)   
   >wrote:   
   >   
   >>>58                               pop eax   
   >>>48                               dec eax   
   >>>81 C0 0C 00 00 00    add eax, 000000Ch   
   >>>50                               push eax   
   >>>48                               dec eax   
   >>>AD                              lodsd   
   >>>FF 20                          jmp dword ptr [eax]   
   >   
   >In AMD64, the 4x instructions are *all* REX prefices. The 48   
   >instruction is NOT a DEC reg instruction, it's a REX prefix.   
      
   Thanks for helping me out in explaining this to some   
   asm.x86 denizens.   
      
   Please note that I did not publish this disassembly.   
   This was my disassembly accompagnied with a hex dump,   
   with the Quadruple prefixes.   
       CODE PIET3   
       QN: MOVI|X, AX| 2 IL,   
       QN: PUSH|X, AX|   
       NEXT,   
       END-CODE   
   >   
   >Stephen   
      
   Groetjes Albert   
   --   
   This is the first day of the end of your life.   
   It may not kill you, but it does make your weaker.   
   If you can't beat them, too bad.   
   albert@spe&ar&c.xs4all.nl &=n http://home.hccnet.nl/a.w.m.van.der.horst   
      
   --- 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