Minor optimization in applib.asm