put 0xffff → t2 ; do t2 nachystáme masku sub 15, l3 → t3 ; počet horních nulových bitů shl t2, t3 → t2 ; vynulujeme horní bity shr t2, t3 → t2 shr t2, l2 → t2 ; vynulujeme spodní bity shl t2, l2 → t2 xor t2, -1 → t3 ; inverzní maska and rv, t2 → t4 shl t4, 1 → t4 and t4, t2 → t4 and rv, t3 → rv or rv, t4 → rv jmp check