📄 console.inc
字号:
.586
.MODEL flat, stdcall
OPTION CASEMAP:NONE ;Case sensitive
Include windows.inc
Include kernel32.inc
Include masm32.inc
IncludeLib kernel32.lib
IncludeLib masm32.lib
Main PROTO
;;macros
Print_Text Macro txt:REQ ;;note txt is not a pointer
Invoke StdOut,ADDR txt
EndM
Get_Input Macro prompt:REQ,buffer:REQ ;;note prompt is not a pointer
Invoke StdOut,ADDR prompt
Invoke StdIn,ADDR buffer, LengthOf buffer
EndM
.DATA
Msg1 DB "Please Type Something: ",0AH,0DH,0
Msg2 DB "You Typed: ",0
Msg4 DB "Press Enter to Exit",0
CRLF DB 0AH,0DH,0
.DATA?
inbuf DB 100 DUP (?)
textbuf2 DB 100 DUP (?)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -