NOT gate by moon

.globl main
main:
mov $3,%eax
mov $0,%ebx
mov %esp,%ecx
mov $1,%edx
int $128
mov (%esp),%al
xor $1,%al
mov %al,(%esp)
mov $4,%ax
mov $1,%bx
int $128

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page