========================================
SIMPLE ASM (String Input)
[BITS 16] ;16 BIT MODE [ORG 100h] ; START .COM FILE 100h [SECTION .text] ;CODE mov dx,msg ;move "msg" --> data register mov ah,9h ;call display int 21h ;DO IT!! mov ah,0Ah ;call keyboard buffered input mov dx,buffer ;move buffer of 5 chars to data register int 21h ;DO IT!!! mov ah,9h ;call display mov dx,crlf ;move carriage return+line feed int 21h ;DO IT!!! mov ah,9h ;call display mov dx,buffer+2 ;mov buffer + 2 offset index --> data register int 21h ;DO IT!!! mov ax,4C00h ;call EXIT int 21h ;DO IT!!! [SECTION .data] ;SIMPLE DATA msg db "Enter Password:",'$' buffer db 5 ;SETUP Buffer of 5 chars - NULL db 0 times 5 db 0 ;0 out buffer db '$' ;estb NULL crlf 10,13,"$" ;10/13 = carriage return line feed===============================
CODED BY: JMC31337
Edited by WingedPanther, 12 February 2009 - 06:39 PM.
add cod


Sign In
Create Account


Back to top









