mov ecx, buffer mov edx, 02h mov eax, 03h mov ebx, 00h int 80h mov cx, word [buffer] xor cx, 01h mov word [buffer], cx mov ecx, buffer mov edx, 02h mov eax, 04h mov ebx, 01h int 80h mov eax, 01h xor ebx, ebx int 80h section .data buffer dw 0h