Salut, je suis debutant en asm, et je voudrais afficher une chaine de caractere, j'ai ecrit ce code mais qui ne m'affiche rien :S
Ce affiche le contenu de rien tant qu'on a pas appuyé sur espace.
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
22
23
24
25
26
27
28
29
30 .model small .stack 100h .data rien db "Appuyez sur une touche pour continuer $" .code mov ax, @data mov dx, ax main proc boucle: ;boucle pour tester la touche du clavier enfoncée mov ah, 00h int 16h cmp al, ' ' jz fin ; si la touche espace est appuyé mov ah, 09h mov dx, offset rien int 21h ; Affiche rien...... loop boucle fin: mov ah, 00h int 21h main endp end main
Merci de m'aider
Partager