Name:
Location: Tijuana, Baja California N., Mexico

Soy un estudiante de Informatica en el TECNOLOGICO DE TIJUANA, y que trato de terminar mi carrera para poder hacer un profecionista exitoso. Pero lo mas Importante trato de ser un buen amigo aunque aveces me paso con la carrilla.

Google

Tuesday, January 31, 2006

Ejemplo 3: invertir cadena

.model small
.stack
.data
mensaje db 10,13, 'CLASE DE ENSAMBLADOR$'
mensaje1 db 10,13,'introduce cadena:$'
cv db 16 dup('$')
cvi db 16 dup('$')

.code
inicio:

mov ax,@data
mov ds,ax
mov es,ax

;desplegar mensages
mov ah,09h
mov dx,offset mensaje
int 21h

;cadena
mov ah,09h
mov dx,offset mensaje1
int 21h

;captura de cadena
mov ah,0ah
mov dx, offset cv
int 21h
cld

mov cx,16
lea si,cv

invertir:
lodsb
mov [di],al
dec di
loop invertir

mov di,cvi

;Imprimir cadena original
mov ah,09h
lea dx,cv
int 21h

;Imprimir cadena invertida
mov ah,09h
lea dx,cvi
int 21h

mov ah,4ch
int 21h
end

3 Comments:

Blogger lucykline4069560196 said...

Do you want free porn? Contact my AIM SN 'p1nkn3ss' just say 'give me some pics now!'.

No age verification required, totally free! Just send an instant message to AIM screen name "p1nkn3ss".

Any message you send is fine!

AIM abuse can be reported here.

1:55 AM  
Blogger crisammons25815598 said...

Get any Desired College Degree, In less then 2 weeks.

Call this number now 24 hours a day 7 days a week (413) 208-3069

Get these Degrees NOW!!!

"BA", "BSc", "MA", "MSc", "MBA", "PHD",

Get everything within 2 weeks.
100% verifiable, this is a real deal

Act now you owe it to your future.

(413) 208-3069 call now 24 hours a day, 7 days a week.

5:15 PM  
Blogger Neocrasyd Company said...

me da error al copiar la cadena invertida a la nueva cadena
mov di,cvi

5:48 PM  

Post a Comment

<< Home