Created
June 9, 2020 23:34
-
-
Save brandon22esquivel/e1cd077583a585b3ea41a1a87e742d8b to your computer and use it in GitHub Desktop.
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
.model small | |
.stack ;Definiremos la pila de datos | |
.data ;Debe de reservar un espacio de memoria para las variables que definiremos | |
mensaje db 13,10,'Hola Mundo $' ;Creamos nuestra variable con un mensaje | |
mensaje2 db 13,10, 'Desarrollo de Software $' | |
.code | |
inicio: | |
mov ax, @data ; @data Regresa los datos a pantalla | |
mov ds,ax ;@data debe regresar a ds significa registro de dato de todas las constantes | |
;mov ds, @data ,es incorrecto ya que no se puede mover un segmento de dato directamente | |
;a una constante | |
;Imprime el mensaje Hola Mundo | |
lea dx, mensaje ;movemos nuestra variable a dx | |
mov ah,9h ;Funcion de la interrupcion 21h se bede agregar a la parte alta de ah | |
int 21h ;Interrumpimos | |
;Imprime el mensaje Desarrollo de Software | |
lea dx, mensaje2 | |
mov ah,9h | |
int 21h | |
end inicio |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment