ca<strong>de</strong>na2 DB 2 DUP(0) VARIABLES ENDS CODIGO SEGMENT PARA PUBLIC 'co<strong>de</strong>' main PROC FAR ASSUME CS:CODIGO,DS:VARIABLES,SS:PILA,ES:VARIABLES mov ax,VARIABLES mov ds,ax mov es,ax LIMPIAR MACRO mov ax,0600h mov bh,127 mov cx,0000h mov dx,184fh int 10h ENDM GOTOXY MACRO x,y xor bh,bh mov dl,x mov dh,y mov ah,02h int 10h ENDM IMPRIME MACRO arg1 push ax push dx lea dx,arg1 mov ah,9 int 21h pop dx pop ax ENDM LEE MACRO arg1 push ax push dx lea dx,arg1 mov ah,10 int 21h 90
ENDM pop dx pop ax INICIO: LIMPIAR GOTOXY 0,0 IMPRIME mensaje0 GOTOXY 1,2 IMPRIME msj GOTOXY 1,3 IMPRIME msj1 GOTOXY 1,5 IMPRIME msj2 GOTOXY 1,1 IMPRIME mensaje1 GOTOXY 1,4 IMPRIME mensaje2 GOTOXY 20,4 LEE maximo_caracteres IMPRIME linea_en_blanco mov bx,0 pushpila: mov al,ca<strong>de</strong>na[bx] push ax inc bl cmp bl,lencad jne pushpila mov bx,0 poppila: pop ax mov girat[bx],al inc bl GOTOXY 24,9 cmp bl,lencad jne poppila mov girat[bx],'$' imprime girat IMPRIME linea_en_blanco GOTOXY 1,9 IMPRIME mensaje4 GOTOXY 25,14 IMPRIME mensaje5 91
- Page 1 and 2:
2016 Tutorial de ensamblador Thania
- Page 3 and 4:
Capítulo 2. Comenzando a programar
- Page 5 and 6:
Imprimir cadena en diagonal .......
- Page 7 and 8:
Capítulo 0. ¿Qué es ensamblador?
- Page 9 and 10:
Capítulo 1. Teoría básica Aclara
- Page 11 and 12:
el lugar donde pone la ropa tempora
- Page 13 and 14:
Las banderas que se utilizan en Ens
- Page 15 and 16:
Modo implícito En este modo se esp
- Page 17 and 18:
contener el número de índice. En
- Page 19 and 20:
Prnt Scrn para activarla externamen
- Page 21 and 22:
Capítulo 2. Comenzando a programar
- Page 23 and 24:
Declarando segmentos Para declarar
- Page 25 and 26:
Incremento y decremento Habrá mome
- Page 27 and 28:
OR Es verdadero si ambas situacione
- Page 29 and 30:
Obtención de una cadena con la rep
- Page 31 and 32:
Proceso de creación de un programa
- Page 33 and 34:
DQ Quad Word 64 bits DW 64 DUP(?) E
- Page 35 and 36:
Devolver control al BIOS Para que e
- Page 37 and 38:
Capítulo 3. Lectura desde el tecla
- Page 39 and 40: Código para capturar sin eco: mov
- Page 41 and 42: Capturar dos cadenas, mostrarlas y
- Page 43 and 44: mov ah,09h int 21h MOV DX, OFFSET V
- Page 45 and 46: mov ah,09h int 21h mov [si],byte pt
- Page 47 and 48: Invertir la cadena invertir: dec si
- Page 49 and 50: MINUS: INC SI MOV CL, 0DH CMP[SI],
- Page 51 and 52: Convertir a mayúsculas e invertir
- Page 53 and 54: ENDM mov dl,00 int 10h GOTOXY MACRO
- Page 55 and 56: jmp opcionDeSalida ENDM INVERTIRCAD
- Page 57 and 58: mov bx,0 llamarinvertir: CALL IC ll
- Page 59 and 60: Conversión cadena a mayúsculas, m
- Page 61 and 62: LEE MACRO arg1 push ax push dx lea
- Page 63 and 64: cmp bl,lencad jne poppila6 mov gira
- Page 65 and 66: MAIN ENDP CODIGO ENDS int 21h pila
- Page 67 and 68: Recorrer cadena MOV CX,16 MOV BX, O
- Page 69 and 70: mov ah,0ah mov al,byte ptr[di] mov
- Page 71 and 72: MOV AH, 02, como ya se mencionó an
- Page 73 and 74: MOV BH, 2FH usa los primeros 4 bits
- Page 75 and 76: int 21h mov ah,08 int 21h cmp al,13
- Page 77 and 78: Posicionar carácter en ciertas coo
- Page 79 and 80: Posicionar cadena indicada por el u
- Page 81 and 82: Manipular caracteres numéricos par
- Page 83 and 84: JC BIN_UNO MOV [DI], BYTE PTR '0' J
- Page 85 and 86: MOV AL,[SI] PUSH CX MOV CX,8 Este c
- Page 87 and 88: Capítulo 6. Validación por entrad
- Page 89: Posicionar menú en pantalla TITLE
- Page 93 and 94: Se asume que el segmento VARIABLES
- Page 95 and 96: IMPRIME msj GOTOXY 1,3 IMPRIME msj1
- Page 97 and 98: ANEXOS Tabla de saltos Instrucción
- Page 99 and 100: Instrucciones PUSH y POP que no coi