Howdy, Stranger!

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

Categories

input/output

nastinatornastinator Member Posts: 19
Hello, I am stuck on an assignment, and need help, please.

I need to get the users input and store it in a variable.
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 get the input and assign it to First_Number.

Please Help
Thanks alot
Frank

Comments

  • emu8086emu8086 Member Posts: 125
    [b][red]This message was edited by emu8086 at 2002-10-23 11:51:45[/red][/b][hr]
    see this:
    http://www.programmersheaven.com/c/MsgBoard/read.asp?Board=1&MsgID=147604&Setting=A9999F0001

    use it this way:
    [code]

    ... insert macro code here ...

    call SCAN_NUM
    MOV variable, CX

    RET ; exit...

    DEFINE_SCAN_NUM ; macro definition.

    ; this macro prints a
    ; char in AL and advances
    ; the current cursor
    ; position:
    PUTC MACRO char
    PUSH AX
    MOV AL, char
    MOV AH, 0Eh
    INT 10h
    POP AX
    ENDM

    [/code]


  • Chris BrownChris Brown USAMember Posts: 4,624 ✭✭

    { http://forcoder.org } free video tutorials and ebooks about / PHP, C#, Python, Delphi, Java, Scratch, R, Visual Basic .NET, C, Objective-C, PL/SQL, Perl, Go, Swift, C++, Assembly, MATLAB, Visual Basic, JavaScript, Ruby D, Ada, Lua, Bash, Apex, F#, Kotlin, Prolog, VBScript, Dart, Julia, LabVIEW, Alice, Erlang, Logo, Scala, COBOL, Hack, Crystal, Fortran, Awk, Clojure, Scheme, ML, FoxPro, Lisp, Transact-SQL, Rust, SAS, ABAP / _

Sign In or Register to comment.