summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/assembler.c2
-rw-r--r--lib/linker.c5
2 files changed, 5 insertions, 2 deletions
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);