c2e.convert_special: 0
e2c.convert_num: 0
-openfiles: /dos/z/16/doc/project.txt:138:0:0:
-openfiles: /dos/z/16/src/palettec.c:179:0:0:
-openfiles: /dos/z/16/src/pcxtest.c:141:0:0:
-openfiles: /dos/z/16/src/scroll.c:2181:1209:0:
-openfiles: /dos/z/16/src/fmemtest.c:116:0:0:
+openfiles: /dos/z/16/doc/project.txt:127:0:0:
+openfiles: /dos/z/16/src/palettec.c:882:85:1:
+openfiles: /dos/z/16/src/pcxtest.c:891:0:0:
+openfiles: /dos/z/16/src/scroll.c:4297:3926:0:
+openfiles: /dos/z/16/src/fmemtest.c:890:0:0:
openfiles: /dos/z/16/src/emmtest.c:439:0:0:
-openfiles: /dos/z/16/src/emsdump.c:59:0:0:
-openfiles: /dos/z/16/src/maptest.c:64:0:0:
-openfiles: /dos/z/16/src/maptest0.c:366:0:0:
-openfiles: /dos/z/16/src/test.c:0:0:0:
-openfiles: /dos/z/16/src/test2.c:0:0:0:
-openfiles: /dos/z/16/src/lib/modex16.c:2759:2367:0:
-openfiles: /dos/z/16/src/lib/modex16.h:1279:866:0:
-openfiles: /dos/z/16/src/lib/planar.h:131:0:0:
-openfiles: /dos/z/16/src/lib/PLANAR.C:0:0:0:
-openfiles: /dos/z/16/src/lib/bitmap.c:1152:604:0:
-openfiles: /dos/z/16/src/lib/bitmap.h:257:0:0:
-openfiles: /dos/z/16/src/lib/dos_kb.c:2857:2407:0:
-openfiles: /dos/z/16/src/lib/dos_kb.h:0:0:0:
-openfiles: /dos/z/16/src/lib/mapread.c:2265:1988:0:
-openfiles: /dos/z/16/src/lib/mapread.h:585:0:0:
+openfiles: /dos/z/16/src/emsdump.c:890:0:0:
+openfiles: /dos/z/16/src/maptest.c:890:0:0:
+openfiles: /dos/z/16/src/maptest0.c:890:0:0:
+openfiles: /dos/z/16/src/test.c:890:0:0:
+openfiles: /dos/z/16/src/test2.c:890:0:0:
+openfiles: /dos/z/16/src/lib/modex16.c:890:0:0:
+openfiles: /dos/z/16/src/lib/modex16.h:966:338:0:
+openfiles: /dos/z/16/src/lib/planar.h:1010:511:0:
+openfiles: /dos/z/16/src/lib/planar.c:944:0:0:
+openfiles: /dos/z/16/src/lib/bitmap.c:890:0:0:
+openfiles: /dos/z/16/src/lib/bitmap.h:0:0:0:
+openfiles: /dos/z/16/src/lib/wcpu/wcpu.c:942:0:0:
+openfiles: /dos/z/16/src/lib/wcpu/wcpu.h:995:0:0:
+openfiles: /dos/z/16/src/lib/dos_kb.c:118:0:0:
+openfiles: /dos/z/16/src/lib/dos_kb.h:361:0:0:
+openfiles: /dos/z/16/src/lib/mapread.c:2792:1988:0:
+openfiles: /dos/z/16/src/lib/mapread.h:148:0:0:
openfiles: /dos/z/16/src/lib/fmapread.c:5968:4541:0:
openfiles: /dos/z/16/src/lib/fmapread.h:240:0:0:
-openfiles: /dos/z/16/src/lib/exmm/memory.c:308:99:0:
+openfiles: /dos/z/16/src/lib/exmm/memory.c:308:215:0:
openfiles: /dos/z/16/src/lib/exmm/memory.h:0:0:0:
-openfiles: /dos/z/16/src/lib/exmm/emmsize.h:0:0:0:
+openfiles: /dos/z/16/src/lib/exmm/emmsize.h:1223:819:0:
openfiles: /dos/z/16/src/lib/exmm/emmret.h:0:0:0:
-openfiles: /dos/z/16/src/lib/jsmn/farjsmn.c:7182:6673:0:
+openfiles: /dos/z/16/src/lib/jsmn/farjsmn.c:7182:6170:0:
openfiles: /dos/z/16/src/lib/jsmn/farjsmn.h:861:381:0:
-openfiles: /dos/z/16/src/lib/lib_head.c:0:0:0:
-openfiles: /dos/z/16/src/lib/lib_head.h:2786:1673:0:
-openfiles: /dos/z/16/makefile:2533:2173:0:
-openfiles: /dos/z/16/src/lib/types.h:528:0:0:
-openfiles: /dos/z/16/src/16.h:850:0:0:
-openfiles: /dos/z/16/src/16.c:854:0:1:
+openfiles: /dos/z/16/src/lib/lib_head.c:890:0:0:
+openfiles: /dos/z/16/src/lib/lib_head.h:890:338:0:
+openfiles: /dos/z/16/makefile:890:45:0:
+openfiles: /dos/z/16/src/lib/types.h:885:0:0:
+openfiles: /dos/z/16/src/16.h:943:0:0:
+openfiles: /dos/z/16/src/16.c:929:0:0:
+openfiles: /dos/z/16/src/lib/scroll16.h:961:0:0:
+openfiles: /dos/z/16/src/lib/scroll16.c:944:0:0:
snr_recursion_level: 0
convertcolumn_horizontally: 0
adv_open_matchname: 0
default_mime_type: text/plain
e2c.convert_xml: 1
c2e.convert_iso: 0
-opendir: file:///dos/z/16
+opendir: file:///dos/z/16/src/lib/wcpu
wrap_text_default: 0
bookmarks_filename_mode: 1
-ssearch_text: mapscrollr
+ssearch_text: getfree
snr_casesens: 0
view_blocks: 1
name: Project 16
recent_files: file:///dos/z/16/src/scroll.c
recent_files: file:///dos/z/16/src/lib/modex16.c
recent_files: file:///dos/z/16/16.c
+recent_files: file:///dos/z/16/src/lib/wcpu/wtest.c
+recent_files: file:///dos/z/16/src/lib/wcpu/wtest.h
+recent_files: file:///dos/z/16/src/lib/wcpu/makefile
snr_replacetype: 0
savedir: file:///dos/z/16/src
spell_check_default: 1
htmlbar_view: 0
spell_lang: en
ssearch_dotmatchall: 0
-searchlist: voi scroll
-searchlist: void scrollright
-searchlist: void mscrollright
-searchlist: void mascrollright
-searchlist: void mapscrollright
-searchlist: scrollright
-searchlist: mvdb[id].mv
searchlist: ]->
searchlist: scroll
searchlist: mscroll
searchlist: mv->
searchlist: mapscrollr
searchlist: <alloc
+searchlist: pcxt
+searchlist: pallettec
+searchlist: palettec
+searchlist: free
+searchlist: gfree
+searchlist: gefree
+searchlist: getfree
autocomplete: 1
outputb_show_all_output: 0
bookmarks_show_mode: 0
Project 16\r
彼岸花 Project 01 話の地球 //Higanbana Project 01 ~ Story of Chikyuu\r
-to make an epic as fuck 2d 16bit DOS game\r
-22 source files
\ No newline at end of file
+To make an epic as fuck 2d 16bit DOS game\r
+wwww
\ No newline at end of file
SRC=src$(DIRSEP)\r
SRCLIB=$(SRC)lib$(DIRSEP)\r
JSMNLIB=$(SRCLIB)jsmn$(DIRSEP)
-EXMMLIB=$(SRCLIB)exmm$(DIRSEP)\r
+EXMMLIB=$(SRCLIB)exmm$(DIRSEP)
+WCPULIB=$(SRCLIB)wcpu$(DIRSEP)\r
\r
-all: test.exe pcxtest.exe test2.exe scroll.exe maptest.exe maptest0.exe emsdump.exe emmtest.exe fmemtest.exe\r
+all: 16.exe test.exe pcxtest.exe test2.exe scroll.exe palettec.exe maptest.exe maptest0.exe emsdump.exe emmtest.exe fmemtest.exe \r
#
#executables
-#\r
-scroll.exe: scroll.obj modex16.obj dos_kb.obj bitmap.obj mapread.obj jsmn.obj lib_head.obj\r
- wcl $(FLAGS) scroll.obj modex16.obj dos_kb.obj bitmap.obj mapread.obj jsmn.obj lib_head.obj# 16/lib/x/modex.lib\r
+#
+16.exe: 16.obj modex16.obj dos_kb.obj bitmap.obj mapread.obj jsmn.obj lib_head.obj scroll16.obj#planar.obj wcpu.obj
+ wcl $(FLAGS) 16.obj modex16.obj dos_kb.obj bitmap.obj mapread.obj jsmn.obj lib_head.obj scroll16.obj#planar.obj wcpu.obj
+\r
+scroll.exe: scroll.obj modex16.obj dos_kb.obj bitmap.obj planar.obj mapread.obj jsmn.obj wcpu.obj\r
+ wcl $(FLAGS) scroll.obj modex16.obj dos_kb.obj bitmap.obj planar.obj mapread.obj jsmn.obj wcpu.obj# 16/lib/x/modex.lib\r
scroll.obj: $(SRC)scroll.c\r
wcl $(FLAGS) -c $(SRC)scroll.c\r
test.exe: test.obj modex16.obj bitmap.obj lib_head.obj\r
test2.exe: test2.obj modex16.obj bitmap.obj planar.obj lib_head.obj\r
wcl $(FLAGS) test2.obj modex16.obj bitmap.obj planar.obj lib_head.obj\r
\r
-pcxtest.exe: pcxtest.obj modex16.obj bitmap.obj lib_head.obj\r
- wcl $(FLAGS) pcxtest.obj modex16.obj bitmap.obj lib_head.obj\r
+pcxtest.exe: pcxtest.obj modex16.obj bitmap.obj planar.obj lib_head.obj\r
+ wcl $(FLAGS) pcxtest.obj modex16.obj bitmap.obj planar.obj lib_head.obj
+
+palettec.exe: palettec.obj modex16.obj\r
+ wcl $(FLAGS) palettec.obj modex16.obj\r
\r
maptest.exe: maptest.obj mapread.obj jsmn.obj modex16.obj bitmap.obj lib_head.obj\r
wcl $(FLAGS) maptest.obj mapread.obj jsmn.obj modex16.obj bitmap.obj lib_head.obj\r
#
#executable's objects
-#\r
+#
+16.obj: $(SRC)16.h $(SRC)16.c\r
+ wcl $(FLAGS) -c $(SRC)16.c
+\r
test.obj: $(SRC)test.c $(SRCLIB)modex16.h\r
wcl $(FLAGS) -c $(SRC)test.c\r
\r
wcl $(FLAGS) -c $(SRC)test2.c\r
\r
pcxtest.obj: $(SRC)pcxtest.c $(SRCLIB)modex16.h\r
- wcl $(FLAGS) -c $(SRC)pcxtest.c\r
+ wcl $(FLAGS) -c $(SRC)pcxtest.c
+
+palettec.obj: $(SRC)palettec.c\r
+ wcl $(FLAGS) -c $(SRC)palettec.c
\r
maptest.obj: $(SRC)maptest.c $(SRCLIB)modex16.h
wcl $(FLAGS) -c $(SRC)maptest.c
wcl $(FLAGS) -c $(SRCLIB)bitmap.c\r
\r
planar.obj: $(SRCLIB)planar.h $(SRCLIB)planar.c\r
- wcl $(FLAGS) -c $(SRCLIB)planar.c\r
+ wcl $(FLAGS) -c $(SRCLIB)planar.c
+
+scroll16.obj: $(SRCLIB)scroll16.h $(SRCLIB)scroll16.c\r
+ wcl $(FLAGS) -c $(SRCLIB)scroll16.c
+
+wcpu.obj: $(WCPULIB)wcpu.h $(WCPULIB)wcpu.c\r
+ wcl $(FLAGS) -c $(WCPULIB)wcpu.c
\r
mapread.obj: $(SRCLIB)mapread.h $(SRCLIB)mapread.c\r
wcl $(FLAGS) -c $(SRCLIB)mapread.c
#define __16_H_
-#endif __16_H_
+#endif /*__16_H_*/
+/* Project 16 Source Code~
+ * Copyright (C) 2012-2015 sparky4 & pngwen & andrius4669
+ *
+ * This file is part of Project 16.
+ *
+ * Project 16 is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * Project 16 is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>, or
+ * write to the Free Software Foundation, Inc., 51 Franklin Street,
+ * Fifth Floor, Boston, MA 02110-1301 USA.
+ *
+ */
+
#include<stdio.h>
#include <conio.h>
//#include <limits.h>
+/* Project 16 Source Code~
+ * Copyright (C) 2012-2015 sparky4 & pngwen & andrius4669
+ *
+ * This file is part of Project 16.
+ *
+ * Project 16 is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * Project 16 is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>, or
+ * write to the Free Software Foundation, Inc., 51 Franklin Street,
+ * Fifth Floor, Boston, MA 02110-1301 USA.
+ *
+ */
+
#include <stdio.h>
void
+/* Project 16 Source Code~
+ * Copyright (C) 2012-2015 sparky4 & pngwen & andrius4669
+ *
+ * This file is part of Project 16.
+ *
+ * Project 16 is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * Project 16 is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>, or
+ * write to the Free Software Foundation, Inc., 51 Franklin Street,
+ * Fifth Floor, Boston, MA 02110-1301 USA.
+ *
+ */
+
#include <stdio.h>\r
#include <stdlib.h>
#include <malloc.h>
+/* Project 16 Source Code~
+ * Copyright (C) 2012-2015 sparky4 & pngwen & andrius4669
+ *
+ * This file is part of Project 16.
+ *
+ * Project 16 is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * Project 16 is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>, or
+ * write to the Free Software Foundation, Inc., 51 Franklin Street,
+ * Fifth Floor, Boston, MA 02110-1301 USA.
+ *
+ */
/*\r
* Functions and types for loading and manipulating bitmaps.\r
- */\r
+ */
+\r
#ifndef BITMAP_H\r
#define BITMAP_H
#include "src/lib/types.h"
/* Thanks to Alex Russell for example code */
/* Thanks to Gary Neal for example code */
-#include "src\lib\dos_kb.h"
+/* working out the licencing~ */
+#include "src/lib/dos_kb.h"
// keyboard buffer
static byte key[NUM_SCANCODES]; // pressed
#ifndef _DOSLIB_KB_H_
#define _DOSLIB_KB_H_
-#include "src\lib\lib_head.h"
+#include "src/lib/lib_head.h"
/* Maximum number of scan codes on keyboard controllers */
#define NUM_SCANCODES 128
+/* Project 16 Source Code~
+ * Copyright (C) 2012-2015 sparky4 & pngwen & andrius4669
+ *
+ * This file is part of Project 16.
+ *
+ * Project 16 is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * Project 16 is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>, or
+ * write to the Free Software Foundation, Inc., 51 Franklin Street,
+ * Fifth Floor, Boston, MA 02110-1301 USA.
+ *
+ */
+
#include "src/lib/lib_head.h"
\r
/* local function */\r
+/* Project 16 Source Code~
+ * Copyright (C) 2012-2015 sparky4 & pngwen & andrius4669
+ *
+ * This file is part of Project 16.
+ *
+ * Project 16 is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * Project 16 is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>, or
+ * write to the Free Software Foundation, Inc., 51 Franklin Street,
+ * Fifth Floor, Boston, MA 02110-1301 USA.
+ *
+ */
+
#ifndef _LIBHEAD_H_
#define _LIBHEAD_H_
#include <dos.h>
+/* Project 16 Source Code~
+ * Copyright (C) 2012-2015 sparky4 & pngwen & andrius4669
+ *
+ * This file is part of Project 16.
+ *
+ * Project 16 is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * Project 16 is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>, or
+ * write to the Free Software Foundation, Inc., 51 Franklin Street,
+ * Fifth Floor, Boston, MA 02110-1301 USA.
+ *
+ */
+
#include <dos.h>
#include <string.h>
#include <mem.h>
#include <stdlib.h>
#include "src/lib/modex16.h"
-
byte far* VGA=(byte far*) 0xA0000000; /* this points to video memory. */
/*word text_mask[16] = {
0x0002, 0x0102, 0x0202, 0x0302,
+/* Project 16 Source Code~
+ * Copyright (C) 2012-2015 sparky4 & pngwen & andrius4669
+ *
+ * This file is part of Project 16.
+ *
+ * Project 16 is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * Project 16 is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>, or
+ * write to the Free Software Foundation, Inc., 51 Franklin Street,
+ * Fifth Floor, Boston, MA 02110-1301 USA.
+ *
+ */
/*
* Functions for handling modex and doing other basic graphics stuff.
*/
+/* Project 16 Source Code~
+ * Copyright (C) 2012-2015 sparky4 & pngwen & andrius4669
+ *
+ * This file is part of Project 16.
+ *
+ * Project 16 is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * Project 16 is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>, or
+ * write to the Free Software Foundation, Inc., 51 Franklin Street,
+ * Fifth Floor, Boston, MA 02110-1301 USA.
+ *
+ */
/*\r
* Implimentation of the planar buffer files.\r
*/\r
#include <stdlib.h>\r
-#include "planar.h"\r
+#include "src/lib/planar.h"\r
\r
/* creates a planar buffer from the bitmap data.\r
The planar buffer is dynamically allocated, and should\r
+/* Project 16 Source Code~
+ * Copyright (C) 2012-2015 sparky4 & pngwen & andrius4669
+ *
+ * This file is part of Project 16.
+ *
+ * Project 16 is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * Project 16 is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>, or
+ * write to the Free Software Foundation, Inc., 51 Franklin Street,
+ * Fifth Floor, Boston, MA 02110-1301 USA.
+ *
+ */
/*
* Functions and types for a planar image buffer.
* This is meant to be able to load into video memory faster.
*/
-#include "bitmap.h"
+#include "src/lib/bitmap.h"
#ifndef PLANAR_H
#define PLANAR_H
/*
scroll16 library~
*/
-#include "src/lib/scroll.h"
+#include "src/lib/scroll16.h"
#define __SCROLL16_H_
-#endif __SCROLL16_H_
+#endif /*__SCROLL16_H_*/
typedef signed char sbyte;\r
typedef signed short sword;\r
typedef signed long sdword;\r
+
+//typedef enum {FALSE,TRUE} boolean;
CFLAGS=-0
-all: wtest.exe
+all: wcpu.exe
-wtest.exe: wtest.obj
+wcpu.exe: wcpu.obj
wcl $(CFLAGS) $<
-wtest.obj: wtest.c
+wcpu.obj: wcpu.c
wcl $(CFLAGS) -c $<
.NOCHECK
+/* Project 16 Source Code~
+ * Copyright (C) 2012-2015 sparky4 & pngwen & andrius4669
+ *
+ * This file is part of Project 16.
+ *
+ * Project 16 is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * Project 16 is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>, or
+ * write to the Free Software Foundation, Inc., 51 Franklin Street,
+ * Fifth Floor, Boston, MA 02110-1301 USA.
+ *
+ */
/* tab size = 8 */
-#include "lib\wtest\wtest.h"
+#include "src/lib/wcpu/wcpu.h"
-static unsigned char detectcpu()
+byte detectcpu()
{
- unsigned char cputype;
+ byte cputype;
__asm
{
PUSHF ; we gonna modify flags, so back them up
return cputype;
}
-/*int main(int argc, char **argv)
+#ifdef TEST
+int main(int argc, char **argv)
{
const char *cpus;
unsigned char cput;
}
printf("detected CPU type: %s\n", cpus);
return 0;
-}*/
+}
+#endif
--- /dev/null
+/* Project 16 Source Code~
+ * Copyright (C) 2012-2015 sparky4 & pngwen & andrius4669
+ *
+ * This file is part of Project 16.
+ *
+ * Project 16 is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * Project 16 is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>, or
+ * write to the Free Software Foundation, Inc., 51 Franklin Street,
+ * Fifth Floor, Boston, MA 02110-1301 USA.
+ *
+ */
+
+#ifndef _WCPU_H_
+#define _WCPU_H_
+#include <stdio.h>
+#include "src/lib/types.h"
+
+//#define TEST
+
+extern byte detectcpu(void);
+
+#endif/*_WCPU_H_*/
+++ /dev/null
-#ifndef _WTEST_H_
-#define _WTEST_H_
-#include <stdio.h>
-
-static unsigned char detectcpu(void);
-
-#endif/*_WTEST_H_*/
+/* Project 16 Source Code~
+ * Copyright (C) 2012-2015 sparky4 & pngwen & andrius4669
+ *
+ * This file is part of Project 16.
+ *
+ * Project 16 is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * Project 16 is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>, or
+ * write to the Free Software Foundation, Inc., 51 Franklin Street,
+ * Fifth Floor, Boston, MA 02110-1301 USA.
+ *
+ */
+
#include "src/lib/mapread.h"\r
#define DUMP
+/* Project 16 Source Code~
+ * Copyright (C) 2012-2015 sparky4 & pngwen & andrius4669
+ *
+ * This file is part of Project 16.
+ *
+ * Project 16 is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * Project 16 is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>, or
+ * write to the Free Software Foundation, Inc., 51 Franklin Street,
+ * Fifth Floor, Boston, MA 02110-1301 USA.
+ *
+ */
+
#include <conio.h>
#include "src/lib/fmapread.h"\r
+/* Project 16 Source Code~
+ * Copyright (C) 2012-2015 sparky4 & pngwen & andrius4669
+ *
+ * This file is part of Project 16.
+ *
+ * Project 16 is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * Project 16 is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>, or
+ * write to the Free Software Foundation, Inc., 51 Franklin Street,
+ * Fifth Floor, Boston, MA 02110-1301 USA.
+ *
+ */
+
#include "src/lib/modex16.h"\r
\r
void\r
pal = modexNewPal();\r
modexPalSave(pal);\r
\r
- modexSavePalFile("gfx.pal", pal);\r
+ modexSavePalFile("data/default.pal", pal);\r
\r
modexLeave();\r
\r
+/* Project 16 Source Code~
+ * Copyright (C) 2012-2015 sparky4 & pngwen & andrius4669
+ *
+ * This file is part of Project 16.
+ *
+ * Project 16 is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * Project 16 is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>, or
+ * write to the Free Software Foundation, Inc., 51 Franklin Street,
+ * Fifth Floor, Boston, MA 02110-1301 USA.
+ *
+ */
+
#include <stdio.h>
#include <dos.h>
#include <string.h>\r
+/* Project 16 Source Code~
+ * Copyright (C) 2012-2015 sparky4 & pngwen & andrius4669
+ *
+ * This file is part of Project 16.
+ *
+ * Project 16 is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * Project 16 is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>, or
+ * write to the Free Software Foundation, Inc., 51 Franklin Street,
+ * Fifth Floor, Boston, MA 02110-1301 USA.
+ *
+ */
+
#include "src/lib/dos_kb.h"\r
#include "src/lib/mapread.h"\r
-#include "src/lib/wtest/wtest.c"\r
-#include "src/lib/planar.c"\r
+#include "src/lib/wcpu/wcpu.h"\r
+#include "src/lib/planar.h"\r
//====#include "src\lib\ems.c"\r
\r
//word far *clock= (word far*) 0x046C; /* 18.2hz clock */\r
//#define TRIGGY 9\r
\r
void main() {\r
- size_t oldfreemem=GetFreeSize();\r
+//++++ size_t oldfreemem=GetFreeSize();\r
/*long emmhandle;\r
long emsavail;\r
char teststr[80];*/\r
printf("player.hp: %d", player.hp); printf(" player.q: %d", player.q); printf(" player.d: %d\n", player.d);\r
printf("tile data value at player trigger position: %d\n", bg->map->data[(player.triggerx-1)+(map.width*(player.triggery-1))]);\r
printf("palette offset: %d\n", paloffset/3);\r
- printf("Total used: %zu\n", oldfreemem-GetFreeSize());\r
- printf("Total free: %zu\n", GetFreeSize());\r
+//++++ printf("Total used: %zu\n", oldfreemem-GetFreeSize());\r
+//++++ printf("Total free: %zu\n", GetFreeSize());\r
printf("temporary player sprite 0: http://www.pixiv.net/member_illust.php?mode=medium&illust_id=45556867\n");\r
printf("temporary player sprite 1: http://www.pixiv.net/member_illust.php?mode=medium&illust_id=44606385\n");\r
printf("Screen: %dx", screen.width); printf("%d\n", screen.height);\r
-#include "src/lib/modex16.h"\r
+/* Project 16 Source Code~
+ * Copyright (C) 2012-2015 sparky4 & pngwen & andrius4669
+ *
+ * This file is part of Project 16.
+ *
+ * Project 16 is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * Project 16 is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>, or
+ * write to the Free Software Foundation, Inc., 51 Franklin Street,
+ * Fifth Floor, Boston, MA 02110-1301 USA.
+ *
+ */
+
#include <stdio.h>\r
+#include "src/lib/modex16.h"
\r
word far* clockw= (word far*) 0x046C; /* 18.2hz clock */\r
\r
+/* Project 16 Source Code~
+ * Copyright (C) 2012-2015 sparky4 & pngwen & andrius4669
+ *
+ * This file is part of Project 16.
+ *
+ * Project 16 is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * Project 16 is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>, or
+ * write to the Free Software Foundation, Inc., 51 Franklin Street,
+ * Fifth Floor, Boston, MA 02110-1301 USA.
+ *
+ */
+
#include <stdio.h>
#include <conio.h>
#include "src/lib/modex16.h"\r