home *** CD-ROM | disk | FTP | other *** search
- ; For large data, use the default data segment for
- ; BLACKSTAR variables.
- dseg macro name
- data segment word public name
- dgroup group data
- assume ds:dgroup
- endm
-
- enddseg macro
- data ends
- endm
-
- ;
- ; macro to pass a dgroup pointer to a c function
- ;
- mpassp macro pointer
-
- ifdef Large_data
- mov eax,seg dgroup ;need the segment
- push eax
- endif
- mov eax,offset dgroup:&pointer
- push eax
- endm
-
- alias macro name,size
- &name label &size
- public &name
- endm
-
- ;
- ; DOS call macro
- ;
- doscall macro function
- mov ah,&function
- int 21h
- endm
-
-
- DWRDSIZE macro
- ifdef asm_386
- QWORD
- else
- DWORD
- endif
- endm
-
- WRDSIZE macro
- ifdef asm_386
- DWORD
- else
- WORD
- endif
- endm
-
- defdw macro
- ifdef asm_386
- dq
- else
- dd
- endif
- endm
-
- defw macro
- ifdef asm_386
- dd
- else
- dw
- endif
- endm
-