Bonjour,
J essaye d afficher le caractere passer en param a la fonction
my_putchar,
rien n apparai ??
pourtant si je mets un char * la premiere lettre apparait
Si quelqu un a une idee
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 section .text global my_putchar kernel int 80h ret my_putchar: xor eax, eax mov al, byte[esp + 4] push 1 push dword al push 1 mov eax, 4 call kernel add esp, 12 push dword 0 mov eax, 1 push eax int 80h add esp, 12 ret
Partager