?? readconsole.asm
字號:
TITLE Read From the Console (ReadConsole.asm)
; Read a line of input from standard input.
; Last update: 1/20/02
INCLUDE Irvine32.inc
BufSize = 80
.data
buffer BYTE BufSize DUP(?),0,0
stdInHandle DWORD ?
bytesRead DWORD ?
.code
main PROC
; Get handle to standard input
INVOKE GetStdHandle, STD_INPUT_HANDLE
mov stdInHandle,eax
; Wait for user input
INVOKE ReadConsole, stdInHandle, ADDR buffer,
BufSize - 2, ADDR bytesRead, 0
; Display the buffer
mov esi,OFFSET buffer
mov ecx,16 ; 16 bytes
mov ebx,TYPE buffer
call DumpMem
exit
main ENDP
END main
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -