From a441011c1caef767126b9e547575bbec10e2d512 Mon Sep 17 00:00:00 2001 From: sparky4 Date: Fri, 25 Mar 2016 15:17:25 -0500 Subject: [PATCH] cleaned ^^ --- makefile | 12 +--------- src/sega.c | 67 ------------------------------------------------------ t2.bat | 1 - 3 files changed, 1 insertion(+), 79 deletions(-) delete mode 100755 src/sega.c delete mode 100755 t2.bat diff --git a/makefile b/makefile index 9ce52ddf..ada0800e 100755 --- a/makefile +++ b/makefile @@ -72,7 +72,7 @@ OFLAGS=-obmiler -out -oh -ei -zp8 -fpi87 -onac -ol+ -ok####x 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) @@ -116,16 +116,6 @@ tesuto.exe: tesuto.$(OBJ) $(DOSLIBLIBS) 16_head.$(OBJ) gfx.lib 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 diff --git a/src/sega.c b/src/sega.c deleted file mode 100755 index 3a271cd2..00000000 --- a/src/sega.c +++ /dev/null @@ -1,67 +0,0 @@ -#include -#include -#include - -struct list { -#ifdef __WATCOMC__ - struct list __based(__self) *next; -#endif -#ifdef __BORLANDC__ - struct list _seg *next; -#endif - int value; -}; - -void main(int argc, char *argv[]) -{ - int i; -#ifdef __WATCOMC__ - __segment segu; - void __based(__self) *pee; - struct list __based(segu) *head; - struct list __based(segu) *p; -#endif -#ifdef __BORLANDC__ - void _seg *pee; - struct list _seg *head; - struct list _seg *p; -#endif - - /* allocate based heap */ - segu = _bheapseg( 65536 ); - if( segu == _NULLSEG ) { - printf( "Unable to allocate based heap\n" ); - exit( 1 ); - } - - /* create a linked list in the based heap */ - head = 0; - for( i = 1; i < 4096; i++ ) { - p = _bmalloc( segu, sizeof( struct list ) ); - if( p == _NULLOFF ) { - printf( "_bmalloc failed\n" ); - break; - } - p->next = head; - p->value = i; - head = p; - } - - /* traverse the linked list, printing out values */ - for( p = head; p != 0; p = p->next ) { - if(p==head || p->next==0 || p==pee){ - printf("Segu = %04X", p); printf( " Value = %d\n", p->value ); - } - } - - printf("program=%FP\n", *argv[0]); - printf("seg=%04X\n", segu); - - /* free all the elements of the linked list */ - for( ; p = head; ) { - head = p->next; - _bfree( segu, p ); - } - /* free the based heap */ - _bfreeseg( segu ); -} diff --git a/t2.bat b/t2.bat deleted file mode 100755 index 7c034745..00000000 --- a/t2.bat +++ /dev/null @@ -1 +0,0 @@ -drawvrl5.exe data\aconita.vrl data\aconita.pal -- 2.39.5