Загрузка данных
in ax, 2 mov bx, ax and bx, 7Fh mov cx, ax shr cx, 11 and cx, 1Fh mov dx, ax shr dx, 7 and dx, 0Fh cmp cx, 0 jz zero mov ax, bx xor dx, dx div cx sub ax, dx jmp res zero: xor ax, ax res: out 3, ax