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 2,956 of 4,675   
   Rick C. Hodgin to firr   
   Re: asm improvements?   
   26 Aug 17 07:44:28   
   
   From: rick.c.hodgin@nospicedham.gmail.com   
      
   On Saturday, August 26, 2017 at 7:55:17 AM UTC-4, firr wrote:   
   > im typing in some more menmonics and thing that surprised me   
   >   
   > mov eax, eax   
   > mov ebx, ebx   
   > mov ecx, ecx   
   > mov edx, edx   
   >   
   > mov eax, [eax]   
   > mov ebx, [ebx]   
   > mov ecx, [ecx]   
   > mov edx, [edx]   
   >   
   > do it really works?   
      
   It will encode, but it won't necessarily work.   
      
   If you're really looking to do something new, why not remove the   
   mechanics of the assembly mnemonic for common instructions?   
      
       eax = eax;   
       ebx = ebx;   
       ecx = ecx;   
       edx = edx;   
      
       eax = [eax];   
       ebx = [ebx];   
       ecx = [ecx];   
       edx = [edx];   
      
   For common operations, it would work well:   
      
       eax *= ebx;   
       edx += [esi+ebx+4];   
       ebx = myVar[esi+ebx];   
      
   It would make assembly fun again. :-)   
      
   Thank you,   
   Rick C. Hodgin   
      
   --- 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