With while loop implementation. To build .asm file use ubuild.sh, one param - name of .asm file without extension.