1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64
|
segment .text
global _start
_start :
xor eax, eax
mov eax, 732
mov bl, 100
div bl
add al , 30h
mov [chiffre1], al
mov bl, 10
mov al, ah
xor ah, ah
div bl
add al, 30h
mov [chiffre2], al
add ah, 30h
mov [chiffre3], ah
mov eax, 4
mov ebx, 1
mov ecx, chiffre1
mov edx, 1
int 80h
mov eax, 4
mov ebx, 1
mov ecx, chiffre2
mov edx, 1
int 80h
mov eax, 4
mov ebx, 1
mov ecx, chiffre3
mov edx, 1
int 80h
;fin
mov eax, 1
mov ebx, 0
int 80h
segment .bss
chiffre1: resb 1
chiffre2: resb 1
chiffre3: resb 1 |
Partager