FLAGS=$(CFLAGS) $(OFLAGS) $(DFLAGS) $(ZFLAGS)
-DOSLIBEXMMOBJ = himemsys.$(OBJ) emm.$(OBJ)
+#DOSLIBEXMMOBJ = himemsys.$(OBJ) emm.$(OBJ)
VGMSNDOBJ = vgmSnd.$(OBJ) 16_snd.$(OBJ)
DOSLIBOBJ = adlib.$(OBJ) 8254.$(OBJ) 8259.$(OBJ) dos.$(OBJ) cpu.$(OBJ)
16LIBOBJS = 16_in.$(OBJ) 16_mm.$(OBJ) wcpu.$(OBJ) 16_head.$(OBJ) 16_ca.$(OBJ) kitten.$(OBJ) 16_hc.$(OBJ) 16_timer.$(OBJ)
tesuto.$(OBJ): $(SRC)tesuto.c
wcl $(FLAGS) $(WCLQ) -c $(SRC)tesuto.c
-#tesuto.exe: tesuto.$(OBJ)
-# wcl $(WCLQ) -mh -d2 tesuto.$(OBJ)
-#tesuto.$(OBJ): $(SRC)tesuto.c
-# wcl $(WCLQ) -mh -d2 -c $(SRC)tesuto.c
-
-#sega.exe: sega.$(OBJ)
-# wcl $(FLAGS) sega.$(OBJ)
-#sega.$(OBJ): $(SRC)sega.c
-# wcl $(FLAGS) -c $(SRC)sega.c
-
test.exe: test.$(OBJ) gfx.lib 16_in.$(OBJ) 16_head.$(OBJ)
wcl $(FLAGS) test.$(OBJ) gfx.lib 16_in.$(OBJ) 16_head.$(OBJ) -fm=test.map
+++ /dev/null
-#include <stdio.h>\r
-#include <stdlib.h>\r
-#include <malloc.h>\r
-\r
-struct list {
-#ifdef __WATCOMC__\r
- struct list __based(__self) *next;
-#endif
-#ifdef __BORLANDC__
- struct list _seg *next;
-#endif\r
- int value;\r
-};\r
-\r
-void main(int argc, char *argv[])\r
-{\r
- int i;
-#ifdef __WATCOMC__\r
- __segment segu;
- void __based(__self) *pee;\r
- struct list __based(segu) *head;\r
- struct list __based(segu) *p;
-#endif
-#ifdef __BORLANDC__
- void _seg *pee;\r
- struct list _seg *head;\r
- struct list _seg *p;
-#endif\r
-\r
- /* allocate based heap */\r
- segu = _bheapseg( 65536 );\r
- if( segu == _NULLSEG ) {\r
- printf( "Unable to allocate based heap\n" );\r
- exit( 1 );\r
- }\r
-\r
- /* create a linked list in the based heap */\r
- head = 0;\r
- for( i = 1; i < 4096; i++ ) {\r
- p = _bmalloc( segu, sizeof( struct list ) );\r
- if( p == _NULLOFF ) {\r
- printf( "_bmalloc failed\n" );\r
- break;\r
- }\r
- p->next = head;\r
- p->value = i;\r
- head = p;\r
- }\r
-\r
- /* traverse the linked list, printing out values */\r
- for( p = head; p != 0; p = p->next ) {\r
- if(p==head || p->next==0 || p==pee){
- printf("Segu = %04X", p); printf( " Value = %d\n", p->value );
- }\r
- }\r
-
- printf("program=%FP\n", *argv[0]);
- printf("seg=%04X\n", segu);
-\r
- /* free all the elements of the linked list */\r
- for( ; p = head; ) {\r
- head = p->next;\r
- _bfree( segu, p );\r
- }\r
- /* free the based heap */\r
- _bfreeseg( segu );
-}\r