+ register uint16_t w1 = sym->sattr;
+ register uint16_t w = AL_DEFINED | tdb_tab[w1 & TDB];
+
+ if (prg_flag == 3)
+ {
+ // Extended symbol - Check to see if symbol is larger than 8 characters
+ // and write an extra 14 characters where the next symbol would be.
+ // Modify the flag word for this
+ if (*s)
+ {
+ //printf("%s '%i' - will write extended symbol\n", sym->sname,s[0]);
+ uint8_t *buf2 = buf + 6;
+
+ for(i=8; i<8+14 && *s; i++)
+ *buf2++ = *s++;
+
+ while (i++ < 8 + 14)
+ *buf2++ = '\0';
+
+ symsize += 14;
+ w |= 0x48;
+ extra = 14;
+ }
+ }
+