From 3e417659142c9df8ca2fc0a4fb260afa40a6c8ba Mon Sep 17 00:00:00 2001 From: Pixel <> Date: Sun, 13 May 2001 17:11:03 +0000 Subject: Pouet --- lib/assembler.c | 2 +- lib/linker.c | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/assembler.c b/lib/assembler.c index ceda7d5..9748cf1 100644 --- a/lib/assembler.c +++ b/lib/assembler.c @@ -549,7 +549,7 @@ void push_pile(char *a) } } } - + /* Cas des patterns */ if (e->e_subtype == E_STRING) { diff --git a/lib/linker.c b/lib/linker.c index f1f371d..c744e54 100644 --- a/lib/linker.c +++ b/lib/linker.c @@ -135,10 +135,13 @@ void addfile(char *nom) readword(f); /* Taille du fichier */ start = readword(f); + fprintf(stderr, "Startpoint: %i\n", start); if ((startpoint != -1) && (start != -1)) { exception(1, _("Startpoint already defined.")); } - startpoint = start + textsize; + if (start != -1) { + startpoint = start + textsize; + } objects[objindex]->s_text = readword(f); objects[objindex]->s_data = readword(f); -- cgit v1.2.3