Programa con opciones para seleccionar color <strong>de</strong> fondo pila segment stack 'stack' db 100h dup (?) pila ends datos segment titulo db 13,10,' CAMBIAR FONDO DE PANTALLA ',13,10,'$' mensaje db 'Presione ENTER si quiere la pantalla azul. Si quiere morado, presione 2',13,10,'Para salir, presione cualquier tecla',13,10,'$' datos ends codigo segment ;segmento <strong>de</strong> codigo assume cs:codigo, ss:pila, ds:datos inicio: mov ah,0 mov al,3h int 10h mov ax,0600h mov bh,0fh mov cx,0000h mov dx,184Fh int 10h mov ah,02h mov bh,00 mov dh,00 mov dl,00 int 10h mov ax,datos mov ds,ax lea dx,titulo mov ah,9h int 21h lea dx,mensaje mov ah,9h 74
int 21h mov ah,08 int 21h cmp al,13 je llamarAzul cmp al,50 je llamarMorado jmp fin fin: mov ax,4c00h int 21h llamarAzul: CALL AZULPROC llamarMorado: CALL MORADOPROC AZULPROC PROC NEAR mov ah,0 mov al,3h int 10h mov ax,0600h mov bh,0fh mov cx,0000h mov dx,184Fh int 10h mov ah,02h mov bh,00 mov dh,00 mov dl,00 int 10h mov ah,06h mov bh,1fh mov cx,0000h 75
- 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: MOV BH, 2FH usa los primeros 4 bits
- 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 and 90: Posicionar menú en pantalla TITLE
- Page 91 and 92: ENDM pop dx pop ax INICIO: LIMPIAR
- 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