byte *pal;\r
byte *ptr;\r
actor_t player;\r
- //actor_t npc0;\r
+ //actor_t npc0;
+
+ if(isEMS()) printf("%d\n", coretotalEMS());
+ if(isEMS())
+ {
+ emmhandle = alloc_emem(1024);
+ move_emem((XMOVE *)&map);
+// printf("%d\n", emmhandle);
+ printf("%d\n", coretotalEMS());
+ }\r
\r
/* create the map */\r
map = allocMap(MAPX,MAPY); //20x15 is the resolution of the screen you can make maps smaller than 20x15 but the null space needs to be drawn properly\r
initMap(&map);\r
mv.map = ↦\r
mv2.map = ↦\r
- mv3.map = ↦\r
-\r
+ mv3.map = ↦
+
/* draw the tiles */\r
ptr = map.data;\r
/* data */\r
ptmp = bitmapLoadPcx("ptmp.pcx"); // load sprite\r
//npctmp = bitmapLoadPcx("ptmp1.pcx"); // load sprite\r
-
- if(isEMS()) printf("%d\n", coretotalEMS());
- if(isEMS())
- {
- emmhandle = alloc_emem(256);
- printf("%d\n", emmhandle);
- }
\r
/* save the palette */\r
pal = modexNewPal();\r
//xmsfree(spri);
//xmsfree(mask);
//xmsreport();
- if(isEMS()) dealloc_emem(emmhandle);\r
+ if(isEMS())
+ {
+ printf("%d\n", coretotalEMS());
+ dealloc_emem(emmhandle);
+ printf("%d\n", coretotalEMS());
+ }\r
switch(detectcpu())\r
{\r
case 0: cpus = "8086/8088 or 186/88"; break;\r