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 >
Text File  |  1990-11-05  |  937b  |  38 lines

  1.  
  2.           small_code  equ      4
  3.           large_code  equ      6
  4.  
  5.           model     equ      small_code ; set this for which memory model
  6.  
  7. .MODEL SMALL
  8.  
  9. .DATA
  10.           _windowfunc dd  ?            ; far void function pointer must
  11.           public _windowfunc           ; be initialized to WinFuncPtr
  12.                                        ; before calling _fastvesa()
  13. .CODE
  14.           public    _fastvesa
  15. _fastvesa proc      near
  16.           push      bp
  17.           mov       bp,sp
  18.  
  19.           push      ax                 ; save regs.
  20.           push      dx
  21.           push      bx
  22.  
  23.           mov       bx,[bp+model]      ; get window number
  24.           mov       dx,[bp+model+2]    ; get window position
  25.           call      _windowfunc
  26.  
  27.           pop       bx
  28.           pop       dx
  29.           pop       ax
  30.  
  31.           mov       sp,bp
  32.           pop       bp
  33.           ret
  34. _fastvesa  endp
  35.  
  36.  
  37.          end
  38.