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,830 of 4,675   
   Robert Prins to Robert Redelmeier   
   Re: Use additional (cached) read or add    
   23 Mar 19 01:11:15   
   
   From: robert@nospicedham.prino.org   
      
   On 2019-03-22 22:47, Robert Redelmeier wrote:   
   > Robert Prins  wrote in part:   
   >> If I had more available free registers, I would have done so, but in   
   >> 32-bit code you only really have six of them. :(   
   >   
   > Not this worn-out complaint again!   
   >   
   > Try using stack locals [ebp+HH] .  Often just as fast as registers and only   
   > one byte longer instructions. Obviously not as accumulators.   
      
   And not very useful if you need to compare them to other memory based   
   variables,   
   or move them to memory based variables. Why do you think I'm using EDX, ECX,   
   and   
   EDI as replacements for original local variables in:   
      
      // _spl:= lift_ptr^._spl;   
      // km  := lift_ptr^.dtv.km;   
      // lptr:= lift_ptr;   
      
      mov     edx, [ebx + offset lift_list._spl]   
      mov     ecx, [ebx + offset lift_list.dtv.km]   
      mov     edi, ebx   
      
   Robert   
   --   
   Robert AH Prins   
   robert(a)prino(d)org   
      
   --- 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