--- /dev/null
+Seg:0 Size:6827 Owner:0x21ac\r
+Seg:1b84 Size:33 Owner:0xc846\r
+Seg:1ba5 Size:256 Owner:0xc258\r
+Seg:1f4a Size:45239 Owner:0xfe54\r
+Seg:d022 Size:4294967263 Owner:0xc483\r
+Seg:d022 Size:4294967263 Owner:0x0\r
+Seg:d022 Size:4294967263 Owner:0x8004\r
+Seg:d022 Size:4294967263 Owner:0x6f6\r
+Seg:d022 Size:4294967263 Owner:0x1\r
+Seg:d022 Size:4294967263 Owner:0x9a08\r
+Seg:d022 Size:4294967263 Owner:0x181e\r
+Seg:d022 Size:4294967263 Owner:0xea46\r
+Seg:d022 Size:4294967263 Owner:0x674\r
+Seg:d022 Size:4294967263 Owner:0x476\r
+Seg:d022 Size:419 Owner:0x0\r
+Seg:d1c5 Size:1959 Owner:0xefb4\r
+Seg:e000 Size:4294909951 Owner:0x5de5\r
ZFLAGS=-zk0 -zu -zc# -zm# -zdp# -zp16 -zq
DFLAGS=-DTARGET_MSDOS=16 -DMSDOS=1
-CFLAGS=-ei -wo -x -mc -r -fh=16.hed -k60000#16384#
+CFLAGS=-ei -wo -x -mc -r -k60000 -fh=16.hed#16384#
OFLAGS=-ot -ox -ob -oh -or -om -ol# -ol+
FLAGS=-0 -d2 -lr $(OFLAGS) $(CFLAGS) $(DFLAGS) $(ZFLAGS)
//file load or read definition
#define FILERL
-#define FILEREAD
+//#define FILEREAD
void
main(int argc, char *argv[])
return false;\r
\r
size = filelength(handle);\r
- if(!CA_FarRead(handle,*ptr,size, mm))\r
+ if(!CA_FarRead(handle, (void huge *)ptr,size, mm))\r
{\r
close(handle);\r
return false;\r
\r
size = filelength (handle);\r
MM_GetPtr(ptr,size, mm, mmi);\r
- if(!CA_FarRead(handle,*ptr,size, mm))\r
+ if(!CA_FarRead(handle,(void huge *)ptr,size, mm))\r
{\r
close(handle);\r
return false;\r
typedef enum {false,true} boolean;
//I hope this is correct!
//__self
-typedef void __based(__self) * memptr;
+//typedef void __based(__self) * memptr;
+typedef __segment * memptr;
typedef struct
{\r
int old_mode; //old video mode before game!
#endif
-#define SAVENEARHEAP 0//x200 // space to leave in data segment
+#define SAVENEARHEAP 0x200 // space to leave in data segment
#define SAVEFARHEAP 0x400 // space to leave in far heap
#define BUFFERSIZE 0x1000 // miscelanious, allways available buffer