

mov dl, '0' test bl, 10000000b test first bit. print result in binary: mov bl, m mov cx, 8 print: mov ah, 2 print function. store result in m and print it in binary code. calculate the sum of elements in vector, Mov ah,09h lea dx,msg2 int 21h jmp salir igual: mov ah,09h lea dx,msg3 int 21h jmp salirĤ) Programa 3: Compilar un programa que permita sumar 10 valores asignados a un Mov ah,09h lea dx,msg4 int 21h mov ah,07h int 21h mov ah, 02h mov dl,al int 21h mov var1,al mov ah,09h lea dx,msg5 int 21h mov ah,07h int 21h mov ah,02h mov dl,al int 21h mov var2,alĬmp var1,al ja mayor jb menor je igual mayor: mov ah,09h lea dx,msg1 int 21h jmp salir menor: startup mov ah,00h mov al,03h int 10h mov ah,02h mov dx,0510h mov bh,0 int 10h

data var1 db ? var2 db ? msg1 db ' El primero es mayor $' msg2 db ' El segundo es mayor$' msg3 db ' Son iguales$' msg4 db ' Primero numero $' msg5 db ' Segundo numero $'
EMU8086 DESCARGAR CODE
Mov ah, 0Fh mov ah, 0 int 10h lea dx, mensaje mov ah, 9h int 21h int 20h mensaje db "Luis Francisco Viteri Vinueza PUCE-SI 03/05/16 COMPILADORES $",0 CODE ENDS end codigoģ) Programa 2: Compilar un programa que permita comparar 2 números del 0 al 9.Ĭódigo: URL. wait for any key press: mov ah, 0 int 16h retĢ) Programa 1: Compilar un programa en EMU8086 que indique lo siguiente: Nombre completo del estudiante, Universidad, Fecha y materia.Ĭódigo: CODE SEGMENT ASSUME CS:CODE, DS:CODE, SS:CODE, ES:CODE ORG 100h codigo: mov di, 03h start from byte after 'h' c: mov, 10101000b light red(1100) on yellow(1110) add di, 2 skip over next ascii code in vga memory. mov, 'H' mov, 'o' mov, 'l' mov, 'a' mov, ' ' mov, 'M' mov, 'u' mov, 'n' mov, 'd' mov, 'o' mov, '!' mov, '!' color all characters: mov cx, 12 number of characters. set segment register: mov ax, 0b800h mov ds, ax print "hello world" first byte is ascii code, second byte is color code. Org 100h set video mode mov ax, 3 text mode 80x25, 16 colors, 8 pages (ah=0, al=3) int 10h do it! cancel blinking and enable all 16 colors: mov ax, 1003h mov bx, 0 int 10h hex 0 1 2 3 4 5 6 7 8 9 a b c d eīin 0000 0001 0010 0011 0100 0101 0110 0111 1000 1001 1010 1011 1100 1101 1110Ĭolor black blue green cyan red magenta brown light gray dark gray light blue light green light cyan light red light magenta yellow character attribute is 8 bit value, high 4 bits set background color and low 4 bits set foreground color.
EMU8086 DESCARGAR WINDOWS
Proporciona a su usuario la capacidad de emular viejos procesadores 8086, que se utilizaron en computadoras Macintosh y Windows desde los aos 80 y principios de los 90. if you change the second byte, you can change the color of the character even after it is printed. EMU8086 - MICROPROCESSOR EMULATOR es un emulador gratuito para mltiples plataformas. in vga memory: first byte is ascii character, byte that follows is character attribute. INSTALACION EMU8086 1) Descargar de la página Oficial el programa y ejecutar el instaladorĤ) Dar un directorio o dejarlo por defectoĬódigo: name "hi-world" this example prints out "hello world!" by writing directly to video memory. DATOS INFORMATIVOS 1.1 Nombre: Luis Viteri 1.2 Carrera: Sistemas 1.3 Nivel: 5to 1.4 Tema: Compiladores 1.5 Fecha: 27/04/15 2. PONTIFICIA UIVERSIDAD CATÓLICA DEL ECUADOR SEDE IBARRAġ.
