_video.asm
来自「开放源码的编译器open watcom 1.6.0版的源代码」· 汇编 代码 · 共 62 行
ASM
62 行
include ..\cwlib.inc
scode
;-------------------------------------------------------------------------
;
;Initialise video stuff, includeing VESA extension.
;
;Calling:
;
;VideoInitialise();
;
;On Entry:
;
;nothing.
;
;On Exit:
;
;Carry set on error and EAX=error code.
;
;Error codes:
;
;0 - no error.
;1 - couldn't allocate selector for video memory.
;2 - not enough memory for bitmap control table.
;3 - video system not supported, ie, not (S)VGA.
;
;ValidModeList will be filled in with all modes supported.
;
_VideoInitialise proc syscall
public _VideoInitialise
call VideoInitialise
ret
_VideoInitialise endp
;-------------------------------------------------------------------------
;
;Remove video stuff, includeing VESA support if installed.
;
;Calling:
;
;VideoRemove();
;
;On Entry:
;
;nothing.
;
;On Exit:
;
;ALL registers preserved.
;
_VideoRemove proc syscall
public _VideoRemove
call VideoRemove
ret
_VideoRemove endp
efile
end
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?