miaou — le blogv1.0.3

etiquettes.hex0

← Le code · src/amorce/etiquettes.hex0 · 643 lignes

# etiquettes.hex0 : image initiale de l'étage 1, l'assembleur à étiquettes hex1, écrite à la main en octets (Mach-O, macOS ARM64).
# Construction : graine.macos-arm64 < etiquettes.hex0 | signeur.macos-arm64 > etiquettes.macos-arm64 (les cases d'empreinte sont à zéro ici, le signeur les remplit).
# Il lit du hex1 sur l'entrée standard : paires hexadécimales, commentaires '#' ou ';', ':x' définit l'étiquette x à la position de sortie courante,
# '@x' corrige la branche qui vient d'être écrite (b, bl : imm26 ; b.cond, cbz, cbnz : imm19), '%x' corrige l'adr qui vient d'être écrit. Noms : un parmi 0-9, A-Z, a-z.
# Rien n'est écrit avant que tous les renvois soient résolus. Son propre source à étiquettes est etiquettes.hex1.
# Code de sortie : 0 fini, 1 lecture/écriture, 2 chiffre seul, 3 étiquette en double, 4 étiquette inconnue, 5 champ invalide (opcode, alignement, portée), 6 plein, 7 mal formé.
# Chaque ligne donne sa position dans le fichier (hex) en commentaire.
 
# ---------------------------------------------------------------------------
# En-tête Mach-O (32 octets)
cf fa ed fe              # 000 magic MH_MAGIC_64
0c 00 00 01              # 004 cputype ARM64
00 00 00 00              # 008 cpusubtype ALL
02 00 00 00              # 00c filetype MH_EXECUTE
0b 00 00 00              # 010 ncmds = 11
38 02 00 00              # 014 sizeofcmds = 568
85 00 20 00              # 018 flags NOUNDEFS DYLDLINK TWOLEVEL PIE
00 00 00 00              # 01c reserved
 
# ---------------------------------------------------------------------------
# LC_SEGMENT_64 __PAGEZERO (72 octets) : 4 Gio sans accès, attrape les pointeurs nuls
19 00 00 00 48 00 00 00  # 020 cmd, cmdsize 72
5f 5f 50 41 47 45 5a 45 52 4f 00 00 00 00 00 00  # 028 "__PAGEZERO"
00 00 00 00 00 00 00 00  # 038 vmaddr 0
00 00 00 00 01 00 00 00  # 040 vmsize 0x100000000
00 00 00 00 00 00 00 00  # 048 fileoff 0
00 00 00 00 00 00 00 00  # 050 filesize 0
00 00 00 00 00 00 00 00  # 058 maxprot 0, initprot 0
00 00 00 00 00 00 00 00  # 060 nsects 0, flags 0
 
# LC_SEGMENT_64 __TEXT (152 octets, une section) : en-tête et code, lecture + exécution
19 00 00 00 98 00 00 00  # 068 cmd, cmdsize 152
5f 5f 54 45 58 54 00 00 00 00 00 00 00 00 00 00  # 070 "__TEXT"
00 00 00 00 01 00 00 00  # 080 vmaddr 0x100000000
00 40 00 00 00 00 00 00  # 088 vmsize 0x4000 (une page de 16 Kio)
00 00 00 00 00 00 00 00  # 090 fileoff 0
00 40 00 00 00 00 00 00  # 098 filesize 0x4000 (toute la page)
05 00 00 00 05 00 00 00  # 0a0 maxprot r-x, initprot r-x
01 00 00 00 00 00 00 00  # 0a8 nsects 1, flags 0
# section __text : là où vit le code
5f 5f 74 65 78 74 00 00 00 00 00 00 00 00 00 00  # 0b0 "__text"
5f 5f 54 45 58 54 00 00 00 00 00 00 00 00 00 00  # 0c0 "__TEXT"
60 02 00 00 01 00 00 00  # 0d0 addr 0x100000260
88 03 00 00 00 00 00 00  # 0d8 size 0x388 (226 instructions)
60 02 00 00 04 00 00 00  # 0e0 offset 0x260, align 2^4
00 00 00 00 00 00 00 00  # 0e8 reloff 0, nreloc 0
00 04 00 80 00 00 00 00  # 0f0 flags PURE_INSTRUCTIONS SOME_INSTRUCTIONS, reserved1
00 00 00 00 00 00 00 00  # 0f8 reserved2, reserved3
 
# LC_SEGMENT_64 __LINKEDIT (72 octets) : données de dyld et signature, lecture seule
19 00 00 00 48 00 00 00  # 100 cmd, cmdsize 72
5f 5f 4c 49 4e 4b 45 44 49 54 00 00 00 00 00 00  # 108 "__LINKEDIT"
00 40 00 00 01 00 00 00  # 118 vmaddr 0x100004000
00 40 00 00 00 00 00 00  # 120 vmsize 0x4000
00 40 00 00 00 00 00 00  # 128 fileoff 0x4000 (doit être aligné sur une page, sinon le noyau tue le processus)
60 01 00 00 00 00 00 00  # 130 filesize 0x160
01 00 00 00 01 00 00 00  # 138 maxprot r--, initprot r--
00 00 00 00 00 00 00 00  # 140 nsects 0, flags 0
 
# LC_DYLD_CHAINED_FIXUPS (16 octets) : correctifs vides, rien à lier
34 00 00 80 10 00 00 00  # 148 cmd, cmdsize 16
00 40 00 00 38 00 00 00  # 150 dataoff 0x4000, datasize 56
 
# LC_SYMTAB (24 octets) : aucun symbole
02 00 00 00 18 00 00 00  # 158 cmd, cmdsize 24
00 00 00 00 00 00 00 00  # 160 symoff 0, nsyms 0
38 40 00 00 00 00 00 00  # 168 stroff 0x4038, strsize 0
 
# LC_DYSYMTAB (80 octets) : tout à zéro
0b 00 00 00 50 00 00 00  # 170 cmd, cmdsize 80
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  # 178
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  # 188
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  # 198
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  # 1a8
00 00 00 00 00 00 00 00  # 1b8
 
# LC_LOAD_DYLINKER (32 octets) : le chargeur est /usr/lib/dyld
0e 00 00 00 20 00 00 00  # 1c0 cmd, cmdsize 32
0c 00 00 00              # 1c8 position du nom 12
2f 75 73 72 2f 6c 69 62 2f 64 79 6c 64 00  # 1cc "/usr/lib/dyld"
00 00 00 00 00 00        # 1da remplissage
 
# LC_MAIN (24 octets) : point d'entrée = début du code
28 00 00 80 18 00 00 00  # 1e0 cmd, cmdsize 24
60 02 00 00 00 00 00 00  # 1e8 entryoff 0x260
00 00 00 00 00 00 00 00  # 1f0 stacksize 0 (par défaut)
 
# LC_LOAD_DYLIB (56 octets) : libSystem, exigée par Apple, rien n'y est importé
0c 00 00 00 38 00 00 00  # 1f8 cmd, cmdsize 56
18 00 00 00 02 00 00 00  # 200 position du nom 24, timestamp 2
03 64 27 05 00 00 01 00  # 208 current_version 1319.100.3, compatibility_version 1.0.0
2f 75 73 72 2f 6c 69 62 2f 6c 69 62 53 79 73 74 65 6d 2e 42 2e 64 79 6c 69 62 00  # 210 "/usr/lib/libSystem.B.dylib"
00 00 00 00 00           # 22b remplissage
 
# LC_BUILD_VERSION (24 octets) : macOS 11.0
32 00 00 00 18 00 00 00  # 230 cmd, cmdsize 24
01 00 00 00              # 238 platform MACOS
00 00 0b 00 00 00 0b 00  # 23c minos 11.0, sdk 11.0
00 00 00 00              # 244 ntools 0
 
# LC_CODE_SIGNATURE (16 octets) : où vit la signature
1d 00 00 00 10 00 00 00  # 248 cmd, cmdsize 16
40 40 00 00 20 01 00 00  # 250 dataoff 0x4040, datasize 0x120
 
00 00 00 00 00 00 00 00  # 258 remplissage jusqu'au code
 
# ---------------------------------------------------------------------------
# Code (ARM64), 226 instructions. Pile : tampon de sortie de 1 Mio, puis 62 cases d'étiquette (256 octets), 8 192 renvois (64 Kio), une case de lecture d'un octet.
# Registres : x19 sortie, x20 longueur de sortie, x21 octet courant, x22 étiquettes, x23 renvois, x24 nombre de renvois, x25 = 1 si un chiffre haut attend,
# x26 ce chiffre, x29 case de lecture, x10 = 1 si un séparateur est exigé, x11 = 1 en fin d'entrée.
# Une case d'étiquette contient (position + 1), 0 = non définie. Un renvoi fait 8 octets : position de l'instruction (4), index d'étiquette (1), type de champ (1 : imm26, 2 : imm19, 3 : adr), 2 octets nuls.
 
# début : zones de pile, registres, cases d'étiquette mises à zéro
ff 47 44 d1              # 260 sub  sp, sp, #0x111, lsl #12
f3 03 00 91              # 264 mov  x19, sp
76 02 44 91              # 268 add  x22, x19, #0x100, lsl #12  ; étiquettes
d7 02 04 91              # 26c add  x23, x22, #0x100           ; renvois
fd 42 40 91              # 270 add  x29, x23, #0x10, lsl #12   ; case de lecture
14 00 80 d2              # 274 mov  x20, #0
18 00 80 d2              # 278 mov  x24, #0
19 00 80 d2              # 27c mov  x25, #0
0a 00 80 d2              # 280 mov  x10, #0
0b 00 80 d2              # 284 mov  x11, #0
00 00 80 d2              # 288 mov  x0, #0
df 7a 20 f8              # 28c str  xzr, [x22, x0, lsl #3]
00 04 00 91              # 290 add  x0, x0, #1
1f 80 00 f1              # 294 cmp  x0, #32
a1 ff ff 54              # 298 b.ne mise_a_zero                ; -> 28c
 
# boucle : lire un octet et le trier
ba 00 00 94              # 29c bl   octet_suivant              ; -> 584
eb 0d 00 b5              # 2a0 cbnz x11, fin                   ; -> 45c
bf 8e 00 71              # 2a4 cmp  w21, #0x23                 ; '#'
20 05 00 54              # 2a8 b.eq commentaire                ; -> 34c
bf ee 00 71              # 2ac cmp  w21, #0x3b                 ; ';'
e0 04 00 54              # 2b0 b.eq commentaire                ; -> 34c
bf 82 00 71              # 2b4 cmp  w21, #0x20                 ; ' '
40 04 00 54              # 2b8 b.eq blanc                      ; -> 340
bf 2a 00 71              # 2bc cmp  w21, #0x0a                 ; '\n'
00 04 00 54              # 2c0 b.eq blanc                      ; -> 340
bf 26 00 71              # 2c4 cmp  w21, #0x09                 ; '\t'
c0 03 00 54              # 2c8 b.eq blanc                      ; -> 340
bf 36 00 71              # 2cc cmp  w21, #0x0d                 ; '\r'
80 03 00 54              # 2d0 b.eq blanc                      ; -> 340
2a 15 00 b5              # 2d4 cbnz x10, mal_forme             ; -> 578
bf ea 00 71              # 2d8 cmp  w21, #0x3a                 ; ':'
60 04 00 54              # 2dc b.eq definir                    ; -> 368
bf 02 01 71              # 2e0 cmp  w21, #0x40                 ; '@'
60 05 00 54              # 2e4 b.eq renvoi_branche             ; -> 390
bf 96 00 71              # 2e8 cmp  w21, #0x25                 ; '%'
60 05 00 54              # 2ec b.eq renvoi_adresse             ; -> 398
a0 c2 00 51              # 2f0 sub  w0, w21, #0x30
1f 24 00 71              # 2f4 cmp  w0, #9
c9 00 00 54              # 2f8 b.ls chiffre                    ; -> 310
a0 02 1b 32              # 2fc orr  w0, w21, #0x20
00 84 01 51              # 300 sub  w0, w0, #0x61
1f 14 00 71              # 304 cmp  w0, #5
88 13 00 54              # 308 b.hi mal_forme                  ; -> 578
00 28 00 11              # 30c add  w0, w0, #10
 
# chiffre : le premier chiffre attend, le second complète l'octet
99 00 00 b5              # 310 cbnz x25, second                ; -> 320
fa 03 00 aa              # 314 mov  x26, x0
39 00 80 d2              # 318 mov  x25, #1
e0 ff ff 17              # 31c b    boucle                     ; -> 29c
00 10 1a 0b              # 320 add  w0, w0, w26, lsl #4
01 02 a0 d2              # 324 movz x1, #0x10, lsl #16          ; 1 Mio
9f 02 01 eb              # 328 cmp  x20, x1
22 12 00 54              # 32c b.hs plein                      ; -> 570
60 6a 34 38              # 330 strb w0, [x19, x20]
94 06 00 91              # 334 add  x20, x20, #1
19 00 80 d2              # 338 mov  x25, #0
d8 ff ff 17              # 33c b    boucle                     ; -> 29c
 
