home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Overload
/
ShartewareOverload.cdr
/
windows
/
slap2.zip
/
STUB.ASM
< prev
Wrap
Assembly Source File
|
1985-09-12
|
1KB
|
61 lines
; MoveVid(psource, pdest, nbytes)
;
; MoveVid moves nbytes of bytes from the source(in video memory) to a
; destination in user memory.
;
;
; psource -- far pointer to video memory location
; pdest -- far pointer to user meory
; nbytes -- int number of bytes to move
;
?WIN=1
.xlist
include cmacros.inc
.list
assumes cs,CODE
sBegin CODE
ExternFP <LocalInit>
ExternNP <MyLoad>
; CX = size of heap
; DI = module handle
; DS = automatic data segment
; ES:SI = address of command line (not used)
;
cProc Load,<FAR,PUBLIC,NODATA>,<si,di>
cBegin
xor ax,ax
jcxz LoadExit ; Fail if no heap
push ax ; LocalInit((LPSTR)NULL, cbHeap);
push ax
push cx
call LocalInit
jcxz LoadExit
push di
call MyLoad
LoadExit:
cEnd
cProc MoveIt, <FAR, PUBLIC>, <ds,es,si,di>
parmD pSource ;source video pointer*/
parmD pDest ;destination pointer
parmW nBytes ;number of bytes to move
cBegin MoveIt
;
; Dummy _exit entry point so we avoid undefines when we link
;
LabelNP <PUBLIC, _exit>
cEnd
sEnd CODE
end Load