|
- .386
- .model flat,stdcall
- option casemap:none
- include windows.inc
- include user32.inc
- include kernel32.inc
- include winmm.inc
- includelib kernel32.lib
- includelib user32.lib
- includelib winmm.lib
- .const
- msvc db 'msvcrt.dll',0
- printf db 'printf',0
- system db 'system',0
- timeBegin db 'fps提升到300fps,按任意键退出',0AH,0
- pause db 'pause',0
- .data
- printf_addr dd ?
- system_addr dd ?
- .code
- start:
- push ebp
- mov ebp,esp
- pushad
- invoke LoadLibrary,offset msvc
- invoke GetProcAddress,eax,offset printf
- mov printf_addr,eax
- invoke LoadLibrary,offset msvc
- invoke GetProcAddress,eax,offset system
- mov system_addr,eax
- popad
- push -1
- push offset timeBegin
- call printf_addr
- add esp,8
- invoke timeBeginPeriod,3
- push start
- push offset pause
- call system_addr
- add esp,8
- invoke timeEndPeriod,10
- mov esp,ebp
- pop ebp
- retn
- end start
复制代码 invoke timeBeginPeriod,3这个改成1就是1ms
2就是2ms
自己想吧。。
无聊写的。。。嘎嘎 |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?注个册吧
×
|