1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
| ;--- Conditions initiales
Xor ebx,ebx ; ebx = 0
; AL contient loctet à traiter.
; le résultat sera dans BL
;--- Permutations
Bt ax,1 ; bit 1 dans Cf
Rcl bl,1 ; Cf copié dans bit 0 de BL
Bt ax,0 ; bit 0 dans Cf
Rcl bl,1 ; Cf copié dans bit 0 de BL
Bt ax,3 ; bit 3 dans Cf
Rcl bl,1 ; Cf copié dans bit 0 de BL
Bt ax,2 ; bit 2 dans Cf
Rcl bl,1 ; Cf copié dans bit 0 de BL
Bt ax,5 ; bit 5 dans Cf
Rcl bl,1 ; Cf copié dans bit 0 de BL
Bt ax,4 ; bit 4 dans Cf
Rcl bl,1 ; Cf copié dans bit 0 de BL
Bt ax,7 ; bit 7 dans Cf
Rcl bl,1 ; Cf copié dans bit 0 de BL
Bt ax,6 ; bit 6 dans Cf
Rcl bl,1 ; Cf copié dans bit 0 de BL |
Partager