
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import base64 | |
try: | |
include 'emu8086.inc' | |
Mostrar Macro Mensaje | |
LEA DX,Mensaje ;mandamos el mensaje a leer | |
MOV AH,9 ;usamos el servicio para mostrar en pantalla | |
INT 21H | |
endM | |
Terminar Macro | |
MOV AX,4C00H | |
INT 21H | |
endM | |
DATOS SEGMENT | |
ENCABEZADO DB 13,10,13,09h,09h,"===============================" | |
DB 13,10,13,09h,09h,"PROGRAMA QUE IMPRIME VALORES NUMERICOS DEC Y HEXA " | |
DB 13,10,13,09h,09h,"================================",13,10,"$" | |
ALINEAR DB 13,10,13,09h,09h | |
VALOR_1 DW 41D,"$" | |
VALOR_2 DW 42D,"$" | |
VALOR_3 DW 43D,"$" | |
VALOR_4 DW 44D,"$" | |
VALOR_5 DW 45D,"$" | |
VALOR_6 DW 46,"$" | |
VALOR_7 DW 47,"$" | |
VALOR_8 DW 48,"$" | |
VALOR_9 DW 49,"$" | |
VALOR_10 DW 50,"$" | |
DATOS ENDS | |
valores Macro | |
Mostrar ALINEAR | |
Mostrar VALOR_1 | |
Mostrar VALOR_2 | |
Mostrar VALOR_3 | |
Mostrar VALOR_4 | |
Mostrar VALOR_5 | |
Mostrar VALOR_6 | |
Mostrar VALOR_7 | |
Mostrar VALOR_8 | |
Mostrar VALOR_9 | |
Mostrar VALOR_10 | |
endM | |
Titulo Macro | |
Mostrar ENCABEZADO | |
endm | |
CODIGO SEGMENT | |
ASSUME CS: CODIGO,DS:DATOS,SS:PILA | |
Main PROC | |
MOV AX,DATOS | |
MOV DS,AX | |
Titulo | |
valores | |
Main ENDP | |
Terminar | |
CODIGO ENDS | |
END Main | |