📄 cmd.inc
字号:
.data?
rd argc
rd argv,10
.code
process_cmd proc
pushm esi,edi,ebx
call GetCommandLine
mov esi,eax
lea edi,argv
stosd
inc [argc]
dec esi
cmd_analysis:
inc esi
cmp byte ptr [esi],0
je cmd_done
cmp byte ptr [esi],20h
jne cmd_analysis
strip_space:
mov byte ptr [esi],0
inc esi
cmp byte ptr [esi],20h
je strip_space
cmp byte ptr [esi],0
je cmd_done
@@:
mov eax,esi
stosd ;ponter to syntax table including it's self
inc [argc]
jmp cmd_analysis
cmd_done:
popm ebx,edi,esi
ret
process_cmd endp
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -