Update text.asm

various bugfixes