summaryrefslogtreecommitdiff
path: root/utils/tl/asm.c
diff options
context:
space:
mode:
Diffstat (limited to 'utils/tl/asm.c')
-rw-r--r--utils/tl/asm.c22
1 files changed, 16 insertions, 6 deletions
diff --git a/utils/tl/asm.c b/utils/tl/asm.c
index 66a7f0c6..ec0f63a8 100644
--- a/utils/tl/asm.c
+++ b/utils/tl/asm.c
@@ -63,17 +63,15 @@ asmb(void)
asmout(p, o);
pc += o->size;
}
- while(pc-INITTEXT < textsize) {
- cput(0);
- pc++;
+
+ /* output strings in text segment */
+ while (pc < INITRODAT) {
+ cput(0); pc++;
}
- if(debug['a'])
- Bprint(&bso, "\n");
Bflush(&bso);
cflush();
- /* output strings in text segment */
etext = INITTEXT + textsize;
for(t = pc; t < etext; t += sizeof(buf)-100) {
if(etext-t > sizeof(buf)-100)
@@ -82,6 +80,18 @@ asmb(void)
datblk(t, etext-t, 1);
}
+ pc = t;
+
+ while(pc-INITTEXT < textsize) {
+ cput(0);
+ pc++;
+ }
+
+ if(debug['a'])
+ Bprint(&bso, "\n");
+ Bflush(&bso);
+ cflush();
+
curtext = P;
switch(HEADTYPE) {
case 0: