Last active
October 17, 2022 01:14
-
-
Save RedToor/f45a25a196dbb22a385437c415777bb9 to your computer and use it in GitHub Desktop.
Imprimir Datos en Lenguaje Ensamblador
This file contains hidden or 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
; Ensamblador Para 8086 | |
; Imprimir Cadenas | |
; http://www.ousob.com/ng/asm/ng4776d.php | |
; Por RedToor | |
.MODEL TINY | |
.STACK | |
.DATA | |
MSG DB 10,13,'Hola Mundo$' | |
.CODE | |
MAIN: | |
; Obtener Datos | |
MOV AX,@DATA ; Direccion de DATA en AX | |
MOV DS, AX ; Direccion de DATA en Data segment | |
; Imprimir | |
MOV AH, 9 ; Funcion (Print String) Imprimir Cadena | |
LEA DX, MSG ; Obtiene la Direccion de "MSG" | |
INT 21H ; Ejecutar | |
; FIN | |
MOV AH, 4cH ; Terminacion de Programa con Codigo de Retorno | |
INT 21H ; Ejecutar | |
END MAIN ; Terminar Funcion Principal |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment