Last active
November 30, 2021 02:45
-
-
Save RedToor/da14fe596f45c3bac5d5a873ca629834 to your computer and use it in GitHub Desktop.
Leer datos en Lenguaje Ensamblador
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
; Ensamblador Para 8086 | |
; Recibir Cadenas | |
; http://www.ousob.com/ng/asm/ng5589f.php | |
; Por RedToor | |
.MODEL TINY | |
.STACK | |
.DATA | |
VAR DB ? ; Variable para la Entrada | |
.CODE | |
MAIN: | |
; Obtener Datos | |
MOV AX,@DATA ; Direccion de DATA en AX | |
MOV DS, AX ; Direccion de DATA en Data segment | |
; Leer Entrada | |
MOV DX, OFFSET VAR ; Obtiene la Direccion de "VAR" | |
MOV AH, 3FH ; Funcion (Read from File or Device, Using a Handle) | |
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