Working on the IIgs! Mostly.

This commit is contained in:
Scott Duensing 2018-10-14 21:40:50 -05:00
parent 878e93d236
commit bd66747d89
9 changed files with 20 additions and 28 deletions

View file

@ -1,3 +1,4 @@
#include <stdio.h>
#include <string.h> #include <string.h>
#include <stdarg.h> #include <stdarg.h>
@ -5,8 +6,9 @@
#include "ansiterm.h" #include "ansiterm.h"
#ifdef JOEY_IIGS
segment "ansiterm"; segment "ansiterm";
#endif
// http://ansi-bbs.org/ansi-bbs-core-server.html // http://ansi-bbs.org/ansi-bbs-core-server.html

View file

@ -1,8 +1,9 @@
#!/bin/bash -e #!/bin/bash -e
PROJECT=ifengine PROJECT=ifengine
DATA=(8x8thin.sta output.z8 gamedata.dat) DATA=(thin.sta output.z8 gamedata.dat)
SOURCE=(*.c *.h) #SOURCE=(*.c *.h)
SOURCE=()
# --- HERE BE DRAGONS --- # --- HERE BE DRAGONS ---

View file

@ -1,5 +1,8 @@
#include "joey.h" #include "joey.h"
#ifdef JOEY_IIGS
segment "fileio"; segment "fileio";
#endif
/* $Id: fileio.c,v 1.3 2000/07/05 15:20:34 jholder Exp $ /* $Id: fileio.c,v 1.3 2000/07/05 15:20:34 jholder Exp $
* -------------------------------------------------------------------- * --------------------------------------------------------------------

View file

@ -1,3 +1,3 @@
IF Engine Test Game IF Engine Test Game
output.z8 output.z8
8x8thin.sta thin.sta

View file

@ -71,4 +71,5 @@ LIBS += \
$$JOEY_LIBS \ $$JOEY_LIBS \
DISTFILES += \ DISTFILES += \
build-IIgs.sh build-IIgs.sh \
gamedata.dat

View file

@ -3,7 +3,9 @@
#include "ztypes.h" #include "ztypes.h"
#ifdef JOEY_IIGS
segment "joeyio"; segment "joeyio";
#endif
#define DISPLAY_MIXED_SIZE 5 #define DISPLAY_MIXED_SIZE 5

26
main.c
View file

@ -8,7 +8,9 @@
#include "ztypes.h" #include "ztypes.h"
#ifdef JOEY_IIGS
segment "ifengine"; segment "ifengine";
#endif
extern int GLOBALVER; extern int GLOBALVER;
@ -104,8 +106,6 @@ int main(void) {
char game[40]; char game[40];
char text[40]; char text[40];
//asm { brk 0xea }
in = fopen("gamedata.dat", "rt"); in = fopen("gamedata.dat", "rt");
if (in != NULL) { if (in != NULL) {
@ -121,48 +121,28 @@ int main(void) {
jlUtilStartup(name); jlUtilStartup(name);
_jlDebugBorder(BORDER_DEEP_RED);
jlDisplayPresent();
_jlDebugBorder(BORDER_PURPLE);
//jlKeyWaitForAny();
/*
if (!jlStaLoad(font, text)) { if (!jlStaLoad(font, text)) {
jlUtilDie("Unable to load %s", text); jlUtilDie("Unable to load [%s] (%d)", text, strlen(text));
} }
termStart(font, 0, 0, 40, 25); termStart(font, 0, 0, 40, 25);
termPrint("Term started...\n");
termDestruciveBackspace(false); termDestruciveBackspace(false);
termMoveCursor(1, 25); termMoveCursor(1, 25);
termSaveCursor(); termSaveCursor();
termPrint("Term configured...\n");
termPrint("process_arguments...\n");
process_arguments(game); process_arguments(game);
termPrint("configure...\n");
configure(V1, V8); configure(V1, V8);
termPrint("initialize_screen...\n");
initialize_screen(); initialize_screen();
termPrint("load_cache...\n");
load_cache(); load_cache();
termPrint("z_restart...\n");
z_restart(); z_restart();
termPrint("interpret...\n");
(void)interpret(); (void)interpret();
termPrint("unload_cache...\n");
unload_cache(); unload_cache();
termPrint("close_story...\n");
close_story(); close_story();
termPrint("close_script...\n");
close_script(); close_script();
termPrint("reset_screen...\n");
reset_screen(); reset_screen();
termStop(); termStop();
jlStaFree(font); jlStaFree(font);
*/
jlUtilShutdown(); jlUtilShutdown();
} }

View file

@ -1,5 +1,8 @@
#include "joey.h" #include "joey.h"
#ifdef JOEY_IIGS
segment "quetzal"; segment "quetzal";
#endif
/* $Id: quetzal.c,v 1.3 2000/07/05 15:20:34 jholder Exp $ /* $Id: quetzal.c,v 1.3 2000/07/05 15:20:34 jholder Exp $
* -------------------------------------------------------------------- * --------------------------------------------------------------------