![]() |
|
論壇說明 |
歡迎您來到『史萊姆論壇』 ^___^ 您目前正以訪客的身份瀏覽本論壇,訪客所擁有的權限將受到限制,您可以瀏覽本論壇大部份的版區與文章,但您將無法參與任何討論或是使用私人訊息與其他會員交流。若您希望擁有完整的使用權限,請註冊成為我們的一份子,註冊的程序十分簡單、快速,而且最重要的是--註冊是完全免費的! 請點擊這裡:『註冊成為我們的一份子!』 |
|
主題工具 | 顯示模式 |
![]() |
#1 |
註冊會員
|
![]() 小弟依然看不太懂他的意思...
這次的題目是要使用者輸入字串~然後大寫換小寫 我不懂怎麼輸入字串阿~冏rz...小弟誠心請大家幫忙~感恩~ ![]() 語法:
WriteString PROC Writes a null-terminated string to standard output. Call args: EDX = points to string Return arg: None Example: .data prompt BYTE "Enter your name: ",0 .code mov edx,OFFSET prompt call WriteString ReadString PROC Reads a string of up to ECX non-null characters from standard input, stopping when the user presses the Enter key. A null byte is stored following the characters input, but the trailing carriage return and line feed characters are not placed into the buffer. ECX should always be smaller than the buffer size (never equal to the buffer size) because the null byte could be the (ECX+1)th character stored. Call args: EDX points to the input buffer ECX max number of non-null chars to read Return arg: EAX = size of input string. Example: .data MAX = 80 ;max chars to read stringIn BYTE MAX+1 DUP (?) ;room for null .code mov edx,OFFSET stringIn mov ecx,MAX ;buffer size - 1 call ReadString Crlf PROC Writes a carriage return/linefeed sequence (0Dh,0Ah) to standard output. Call args: None Return arg: None Example: call Crlf |
![]() |
送花文章: 23,
![]() |