input / output

Hello, I need little help for my assignment, please.
I need to get input from user, and assign it to a variable for calculations later on in program.

this is a sample of what i got

.data
first_number db ?
message1 db "Enter number",0

main proc

mov dx, offset message1
call writestring
call Readint
*

*this is where I need to assign the users input into first_number
(I will be multipling two numbers together later on)

Please Help
Tanks alot
Frank

Comments

  • : Hello, I need little help for my assignment, please.
    : I need to get input from user, and assign it to a variable for calculations later on in program.
    :
    : this is a sample of what i got
    :
    : .data
    : first_number db ?
    : message1 db "Enter number",0
    :
    : main proc
    :
    : mov dx, offset message1
    : call writestring
    : call Readint
    : *
    :
    : *this is where I need to assign the users input into first_number
    : (I will be multipling two numbers together later on)
    :
    : Please Help
    : Tanks alot
    : Frank
    :
    :
    [blue]http://www.codexxi.com/MyBlocks.html[/blue]
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion