我越來越符號代替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