|
-
Sep 21st, 2003, 02:08 AM
#1
Thread Starter
Fanatic Member
How to do this?
i am really confused ... (Preferab;y using DEBUG to solve the problwem)
i need only some basic stuff to accomplish this... can someone make an example for me...
i want it to prompt user for a number .... say 1 to 9
after that, i will produce a list of display /....:
if input is = 8
Then the result to be displayed at the screen is :
1 x 8 = 8
2 x 8 = 16
3 x 8 = 24
4 x 8 = 32
5 x 8 = 40
6 x 8 = 48
7 x 8 = 56
8 x 8 = 46
9 x 8 = 72
can this be done today... i need urgent help here
anyone ????
-
Sep 22nd, 2003, 10:18 AM
#2
Fanatic Member
Prompt the user using the INT 21h interrupt for the user to enter a single digit number.
Next, put the number into two registers.
Then print out number in which you are counting by, then '*', the integer in ASCII, and '='.
Next add the second register to the first.
Lastly, (here's the tricky part) print out the first register in ASCII.
I feel that once you understand the steps, you will be able to code this out in any instruction set you choose. I hope this helps.
"Can't" and "shouldn't" are two totally separate things.
All questions should be answered. All answers should be true. That is why I post.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|