Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Jan 4th, 2006, 6:59 AM   #1
CodeJunkie
Programmer
 
Join Date: Aug 2005
Location: England
Posts: 37
Rep Power: 0 CodeJunkie is on a distinguished road
Getting a correct input

Hi there anyone, was wondering if you can help?

I need to pull a users input in, ready for division
i have been using al, and the dos interupt 21h but this will only load one character at a time and the program needs to except numbers upto 255, so i need to buffer it some how, and check that the input is a number not characters, im a little confused how to do this?
CodeJunkie is offline   Reply With Quote
Old Jan 5th, 2006, 10:12 AM   #2
CodeJunkie
Programmer
 
Join Date: Aug 2005
Location: England
Posts: 37
Rep Power: 0 CodeJunkie is on a distinguished road
Sorry didnt explain myself to well, what i actually need to do is convert an ascii return value to a decimal number ready for division, cheers anybody?
CodeJunkie is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 12:43 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC