home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Jason Aller Floppy Collection
/
123.img
/
TASM.ZIP
/
ASMPROC.ASM
< prev
next >
Wrap
Assembly Source File
|
1988-10-31
|
790b
|
25 lines
DATA SEGMENT WORD PUBLIC
ASSUME DS:DATA
EXTRN A:WORD ;variable from the unit
DATA ENDS
CODE SEGMENT BYTE PUBLIC
ASSUME CS:CODE
EXTRN PublicProc : FAR ;far procedure (exported by the unit)
EXTRN NearProc : NEAR ;near procedure (local to unit)
EXTRN FarProc : FAR ;far procedure (local but forced far)
AsmProc PROC NEAR
PUBLIC AsmProc
CALL FAR PTR PublicProc
CALL NearProc
CALL FAR PTR FarProc
mov cx,ds:A ;pull in variable A from the unit
sub cx,2 ;do something to change it
mov ds:A,cx ;store it back
RET
AsmProc ENDP
CODE ENDS
END