# blanc : un séparateur ; un octet ne se coupe pas en deux
99 10 00 b5              # 340 cbnz x25, impair                ; -> 550
0a 00 80 d2              # 344 mov  x10, #0
d5 ff ff 17              # 348 b    boucle                     ; -> 29c
# commentaire : jusqu'à la fin de la ligne
39 10 00 b5              # 34c cbnz x25, impair                ; -> 550
8d 00 00 94              # 350 bl   octet_suivant              ; -> 584
4b 08 00 b5              # 354 cbnz x11, fin                   ; -> 45c
bf 2a 00 71              # 358 cmp  w21, #0x0a
a1 ff ff 54              # 35c b.ne boucle_commentaire         ; -> 350
0a 00 80 d2              # 360 mov  x10, #0
ce ff ff 17              # 364 b    boucle                     ; -> 29c
 
# définir : ':' et un nom d'un caractère ; l'étiquette prend la position de sortie courante
59 0f 00 b5              # 368 cbnz x25, impair                ; -> 550
86 00 00 94              # 36c bl   octet_suivant              ; -> 584
90 00 00 94              # 370 bl   index_nom                  ; -> 5b0
c1 0a 00 8b              # 374 add  x1, x22, x0, lsl #2
22 00 40 b9              # 378 ldr  w2, [x1]
e2 0e 00 35              # 37c cbnz w2, doublon                ; -> 558
82 06 00 11              # 380 add  w2, w20, #1
22 00 00 b9              # 384 str  w2, [x1]
2a 00 80 d2              # 388 mov  x10, #1
c4 ff ff 17              # 38c b    boucle                     ; -> 29c
 
# renvoi : '@' (branche) ou '%' (adresse) corrige les 4 octets qui viennent d'être écrits
1b 00 80 d2              # 390 mov  x27, #0                    ; '@'
02 00 00 14              # 394 b    renvoi                     ; -> 39c
3b 00 80 d2              # 398 mov  x27, #1                    ; '%'
b9 0d 00 b5              # 39c cbnz x25, impair                ; -> 550
79 00 00 94              # 3a0 bl   octet_suivant              ; -> 584
83 00 00 94              # 3a4 bl   index_nom                  ; -> 5b0
fc 03 00 aa              # 3a8 mov  x28, x0
9f 12 00 f1              # 3ac cmp  x20, #4
c3 0d 00 54              # 3b0 b.lo champ_invalide             ; -> 568
9f 06 40 f2              # 3b4 tst  x20, #3                    ; instructions ARM64 alignées sur 4
81 0d 00 54              # 3b8 b.ne champ_invalide             ; -> 568
81 12 00 d1              # 3bc sub  x1, x20, #4
62 6a 61 b8              # 3c0 ldr  w2, [x19, x1]              ; l'instruction
fb 02 00 b5              # 3c4 cbnz x27, renvoi_adr            ; -> 420
# '@' : b ou bl (imm26 à zéro) ?
43 10 06 12              # 3c8 and  w3, w2, #0x7c000000
04 80 a2 52              # 3cc movz w4, #0x1400, lsl #16
7f 00 04 6b              # 3d0 cmp  w3, w4
a1 00 00 54              # 3d4 b.ne pas_b                      ; -> 3e8
43 64 00 12              # 3d8 and  w3, w2, #0x3ffffff
63 0c 00 35              # 3dc cbnz w3, champ_invalide         ; -> 568
25 00 80 d2              # 3e0 mov  x5, #1                     ; imm26
15 00 00 14              # 3e4 b    enregistrer                ; -> 438
# b.cond (octet haut 0x54, bit 4 à zéro) ?
43 7c 18 53              # 3e8 lsr  w3, w2, #24
7f 50 01 71              # 3ec cmp  w3, #0x54
81 00 00 54              # 3f0 b.ne pas_bcond                  ; -> 400
43 00 1c 12              # 3f4 and  w3, w2, #0x10
83 0b 00 35              # 3f8 cbnz w3, champ_invalide         ; -> 568
05 00 00 14              # 3fc b    champ19                    ; -> 410
# cbz ou cbnz (32 ou 64 bits) ?
43 14 07 12              # 400 and  w3, w2, #0x7e000000
04 80 a6 52              # 404 movz w4, #0x3400, lsl #16
7f 00 04 6b              # 408 cmp  w3, w4
e1 0a 00 54              # 40c b.ne champ_invalide             ; -> 568
43 48 1b 12              # 410 and  w3, w2, #0xffffe0           ; imm19 à zéro
a3 0a 00 35              # 414 cbnz w3, champ_invalide         ; -> 568
45 00 80 d2              # 418 mov  x5, #2                     ; imm19
07 00 00 14              # 41c b    enregistrer                ; -> 438
# '%' : adr (octet haut 0x10 : op = 0 et immlo à zéro, immhi à zéro)
43 7c 18 53              # 420 lsr  w3, w2, #24
7f 40 00 71              # 424 cmp  w3, #0x10
01 0a 00 54              # 428 b.ne champ_invalide             ; -> 568
43 48 1b 12              # 42c and  w3, w2, #0xffffe0
c3 09 00 35              # 430 cbnz w3, champ_invalide         ; -> 568
65 00 80 d2              # 434 mov  x5, #3                     ; adr
# enregistrer : ajouter le renvoi (8 192 au plus)
1f 0b 40 f1              # 438 cmp  x24, #2, lsl #12
a2 09 00 54              # 43c b.hs plein                      ; -> 570
e3 0e 18 8b              # 440 add  x3, x23, x24, lsl #3
61 00 00 b9              # 444 str  w1, [x3]
7c 10 00 39              # 448 strb w28, [x3, #4]
65 14 00 39              # 44c strb w5, [x3, #5]
18 07 00 91              # 450 add  x24, x24, #1
2a 00 80 d2              # 454 mov  x10, #1
91 ff ff 17              # 458 b    boucle                     ; -> 29c
 
