home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The C Users' Group Library 1994 August
/
wc-cdrom-cusersgrouplibrary-1994-08.iso
/
listings
/
v_01_07
/
1n07022a
< prev
next >
Wrap
Text File
|
1990-11-05
|
937b
|
38 lines
small_code equ 4
large_code equ 6
model equ small_code ; set this for which memory model
.MODEL SMALL
.DATA
_windowfunc dd ? ; far void function pointer must
public _windowfunc ; be initialized to WinFuncPtr
; before calling _fastvesa()
.CODE
public _fastvesa
_fastvesa proc near
push bp
mov bp,sp
push ax ; save regs.
push dx
push bx
mov bx,[bp+model] ; get window number
mov dx,[bp+model+2] ; get window position
call _windowfunc
pop bx
pop dx
pop ax
mov sp,bp
pop bp
ret
_fastvesa endp
end