•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the Assembly section within the Software Development category of DaniWeb, a massive community of 456,556 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,441 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Assembly advertiser: Programming Forums
Views: 1828 | Replies: 13
![]() |
•
•
Join Date: Oct 2007
Posts: 9
Reputation:
Rep Power: 0
Solved Threads: 0
Hey guys i just joined, I am sure this is a dumb question, but i been googling for the past week and cant seem to find a simple answer. I been trying to learn asm and I am trying to make a menu system. So like you type 1 and it jumps to that, you type 2 it jumps to that and so on. I cant seem to find out how to get user input though. Sorry if the answer is already on the forums I cant seem to find it.
Thanks for you help.
Thanks for you help.
•
•
Join Date: Oct 2007
Location: Cherry Hill, NJ
Posts: 1,878
Reputation:
Rep Power: 13
Solved Threads: 193
•
•
Join Date: Aug 2005
Location: near St Louis, Missouri, USA
Posts: 11,541
Reputation:
Rep Power: 40
Solved Threads: 972
Also what assembler because some assemblers have macros that do all (or most) of the grunt work of calling system functions.
•
•
Join Date: Aug 2005
Location: near St Louis, Missouri, USA
Posts: 11,541
Reputation:
Rep Power: 40
Solved Threads: 972
•
•
Join Date: Aug 2005
Location: near St Louis, Missouri, USA
Posts: 11,541
Reputation:
Rep Power: 40
Solved Threads: 972
>>But i use NASM as my compiler
Its not a compiler, but an assembler.
Its not a compiler, but an assembler.
•
•
Join Date: Oct 2007
Posts: 9
Reputation:
Rep Power: 0
Solved Threads: 0
Well yea, So I try to do like
Shouldn't that let the user in put whatever he/she wants?
mov ah,01h int 16h
Shouldn't that let the user in put whatever he/she wants?
•
•
Join Date: Aug 2005
Location: near St Louis, Missouri, USA
Posts: 11,541
Reputation:
Rep Power: 40
Solved Threads: 972
you need a good explaination of those interrupt functions. Here is just one of them you can find. Function 1, which you posted, only tests to see if a key has been pressed. You have to call other functions to actually get the value, such as function 10. But it too only returns the value of ONE key, so you have to create a loop and keep calling those two functions until function 1 says no-more-keys.
what you do with those keys is up to you -- normally you will want to put then into a buffer so that they can be easily used whenever you want.
what you do with those keys is up to you -- normally you will want to put then into a buffer so that they can be easily used whenever you want.
Last edited by Ancient Dragon : Oct 19th, 2007 at 2:09 pm.
•
•
Join Date: Oct 2007
Posts: 9
Reputation:
Rep Power: 0
Solved Threads: 0
Ok thank you, just curious though with that they give you how to run the different things. Like for example....
INT 21,2B - Set Date
EXAMPLE
would i do
INT 21,2B - Set Date
EXAMPLE
would i do
section .data global _start _start: AH = 2B CX = 2007 DH = 10 DL = 22 int 21
Last edited by tifka : Oct 22nd, 2007 at 2:15 pm.
![]() |
•
•
•
•
•
•
•
•
DaniWeb Assembly Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Similar Threads
- User Input: Strings and Numbers [C] (C and C++ Tutorials)
- Handling Invalid User Input? (C)
- inline assembly getting user input.(djgpp) (Assembly)
- Type Conversion of User Input: (C++)
- Error Checking for user input (Java)
- error checking of user input (C++)
- user input into a string (C++)
- Creating a GUI that accepts user input help (Java)
- Need Help With Error Checking User Input (C)
- filtering bad user input (Java)
Other Threads in the Assembly Forum
- Previous Thread: How do I check
- Next Thread: Beginner Assembly Help



You must be awfully patient to wait all that time for your computer to boot up.
Linear Mode