# fin : aucun octet à moitié écrit, puis résoudre tous les renvois avant de rien écrire
b9 07 00 b5              # 45c cbnz x25, impair                ; -> 550
06 00 80 d2              # 460 mov  x6, #0
df 00 18 eb              # 464 cmp  x6, x24
42 05 00 54              # 468 b.hs ecrire                     ; -> 510
e3 0e 06 8b              # 46c add  x3, x23, x6, lsl #3
61 00 40 b9              # 470 ldr  w1, [x3]                   ; position de l'instruction
60 10 40 39              # 474 ldrb w0, [x3, #4]               ; étiquette
65 14 40 39              # 478 ldrb w5, [x3, #5]               ; type de champ
c2 7a 60 b8              # 47c ldr  w2, [x22, x0, lsl #2]
02 07 00 34              # 480 cbz  w2, inconnue               ; -> 560
42 04 00 51              # 484 sub  w2, w2, #1                 ; cible
47 00 01 cb              # 488 sub  x7, x2, x1                 ; écart en octets
68 6a 61 b8              # 48c ldr  w8, [x19, x1]
bf 0c 00 f1              # 490 cmp  x5, #3
80 02 00 54              # 494 b.eq resoudre_adr               ; -> 4e4
ff 04 40 f2              # 498 tst  x7, #3                     ; cible alignée sur 4
61 06 00 54              # 49c b.ne champ_invalide             ; -> 568
e7 fc 42 93              # 4a0 asr  x7, x7, #2                 ; écart en mots
bf 04 00 f1              # 4a4 cmp  x5, #1
01 01 00 54              # 4a8 b.ne resoudre19                 ; -> 4c8
# imm26 : -2^25 <= écart < 2^25
e9 fc 59 93              # 4ac asr  x9, x7, #25
29 05 00 91              # 4b0 add  x9, x9, #1
3f 05 00 f1              # 4b4 cmp  x9, #1
88 05 00 54              # 4b8 b.hi champ_invalide             ; -> 568
e7 64 00 12              # 4bc and  w7, w7, #0x3ffffff
08 01 07 2a              # 4c0 orr  w8, w8, w7
10 00 00 14              # 4c4 b    ranger                     ; -> 504
# imm19 : -2^18 <= écart < 2^18
e9 fc 52 93              # 4c8 asr  x9, x7, #18
29 05 00 91              # 4cc add  x9, x9, #1
3f 05 00 f1              # 4d0 cmp  x9, #1
a8 04 00 54              # 4d4 b.hi champ_invalide             ; -> 568
e7 48 00 12              # 4d8 and  w7, w7, #0x7ffff
08 15 07 2a              # 4dc orr  w8, w8, w7, lsl #5
09 00 00 14              # 4e0 b    ranger                     ; -> 504
# adr : -2^20 <= écart < 2^20, immlo = bits 1:0 vers 30:29, immhi = bits 20:2 vers 23:5
e9 fc 54 93              # 4e4 asr  x9, x7, #20
29 05 00 91              # 4e8 add  x9, x9, #1
3f 05 00 f1              # 4ec cmp  x9, #1
c8 03 00 54              # 4f0 b.hi champ_invalide             ; -> 568
e9 04 00 12              # 4f4 and  w9, w7, #3
08 75 09 2a              # 4f8 orr  w8, w8, w9, lsl #29
e9 50 02 53              # 4fc ubfx w9, w7, #2, #19
08 15 09 2a              # 500 orr  w8, w8, w9, lsl #5
68 6a 21 b8              # 504 str  w8, [x19, x1]
c6 04 00 91              # 508 add  x6, x6, #1
d6 ff ff 17              # 50c b    resoudre                   ; -> 464
 
# écrire : envoyer toute la sortie sur la sortie standard (les écritures peuvent être partielles)
1a 00 80 d2              # 510 mov  x26, #0
5f 03 14 eb              # 514 cmp  x26, x20
42 01 00 54              # 518 b.hs succes                     ; -> 540
20 00 80 d2              # 51c mov  x0, #1                     ; sortie standard
61 02 1a 8b              # 520 add  x1, x19, x26
82 02 1a cb              # 524 sub  x2, x20, x26
90 00 80 d2              # 528 mov  x16, #4                    ; écriture
01 10 00 d4              # 52c svc  #0x80
c2 00 00 54              # 530 b.cs echec_lecture_ecriture     ; -> 548
a0 00 00 b4              # 534 cbz  x0, echec_lecture_ecriture ; -> 548
5a 03 00 8b              # 538 add  x26, x26, x0
f6 ff ff 17              # 53c b    boucle_ecrire              ; -> 514
 
# sorties : 0 succès, 1 lecture/écriture, 2 chiffre seul, 3 étiquette en double, 4 étiquette inconnue, 5 champ invalide, 6 plein, 7 mal formé
00 00 80 d2              # 540 mov  x0, #0
0e 00 00 14              # 544 b    sortir                     ; -> 57c
20 00 80 d2              # 548 mov  x0, #1
0c 00 00 14              # 54c b    sortir                     ; -> 57c
40 00 80 d2              # 550 mov  x0, #2
0a 00 00 14              # 554 b    sortir                     ; -> 57c
60 00 80 d2              # 558 mov  x0, #3
08 00 00 14              # 55c b    sortir                     ; -> 57c
80 00 80 d2              # 560 mov  x0, #4
06 00 00 14              # 564 b    sortir                     ; -> 57c
a0 00 80 d2              # 568 mov  x0, #5
04 00 00 14              # 56c b    sortir                     ; -> 57c
c0 00 80 d2              # 570 mov  x0, #6
02 00 00 14              # 574 b    sortir                     ; -> 57c
e0 00 80 d2              # 578 mov  x0, #7
30 00 80 d2              # 57c mov  x16, #1                    ; sortie
01 10 00 d4              # 580 svc  #0x80
 
# octet_suivant : w21 = octet suivant, ou x11 = 1 en fin d'entrée
00 00 80 d2              # 584 mov  x0, #0                     ; entrée standard
e1 03 1d aa              # 588 mov  x1, x29
22 00 80 d2              # 58c mov  x2, #1
70 00 80 d2              # 590 mov  x16, #3                    ; lecture
01 10 00 d4              # 594 svc  #0x80
82 fd ff 54              # 598 b.cs echec_lecture_ecriture     ; -> 548
60 00 00 b4              # 59c cbz  x0, fin_entree             ; -> 5a8
b5 03 40 39              # 5a0 ldrb w21, [x29]
c0 03 5f d6              # 5a4 ret
2b 00 80 d2              # 5a8 mov  x11, #1
c0 03 5f d6              # 5ac ret
 
