2014-08-22 15:06:33 +00:00
|
|
|
; ReC98
|
|
|
|
; Main include file
|
|
|
|
|
|
|
|
locals
|
|
|
|
|
|
|
|
include libs/BorlandC/RULES.ASI
|
2014-10-30 08:38:46 +00:00
|
|
|
include libs/BorlandC/ctype.inc
|
2014-10-27 01:50:32 +00:00
|
|
|
include libs/BorlandC/dos.inc
|
2014-10-15 06:39:22 +00:00
|
|
|
include libs/BorlandC/doserror.inc
|
2014-11-09 13:49:18 +00:00
|
|
|
include libs/BorlandC/errno.inc
|
2014-10-11 21:53:17 +00:00
|
|
|
include libs/BorlandC/fcntl.inc
|
2014-10-13 04:12:09 +00:00
|
|
|
include libs/BorlandC/stdio.inc
|
2014-11-01 16:57:50 +00:00
|
|
|
include libs/BorlandC/_printf.inc
|
2014-10-13 04:12:09 +00:00
|
|
|
include libs/BorlandC/sys/stat.inc
|
2014-08-22 15:06:33 +00:00
|
|
|
include libs/master.lib/func.inc
|
|
|
|
include libs/master.lib/super.inc
|
2014-08-25 02:49:19 +00:00
|
|
|
include libs/master.lib/bgm.inc
|
2014-08-26 18:54:57 +00:00
|
|
|
include libs/master.lib/pf.inc
|
2014-08-28 01:42:26 +00:00
|
|
|
include libs/master.lib/clip.inc
|
2014-08-22 15:08:37 +00:00
|
|
|
|
2014-08-26 04:07:19 +00:00
|
|
|
; Manually put dseg into DGROUP if we're not tiny. The alternative, renaming
|
2014-10-31 06:17:05 +00:00
|
|
|
; dseg to _DATA - a segment automatically generated by the .MODEL directive -
|
|
|
|
; unfortunately doesn't work for us because we have no control over the
|
|
|
|
; segment's alignment value...
|
2014-08-26 04:07:19 +00:00
|
|
|
if @model ne 1
|
|
|
|
DGROUP group dseg
|
|
|
|
endif
|
|
|
|
|
2014-08-22 15:08:37 +00:00
|
|
|
nopcall macro func
|
|
|
|
if LDATA
|
|
|
|
nop ; PC-98 Touhou compatibility
|
|
|
|
endif
|
|
|
|
call func
|
|
|
|
endm
|
2014-08-22 17:28:05 +00:00
|
|
|
|
2014-11-13 23:55:00 +00:00
|
|
|
; Avoids specifying both segment and offset of a function. Too bad that it
|
|
|
|
; still doesn't cause TASM to require [func] to be a valid identifier.
|
|
|
|
setfarfp macro farfp, func
|
|
|
|
mov word ptr farfp+2, seg func
|
|
|
|
mov word ptr farfp, offset func
|
|
|
|
endm
|
|
|
|
|
2014-08-22 17:28:05 +00:00
|
|
|
pushSS_ macro
|
|
|
|
if LDATA
|
|
|
|
push ss
|
|
|
|
endif
|
|
|
|
endm
|
2014-10-30 08:38:46 +00:00
|
|
|
|
|
|
|
popCX_ macro
|
|
|
|
if LDATA
|
|
|
|
pop cx
|
|
|
|
endif
|
|
|
|
endm
|