Hi Hylan,
I compiled the source code you posted and got exactly what you posted as working and could not duplicate the nonworking code regardless of how I set my assembler or compiler options. Perhaps your mpasm got corrupted somehow, Maybe a fresh download is in order.