diff options
| author | Charles Forsyth <charles.forsyth@gmail.com> | 2024-04-22 07:26:53 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-22 07:26:53 +0100 |
| commit | da0a2df935d71d337d0b2aa01c2553a323bc1809 (patch) | |
| tree | 6fed4f55d6709f1d1250c3633e760a5ec6a745da /utils/tl/asm.c | |
| parent | 572a60820a14330c774d1420c1cff39908d628ae (diff) | |
| parent | 1b44446e0d632d96dfba82c401b0aa12a1dfc00a (diff) | |
Merge pull request #11 from dboddie/thumb2-compiler-changes
Thumb compiler changes to support Thumb-2
Diffstat (limited to 'utils/tl/asm.c')
| -rw-r--r-- | utils/tl/asm.c | 22 |
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: |