# index_nom : x0 = 0..61 pour '0'-'9', 'A'-'Z', 'a'-'z' ; tout le reste (ou la fin d'entrée) est mal formé
4b fe ff b5              # 5b0 cbnz x11, mal_forme             ; -> 578
a0 c2 00 51              # 5b4 sub  w0, w21, #0x30
1f 24 00 71              # 5b8 cmp  w0, #9
49 01 00 54              # 5bc b.ls nom_valide                 ; -> 5e4
a0 06 01 51              # 5c0 sub  w0, w21, #0x41
1f 64 00 71              # 5c4 cmp  w0, #25
68 00 00 54              # 5c8 b.hi minuscule                  ; -> 5d4
00 28 00 11              # 5cc add  w0, w0, #10
05 00 00 14              # 5d0 b    nom_valide                 ; -> 5e4
a0 86 01 51              # 5d4 sub  w0, w21, #0x61
1f 64 00 71              # 5d8 cmp  w0, #25
e8 fc ff 54              # 5dc b.hi mal_forme                  ; -> 578
00 90 00 11              # 5e0 add  w0, w0, #36
c0 03 5f d6              # 5e4 ret
 
# ---------------------------------------------------------------------------
# Zéros de 0x5e8 à 0x4000 : __LINKEDIT doit commencer sur une frontière de page de 16 Kio (232 lignes de 64 octets nuls, puis 24).
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000
 
# ---------------------------------------------------------------------------
# __LINKEDIT en 0x4000. Correctifs chaînés vides (56 octets) : en-tête, puis 3 segments sans correctif.
00 00 00 00 20 00 00 00  # 4000 fixups_version 0, starts_offset 32
30 00 00 00 30 00 00 00  # 4008 imports_offset 48, symbols_offset 48
00 00 00 00 01 00 00 00  # 4010 imports_count 0, imports_format 1
00 00 00 00 00 00 00 00  # 4018 symbols_format 0, remplissage
03 00 00 00 00 00 00 00  # 4020 seg_count 3, seg_info_offset[0]
00 00 00 00 00 00 00 00  # 4028 seg_info_offset[1], seg_info_offset[2]
00 00 00 00 00 00 00 00  # 4030 remplissage
00 00 00 00 00 00 00 00  # 4038 remplissage jusqu'à la signature
 
# ---------------------------------------------------------------------------
# Signature ad hoc en 0x4040 (gros-boutiste) : un SuperBlob qui contient un CodeDirectory. Cases d'empreinte à zéro : le signeur les remplit.
fa de 0c c0 00 00 01 17  # 4040 magic EMBEDDED_SIGNATURE, length 279
00 00 00 01              # 4048 count 1
00 00 00 00 00 00 00 14  # 404c type CODEDIRECTORY, offset 20
# CodeDirectory (259 octets)
fa de 0c 02 00 00 01 03  # 4054 magic CODEDIRECTORY, length 259
00 02 04 00              # 405c version 0x20400
00 02 00 02              # 4060 flags ADHOC LINKER_SIGNED
00 00 00 63 00 00 00 58  # 4064 hashOffset 99, identOffset 88
00 00 00 00 00 00 00 05  # 406c nSpecialSlots 0, nCodeSlots 5
00 00 40 40              # 4074 codeLimit 0x4040 (tout ce qui précède la signature)
20 02 00 0c              # 4078 hashSize 32, hashType SHA-256, platform 0, pageSize 2^12
00 00 00 00              # 407c spare2
00 00 00 00 00 00 00 00 00 00 00 00  # 4080 scatterOffset, teamOffset, spare3
00 00 00 00 00 00 00 00  # 408c codeLimit64
00 00 00 00 00 00 00 00  # 4094 execSegBase 0
00 00 00 00 00 00 40 00  # 409c execSegLimit 0x4000
00 00 00 00 00 00 00 01  # 40a4 execSegFlags MAIN_BINARY
65 74 69 71 75 65 74 74 65 73 00  # 40ac identifiant "etiquettes"
# cinq cases SHA-256 (pages 0x0000, 0x1000, 0x2000, 0x3000, 0x4000-0x403f), remplies par le signeur
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  # 40b7
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  # 40d7
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  # 40f7
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  # 4117
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  # 4137
00 00 00 00 00 00 00 00 00  # 4157 remplissage jusqu'à 0x4160 (fin du fichier)