User Name Password Register
DaniWeb IT Discussion Community
All
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,554 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,485 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: 2017 | Replies: 3
Reply
Join Date: Oct 2007
Posts: 2
Reputation: msg is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
msg msg is offline Offline
Newbie Poster

Question capturing string data from keyboard/input

  #1  
Oct 19th, 2007
Hi,
I am using NASM and I am having a problem finding the correct instruction to capture string (more than one character) data from the keyboard.

I can capture int data (read_int) or even one character with get_kb

Any help would be appreciated.
Thanks
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Dec 2005
Posts: 3,834
Reputation: Salem has much to be proud of Salem has much to be proud of Salem has much to be proud of Salem has much to be proud of Salem has much to be proud of Salem has much to be proud of Salem has much to be proud of Salem has much to be proud of Salem has much to be proud of Salem has much to be proud of 
Rep Power: 23
Solved Threads: 436
Colleague
Salem's Avatar
Salem Salem is offline Offline
banned

Re: capturing string data from keyboard/input

  #2  
Oct 19th, 2007
Call your single key routine in a loop until
- the buffer where you're storing the string becomes full
- some previously determined character (say newline) is received.
Reply With Quote  
Join Date: Oct 2007
Posts: 2
Reputation: msg is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
msg msg is offline Offline
Newbie Poster

Re: capturing string data from keyboard/input

  #3  
Oct 19th, 2007
Thanks for your reply. So, there is not a readstring command?
Reply With Quote  
Join Date: Aug 2005
Location: near St Louis, Missouri, USA
Posts: 11,541
Reputation: Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of 
Rep Power: 40
Solved Threads: 972
Moderator
Featured Poster
Ancient Dragon's Avatar
Ancient Dragon Ancient Dragon is offline Offline
Most Valuable Poster

Re: capturing string data from keyboard/input

  #4  
Oct 19th, 2007
Originally Posted by msg View Post
Thanks for your reply. So, there is not a readstring command?


Nope -- in assembly language you have to roll your own. You can use C library functions, but that would defeat the purpose of you writing assembly language.
Last edited by Ancient Dragon : Oct 19th, 2007 at 12:06 pm.
<<Freelance Programmer>> << Hobby Site>>
Signature links for sale. PM me for details
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb Assembly Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the Assembly Forum

All times are GMT -4. The time now is 5:25 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC