Printing out a number in assembly language?

后端 未结 10 1947
感动是毒
感动是毒 2020-12-03 04:39
mov al,10
add al,15

How do I print the value of \'al\'?

10条回答
  •  囚心锁ツ
    2020-12-03 05:36

    Assembly language has no direct means of printing anything. Your assembler may or may not come with a library that supplies such a facility, otherwise you have to write it yourself, and it will be quite a complex function. You also have to decide where to print things - in a window, on the printer? In assembler, none of this is done for you.

提交回复
热议问题