当我要求用户输入rown
&coln
和之后,readint
我得到的是符号而不是 int。writestring
如何让输入的 int 显示出来?
.686
.MODEL FLAT, STDCALL
.STACK
INCLUDE Irvine32.inc
.Data
txt1 byte "ENTER NUM OF ROWS:",0dh,0ah,0
txt2 byte "ENTER NUM OF COLUMNS:",0dh,0ah,0
txt3 byte "ENTER AN ARRAY OF"
rown byte 0,"x" ;rows number
coln byte 0,":",0dh,0ah,0 ;columns number
.CODE
main PROC
mov edx,offset txt1
call writestring ;asks the user to enter the rows number
call readint
mov rown,al
mov edx,offset txt2
call writestring
call readint ;asks the user to enter the columns number
mov coln,al
mov edx, offset txt3
call writestring ;;;;; here is the problem !!!!!
call waitmsg
exit
main ENDP
END main