4 ms·
It's still not clear to a first time reader. Here is a better visualization, as much as HN let me do it, for RAX (same applies for RBX, RCX and RDX): |63|62|61
by unnouinceput 6y ago
It's still not clear to a first time reader. Here is a better visualization, as much as HN let me do it, for RAX (same applies for RBX, RCX and RDX):
|63|62|61|60|...|34|33|32|31|30|29|...|18|17|16|15|14|...|10|09|08|07|06|05|04|03|02|01|00|
|.............................................|.............................|<-- AH (8 bits) --->|<------- AL (8 bits) -------->|
|.............................................|.............................|<------------- AX (16 bits - lower part) --------->|
|.............................................|<---------------------------- EAX (32 bits - lower part) ------.---------->|
|<------------------------------------------------ RAX (full register - 64 bits) --------------------------.------>|
(10 thousands edits, hope you guys see the same as I see, perfectly aligned)
- Stratoscope 6y agoNice illustration, thanks. Regarding the formatting, for a chart like this you will find it easier if you switch to a monospaced font. You can do that with two spaces at the beginning of each line, and you won't need the blank lines either. Here is a start: |63|62|...|33|32|31|30|...|17|16|15|14|...|09|08|07|06|...|01|00| |...............|...............|<-AH (8 bits)->|<-AL (8 bits)->| |...............|...............|<-AX (16 bits - lower part) -->| |...............|<--------- EAX (32 bits - lower part) -------->| |<--------------- RAX (full register - 64 bits) --------------->| (This still won't look good on a mobile device because of the width, best viewed in a desktop browser.)