File encoding preservation + content structure to help browse the code

This commit is contained in:
Alexandre Fontoura
2021-10-28 15:20:01 +01:00
parent c5f4f6ba25
commit 23151219b2
90 changed files with 1946 additions and 1815 deletions

View File

@@ -5,7 +5,7 @@
public NoLanguage Expand
;*ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ*
;*──────────────────────────────────────────────────────────────────────────*
Expand PROC USES ESI EDI EBX EBP,\
src:DWORD, dest:DWORD, count:DWORD ; COUNT devrait etre un DWORD !!!
@@ -22,7 +22,7 @@ boucle:
lodsb
mov bx, ax ; octet d'info dans bl
next:
shr bx, 1 ; ca va plus vite de dcaler bx ou
shr bx, 1 ; ca va plus vite de décaler bx ou
; bl ? (Vrai question, chef)
jnc copie ; chaque bit indique la nature de
; ce qui suit
@@ -46,8 +46,8 @@ copie: ; ici on a 16 bits formant un offset
shr eax, 4 ;
; on recupere l'offset
not eax ; en fait c'est un decalage en
; arriŠre - 1 (not ax = -ax - 1)
add eax, edi ; par rapport di (ax = di - ax - 1)
; arrière - 1 (not ax = -ax - 1)
add eax, edi ; par rapport à di (ax = di - ax - 1)
xchg eax, esi ; on sauve si tout en lui donnant
; l'ofset calcule
rep movsb ; on fait la recopie