Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why are the cpu-registers in OllyDbg not sorted alphabetically?

In OllyDbg the registers window, among other things, lists the standard cpu-registers:

EAX
ECX
EDX
EBX

Is there a particular reason why EBX is displayed last?

like image 479
Andrej Mitrović Avatar asked Dec 28 '22 01:12

Andrej Mitrović


1 Answers

This is probably the same reason that they are ordered that way in processor instructions. When specifying a 32 bit register, eax is 0, ecx is 1, edx is 2, ebx is 3, esp is 4, ebp is 5, esi is 6, and edi is 7. Intel has used this order since they started the X86 architecture.

like image 187
ughoavgfhw Avatar answered May 10 '23 09:05

ughoavgfhw