flat assembler
Message board for the users of flat assembler.
Index
> DOS > Trying to make a program that stores your name and Password |
Author |
|
Tommy 22 Feb 2004, 18:53
Here's some procedures to use (click "Simple DOS I/O procedures"): http://www.microasm.net/prog/index.php
|
|||
22 Feb 2004, 18:53 |
|
Bitdog 22 Feb 2004, 18:58
Do a www.google.com search for Ralf Browns interrupt list and download
all the files INTER A-Z (P?) .ZIP and look up INT 21h function AH=0x0A the buffered input requires DS:DX point to a buffer that starts with the first byte being the buffers max size, then INT 21h AH=10 loads your key presses into the DS:DX buffer, at that point it is up to you the programmer to do something with it, you are saveing the address of the buffer, then over writting the buffer with more input. mov dx,buffer ;buffer for keyboard ;---THIS LOADS DX with the adr of buffer mov [password],dx ;stores password ; THIS moves the buff adr offset word into the first two bytes of what ever is at the label, "password" There just isn't anything to print when it's time to print. Might I suggest that you just move DX=adr of a different buffer each time. Code: MOV DX,NAME MOV AH,0x0A INT 21h MOV DX,PASSWORD MOV AH,0x0A INT 21h MOV DX,BUFFER MOV AH,0x0A INT 21h ;then use that data. I hope that helped some how. |
|||
22 Feb 2004, 18:58 |
|
Vertex78 22 Feb 2004, 23:06
Bitdog - Tommy, thanks for the info, i realize what i was doing wrong now. I am new to assembly and this board but it's nice to see that the members here don't mind helping out the newbs. Thanks!
|
|||
22 Feb 2004, 23:06 |
|
Tommy 23 Feb 2004, 09:18
You're welcome!
|
|||
23 Feb 2004, 09:18 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.