diff options
author | Pixel <> | 2001-05-13 17:11:03 +0000 |
---|---|---|
committer | Pixel <> | 2001-05-13 17:11:03 +0000 |
commit | 3e417659142c9df8ca2fc0a4fb260afa40a6c8ba (patch) | |
tree | 828b6e84ac54fda1bb41808333e7fc3d18d9c266 /lib | |
parent | 6f23b187bc5dd0cd3e2584303bb0f927eb95874b (diff) |
Pouet
Diffstat (limited to 'lib')
-rw-r--r-- | lib/assembler.c | 2 | ||||
-rw-r--r-- | lib/linker.c | 5 |
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); |