Skip to content

Commit

Permalink
now all the diag have been converted.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ducasse committed Dec 9, 2024
1 parent 92b29fc commit af31867
Show file tree
Hide file tree
Showing 5 changed files with 156 additions and 1 deletion.
108 changes: 108 additions & 0 deletions Part0-Preamble/1-ObjectStructure/figures/Endiannes-ascii.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
Little endian addresses Big endian

16r FEDCBA987654321
| | | | | | | |
| | | | | | | `->+------+ a
| | | | | | | | 21 |
| | | | | | `--->+------+ a + 1
| | | | | | | 43 |
| | | | | `----->+------+ a + 2
| | | | | | 65 |
| | | | `------->+------+ a + 3
| | | | | 87 |
| | | `--------->+------+ a + 4
| | | | A9 |
| | `----------->+------+ a + 5
| | | CB |
| `------------->+------+ a + 6
| | ED |
`--------------->+------+ a + 7
| 0F |
+------+ a + 8
| .. |



+------+
| 21 |
+------+
| 43 |
+------+
| 65 |
+------+
| 87 |
+------+
| A9 |
+------+
| CB |
+------+
| ED |
+------+
| 0F |
+------+
| .. |
+------+


a

a + 1

a + 2

a + 3

a + 4

a + 5

a + 6

a + 7

a + 8



+------+
| 0F |
+------+
| ED |
+------+
| CB |
+------+
| A9 |
+------+
| 87 |
+------+
| 65 |
+------+
| 49 |
+------+
| 21 |
+------+
| .. |
+------+


16r FEDCBA987654321
| | | | | | | |
+------+ | | | | | | | |
| 0F |<-' | | | | | | |
+------+ | | | | | | |
| ED |<--' | | | | | |
+------+ | | | | | |
| CB |<----' | | | | |
+------+ | | | | |
| A9 |<------' | | | |
+------+ | | | |
| 87 |<--------' | | |
+------+ | | |
| 65 |<----------' | |
+------+ | |
| 49 |<------------' |
+------+ |
| 21 |<--------------'
+------+
| .. |
+------+
Binary file not shown.
47 changes: 47 additions & 0 deletions Part0-Preamble/1-ObjectStructure/figures/Endiannes2-ascii.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
Little endian addresses Big endian

16r FEDCBA987654321 16r FEDCBA987654321
| | | | | | | | | | | | | | | |
| | | | | | | `->+------+ a +------+ | | | | | | | |
| | | | | | | | 21 | | 0F |<-' | | | | | | |
| | | | | | `--->+------+ a + 1 +------+ | | | | | | |
| | | | | | | 43 | | ED |<--' | | | | | |
| | | | | `----->+------+ a + 2 +------+ | | | | | |
| | | | | | 65 | | CB |<----' | | | | |
| | | | `------->+------+ a + 3 +------+ | | | | |
| | | | | 87 | | A9 |<------' | | | |
| | | `--------->+------+ a + 4 +------+ | | | |
| | | | A9 | | 87 |<--------' | | |
| | `----------->+------+ a + 5 +------+ | | |
| | | CB | | 65 |<----------' | |
| `------------->+------+ a + 6 +------+ | |
| | ED | | 49 |<------------' |
`--------------->+------+ a + 7 +------+ |
| 0F | | 21 |<--------------'
+------+ a + 8 +------+
| .. | | .. |

























Binary file not shown.
2 changes: 1 addition & 1 deletion Part0-Preamble/1-ObjectStructure/objectStructure.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ This means that a 64-bit word with the value `16rFEDCBA987654321` is stored back
- The highest address `a+7` contains the most significant byte `16r0F` (see Fig. *@fig:LittleEndian@*).
If we wanted to read the bytes in most-to-least significance order, then we need to iterate it backward: from `a+7` to `a`.

![16rFEDCBA987654321 in 64-bits Little and Big-Endian. % width=95&anchor=fig:LittleEndian](figures/LittleBigEndian.drawio.pdf)
![16rFEDCBA987654321 in 64-bits Little and Big-Endian. % width=95&anchor=fig:LittleEndian](figures/Endiannes2.pdf)

### Object Layout Formats
@sec:layout
Expand Down

0 comments on commit af31867

Please sign in to comment.