home *** CD-ROM | disk | FTP | other *** search
/ Shareware Overload / ShartewareOverload.cdr / windows / slap2.zip / STUB.ASM < prev   
Assembly Source File  |  1985-09-12  |  1KB  |  61 lines

  1. ;      MoveVid(psource, pdest, nbytes)
  2. ;
  3. ;        MoveVid moves nbytes of bytes from the source(in video memory) to a
  4. ;           destination in user memory.
  5. ;
  6. ;
  7. ;        psource --  far pointer to video memory location
  8. ;        pdest   --  far pointer to user meory
  9. ;        nbytes  --   int number of bytes to move
  10. ;
  11.  
  12.  
  13. ?WIN=1
  14. .xlist
  15. include cmacros.inc
  16. .list
  17.  
  18. assumes cs,CODE
  19.  
  20. sBegin  CODE
  21.  
  22. ExternFP    <LocalInit>
  23. ExternNP    <MyLoad>
  24.  
  25. ; CX = size of heap
  26. ; DI = module handle
  27. ; DS = automatic data segment
  28. ; ES:SI = address of command line (not used)
  29. ;
  30. cProc   Load,<FAR,PUBLIC,NODATA>,<si,di>
  31. cBegin
  32.         xor     ax,ax
  33.         jcxz    LoadExit                ; Fail if no heap
  34.         push    ax                      ; LocalInit((LPSTR)NULL, cbHeap);
  35.         push    ax
  36.         push    cx
  37.         call    LocalInit
  38.         jcxz    LoadExit
  39.         push    di                      
  40.         call    MyLoad
  41. LoadExit:
  42. cEnd
  43.  
  44. cProc   MoveIt, <FAR, PUBLIC>, <ds,es,si,di>
  45.         parmD   pSource                 ;source video pointer*/
  46.         parmD   pDest                   ;destination pointer
  47.         parmW   nBytes                  ;number of bytes to move
  48.  
  49. cBegin  MoveIt
  50.  
  51. ;
  52. ; Dummy _exit entry point so we avoid undefines when we link
  53. ;
  54. LabelNP <PUBLIC, _exit>
  55.  
  56. cEnd
  57.  
  58. sEnd    CODE
  59.  
  60.         end     Load
  61.