Re: To RISC or not to RISC
- From: Donkey <contact_nospam_donkey@xxxxxxxxxxx>
- Date: Mon, 30 Oct 2006 03:50:04 GMT
Herbert Kleebauer wrote:
I would call AL,AH,AX,EAX,BL,... funny (or better idiotic) names.
The only logical names for registers are r0,r1,r2,...
You really should thank AMD, that at least the new registers
in the x64 architecture got proper names.
Hi Herbert,
Sorry to state the obvious and something that you likely already know but this is just another example of legacy in the x86. Accumulator High/Low (AH/AL), Base High/Low (BH/BL), Counter High/Low (CH/CL) and Data High/Low (DH/DL) Destination Index (DI), Source Index (SI), Stack Pointer (SP) and Base Pointer (BP), prefix an E for 32 bit Extended. They are not a random naming convention and at the time they were chosen it made perfect sense and was quite a good choice (and quite a logical one too). However now they are all essentially general purpose with a only few legacy opcodes (scasb jecxz etc..) to remind us of their original intent. But that said I agree, R0...R16 is the way to go when they are just general purpose registers.
Donkey
.
- Follow-Ups:
- Re: To RISC or not to RISC
- From: Herbert Kleebauer
- Re: To RISC or not to RISC
- From: f0dder
- Re: To RISC or not to RISC
- References:
- To RISC or not to RISC
- From: KJH
- Re: To RISC or not to RISC
- From: Herbert Kleebauer
- To RISC or not to RISC
- Prev by Date: Re: A modern view of the halting problem
- Next by Date: Re: A modern view of the halting problem
- Previous by thread: Re: To RISC or not to RISC
- Next by thread: Re: To RISC or not to RISC
- Index(es):
Relevant Pages
|