From: sparky4 Date: Wed, 1 Jul 2015 17:47:50 +0000 (-0500) Subject: basic 16.exe core implemented~ X-Git-Url: http://4ch.mooo.com/gitweb/?a=commitdiff_plain;h=79ef6da1ef02e32f0335839aa146a7773b45d66f;p=16.git basic 16.exe core implemented~ modified: 16.exe modified: data/g.pal modified: src/16.c modified: src/16.h --- diff --git a/16.exe b/16.exe index cdf2d4fc..d407dac1 100644 Binary files a/16.exe and b/16.exe differ diff --git a/data/g.pal b/data/g.pal index cf668e35..0ecbac33 100644 Binary files a/data/g.pal and b/data/g.pal differ diff --git a/src/16.c b/src/16.c index 5f3487fe..6ead54ba 100644 --- a/src/16.c +++ b/src/16.c @@ -20,8 +20,30 @@ * */ +#include "src/16.h" + void main(int argc, char *argv[]) { - + const char *cpus; + byte *dpal, *gpal; + /* save the palette */ + dpal = modexNewPal(); + modexPalSave(dpal); + modexFadeOff(4, dpal); + printf("pal load\n"); + gpal = modexNewPal(); + modexPalSave(gpal); + modexSavePalFile("data/g.pal", gpal); + modexPalBlack(); //so player will not see loadings~ + printf("wwww loop wwww\n"); + switch(detectcpu()) + { + case 0: cpus = "8086/8088 or 186/88"; break; + case 1: cpus = "286"; break; + case 2: cpus = "386 or newer"; break; + default: cpus = "internal error"; break; + } + printf("detected CPU type: %s\n", cpus); + modexFadeOn(4, dpal); } diff --git a/src/16.h b/src/16.h index 8cab0638..7f2e0976 100644 --- a/src/16.h +++ b/src/16.h @@ -23,5 +23,9 @@ #ifndef __16_H_ #define __16_H_ +#include "src/lib/lib_head.h" +#include "src/lib/modex16.h" +#include "src/lib/wcpu/wcpu.h" +#include "src/lib/planar.h" #endif /*__16_H_*/