Howdy, Stranger!

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



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.

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


  • emu8086emu8086 Member Posts: 125
    [b][red]This message was edited by emu8086 at 2002-10-23 11:51:45[/red][/b][hr]
    see this:

    use it this way:

    ... 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
    MOV AL, char
    MOV AH, 0Eh
    INT 10h
    POP AX


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

    { } 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.