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,188 of 4,675   
   James Van Buskirk to Bartc   
   Re: asm improvements?   
   20 Dec 17 23:14:57   
   
   From: not_valid@nospicedham.comcast.net   
      
   "Bartc"  wrote in message news:fxdZB.23554$4O3.2385@fx15.am4...   
      
   > On 16/12/2017 17:40, James Van Buskirk wrote:   
      
   > > The above numbering doesn't reflect the   
   > > overlap between RBP and R13 or RSP and R12.   
      
   > What overlap is that: that the bottom 3 bits of the register code? And why   
   > is it important, as all bottom 8 registers will 'overlap' with the top 8?   
      
   I refer you to 325462.pdf, Vol. 2A p. 2-11, table 2-5.  An SIB byte is   
   required for R12-based addressing and R13 can't be used without   
   displacement, although the displacement can be zero.   
      
   Whatever numbering you choose for the registers, different ABIs   
   will use them for different purposes, so ordering them to match   
   one ABI doesn't make all that much sense to me.  Look at Agner   
   Fog's PDF on calling conventions.   
      
   I emphasize that I have no objection to replacing all the register   
   names with numbers (6 for 2 for free for all and all that) but do   
   believe that using a numbering scheme other than the one already   
   hard-coded into the processor family is counterproductive.   
      
   References:   
   https://www.intel.com/content/www/us/en/architecture-and-technol   
   gy/64-ia-32-architectures-software-developer-manual-325462.html   
   http://www.agner.org/optimize/calling_conventions.pdf   
   https://www.youtube.com/watch?v=nhEhMinbd8g   
      
   --- 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