Working on the IIgs! Mostly.
This commit is contained in:
parent
878e93d236
commit
bd66747d89
9 changed files with 20 additions and 28 deletions
|
@ -1,3 +1,4 @@
|
|||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <stdarg.h>
|
||||
|
||||
|
@ -5,8 +6,9 @@
|
|||
#include "ansiterm.h"
|
||||
|
||||
|
||||
#ifdef JOEY_IIGS
|
||||
segment "ansiterm";
|
||||
|
||||
#endif
|
||||
|
||||
// http://ansi-bbs.org/ansi-bbs-core-server.html
|
||||
|
||||
|
|
|
@ -1,8 +1,9 @@
|
|||
#!/bin/bash -e
|
||||
|
||||
PROJECT=ifengine
|
||||
DATA=(8x8thin.sta output.z8 gamedata.dat)
|
||||
SOURCE=(*.c *.h)
|
||||
DATA=(thin.sta output.z8 gamedata.dat)
|
||||
#SOURCE=(*.c *.h)
|
||||
SOURCE=()
|
||||
|
||||
# --- HERE BE DRAGONS ---
|
||||
|
||||
|
|
3
fileio.c
3
fileio.c
|
@ -1,5 +1,8 @@
|
|||
#include "joey.h"
|
||||
|
||||
#ifdef JOEY_IIGS
|
||||
segment "fileio";
|
||||
#endif
|
||||
|
||||
/* $Id: fileio.c,v 1.3 2000/07/05 15:20:34 jholder Exp $
|
||||
* --------------------------------------------------------------------
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
IF Engine Test Game
|
||||
output.z8
|
||||
8x8thin.sta
|
||||
thin.sta
|
||||
|
|
|
@ -71,4 +71,5 @@ LIBS += \
|
|||
$$JOEY_LIBS \
|
||||
|
||||
DISTFILES += \
|
||||
build-IIgs.sh
|
||||
build-IIgs.sh \
|
||||
gamedata.dat
|
||||
|
|
2
joeyio.c
2
joeyio.c
|
@ -3,7 +3,9 @@
|
|||
#include "ztypes.h"
|
||||
|
||||
|
||||
#ifdef JOEY_IIGS
|
||||
segment "joeyio";
|
||||
#endif
|
||||
|
||||
|
||||
#define DISPLAY_MIXED_SIZE 5
|
||||
|
|
26
main.c
26
main.c
|
@ -8,7 +8,9 @@
|
|||
#include "ztypes.h"
|
||||
|
||||
|
||||
#ifdef JOEY_IIGS
|
||||
segment "ifengine";
|
||||
#endif
|
||||
|
||||
|
||||
extern int GLOBALVER;
|
||||
|
@ -104,8 +106,6 @@ int main(void) {
|
|||
char game[40];
|
||||
char text[40];
|
||||
|
||||
//asm { brk 0xea }
|
||||
|
||||
in = fopen("gamedata.dat", "rt");
|
||||
if (in != NULL) {
|
||||
|
||||
|
@ -121,48 +121,28 @@ int main(void) {
|
|||
|
||||
jlUtilStartup(name);
|
||||
|
||||
_jlDebugBorder(BORDER_DEEP_RED);
|
||||
|
||||
jlDisplayPresent();
|
||||
_jlDebugBorder(BORDER_PURPLE);
|
||||
//jlKeyWaitForAny();
|
||||
|
||||
/*
|
||||
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);
|
||||
termPrint("Term started...\n");
|
||||
termDestruciveBackspace(false);
|
||||
termMoveCursor(1, 25);
|
||||
termSaveCursor();
|
||||
termPrint("Term configured...\n");
|
||||
|
||||
termPrint("process_arguments...\n");
|
||||
process_arguments(game);
|
||||
termPrint("configure...\n");
|
||||
configure(V1, V8);
|
||||
termPrint("initialize_screen...\n");
|
||||
initialize_screen();
|
||||
termPrint("load_cache...\n");
|
||||
load_cache();
|
||||
termPrint("z_restart...\n");
|
||||
z_restart();
|
||||
termPrint("interpret...\n");
|
||||
(void)interpret();
|
||||
termPrint("unload_cache...\n");
|
||||
unload_cache();
|
||||
termPrint("close_story...\n");
|
||||
close_story();
|
||||
termPrint("close_script...\n");
|
||||
close_script();
|
||||
termPrint("reset_screen...\n");
|
||||
reset_screen();
|
||||
termStop();
|
||||
|
||||
jlStaFree(font);
|
||||
*/
|
||||
jlUtilShutdown();
|
||||
}
|
||||
|
||||
|
|
|
@ -1,5 +1,8 @@
|
|||
#include "joey.h"
|
||||
|
||||
#ifdef JOEY_IIGS
|
||||
segment "quetzal";
|
||||
#endif
|
||||
|
||||
/* $Id: quetzal.c,v 1.3 2000/07/05 15:20:34 jholder Exp $
|
||||
* --------------------------------------------------------------------
|
||||
|
|
Loading…
Add table
Reference in a new issue