baz13shaz
Messages postés1Date d'inscriptiondimanche 24 octobre 2010StatutMembreDernière intervention 6 novembre 2010
-
6 nov. 2010 à 15:11
cs_ghuysmans99
Messages postés3982Date d'inscriptionjeudi 14 juillet 2005StatutMembreDernière intervention30 juin 2013
-
7 nov. 2010 à 00:46
je veut saisir une chaine de caractère & calculer sa taille,et je veut charger la chaine saisie en mémoire centrale?
que doit je faire?
comment je peut utiliser la pile??
et ensuite j'ai un problème au niveau de la compilation,lorsque je fait tlink nom.obj il m'écrit l'erreur suivant:
Fatal: No Program Entry Point
voila mon code source:
title char
model small
stack 100h
.data
msg1 db "donner le caractere$"
msg2 db "chaine vide$"
msg3 db "la taille de la chine est:$"
i dw 0
.code
mov ax,@data
mov dx,ax
mov ah,9
mov dx,offset msg1
int 21h
mov ah,1
int 21h
mov bx,ax
mov cx,'#'
boucle: cmp [bx],cx
je vide
inc i
while1: mov ah,9
mov dx,offset msg1
int 21h
mov ah,1
int 21h
mov bx,ax
mov cx,'#'
cmp [bx],cx
je fin
inc i
jmp while1
fin: jmp end1
vide: mov ah,9
mov dx,offset msg2
int 21h
end1:
mov ah,9
mov dx,offset msg3
int 21h
mov dx,i
mov ah,2
int 21h