我越来越符号代替INT当我问用户与readint
和writestring
之后进入rown
& coln
。我怎样才能让输入的int显示出来?获取符号而不是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
这是什么处理器/指令集? –
您应该确定平台和o/s。任何人能够回答这个问题的机会都很渺茫。我们没有'readint'等代码。 –
您可能需要先将数字转换为文本,或者如果每个数字都存在这样的函数,则可以使用'writeint'函数。 – user786653