Howdy, Stranger!

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

Categories

Input numeric in assembly Linux and DOS

Hi every professional ,
I am newbie in the assembly language and until now I do not know how to input the number data type in the pure assembly langauge . I do not embedded it in C++ . In Dos environment , input ah 1 for char , ah 9 for string , ah 40 for file . But i do not know for number yet . And in Linux it is more quite troublesome with eax and edx . But i do not know how to input number either .
Any professional can help me .
Thank you and have nice weekend .

Comments

  • AsmGuru62AsmGuru62 Member Posts: 6,519
    [color=Blue]I do not understand this question. What is "input ah is 1 for char"? To put the value into a register simply use MOV instruction:
    [code]
    MOV AH, 40h
    [/code]
    Please rephrase the question. Explain what program are you writing.
    [/color]
Sign In or Register to comment.