19.04.2018 Views

Tutorial de ensamblador

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

maximo_caracteres2 DB 2<br />

lencad2 DB 0<br />

ca<strong>de</strong>na2 DB 2 DUP(0)<br />

menu db 'Que <strong>de</strong>sea hacer con la ca<strong>de</strong>na ingresada?',13,10<br />

VARIABLES ENDS<br />

db '1)Convertirla a mayusculas',13,10<br />

db '2)Invertir la ca<strong>de</strong>na',13,10<br />

db '3)Salir$',13,10<br />

CODIGO SEGMENT PARA PUBLIC 'co<strong>de</strong>'<br />

main PROC FAR<br />

ASSUME CS:CODIGO,DS:VARIABLES,SS:pila,ES:VARIABLES<br />

mov ax,VARIABLES<br />

mov ds,ax<br />

mov es,ax<br />

LIMPIAR MACRO<br />

mov ah,0<br />

mov al,3h<br />

int 10h<br />

mov ax,0600h<br />

mov bh,0fh<br />

mov cx,0000h<br />

mov dx,184Fh<br />

int 10h<br />

mov ah,02h<br />

mov bh,00<br />

mov dh,00<br />

52

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!