flat assembler
Message board for the users of flat assembler.
Index
> DOS > Done correctly? |
Author |
|
Dex4u 02 Apr 2006, 08:12
I would remove it, also i would put a upper and lower case check, just in case of cap lock etc.
Next i would do a program to get users name, age etc and then print it back with a message including there name etc ), Then try a password input, that asks for password, stores it and loops until they give you the password. Nice work, just keep writing a simple program a day and before you know it, you will be coding your own OS . |
|||
02 Apr 2006, 08:12 |
|
Matrix 02 Apr 2006, 12:42
Steve wrote: Hi, I decided to take a stab at a 'Get Keystroke' type program. Right now, it seems like it is completed. hi, Code: mov ah, 00h ; AH = 00h / INT = 16h : Get Keystroke int 16h ; Get keystroke. cli ; Disable interrupts. cmp al, 'y' ; Check if AL ho this is what we say, inconsistent, you disable the interrupts, then call interrupt 16h to read the keyboard. |
|||
02 Apr 2006, 12:42 |
|
daluca 02 Apr 2006, 20:04
i use int 16h ah=0 alot and i never use cli,it has allways work for me.
i think you can remove the jmp Exit to unlese you put more code or data between the jmp Exit and Exit: and you can modify the data to: Code: mText db 'Press Y(es) to loop or N(o) to exit.',13,10,'$' to show the text in a new line every time. and i think use16 is not necesary since fasm default format is 16bit binary flat.the org 100h directive makes fasm save the output file with com extension....although use16 dos not affect the code in this program. |
|||
02 Apr 2006, 20:04 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.