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,184 of 4,675   
   Bartc to asetofsymbols@nospicedham.gmail.com   
   Re: asm improvements?   
   17 Dec 17 13:29:43   
   
   From: bc@nospicedham.freeuk.com   
      
   On 17/12/2017 09:17, asetofsymbols@nospicedham.gmail.com wrote:   
   > This is the way for me would be ok:   
   > Call as one letter the register and size one use more, that are for me   
   > the register 32 bits   
   >   
   > Example a=eax b=ebx etc   
   > the register 16 bits   
   > ax,bx...(the same name of 16bits CPU)   
   > the register 8bits   
   > ah,al,bh,bl   
   > the register 64 bits   
   > ar,br...   
   > Or something as   
   > Example a=eax b=ebx etc   
   > the register 16 bits   
   > ax,bx...(the same name of 16bits CPU)   
   > the register 8bits   
   > ah,al,bh,bl   
   > the register 64 bits   
   > aa,bb...   
   >   
      
   The 8080 used A,B,C,D for the first four 8-bit registers.   
      
   The 8086 wanted to retain some compatibility, with the first four 16-bit   
   registers called AX, BX, CX, DX (and AL, BL, CL, DL for 8 bits).   
      
   With the 80386, these were given names EAX, EBX, ECX, EDX to refer to   
   the 32-bit versions. And on x64, RAX, RBX, RCX, RDX.   
      
   Some registers were also specialised: BX chosen as the 'base register'   
   because it starts with 'B'. SI and DI as various kinds of index. With   
   32/64-bit address modes, most registers can be used as base and index   
   registers.   
      
   So if the x64 had been designed from scratch, it's highly unlikely its   
   registers would deliberately have been called RAX, RBX etc followed by   
   R8-R15.   
      
      
   --   
   bartc   
      
   --- 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