Quine by hirose

.globl main
main:mov $4,%eax
mov $1,%ebx
mov $m,%ecx
mov $278,%edx
int $128

mov $4,%eax
mov $1,%ebx
mov $x,%ecx
mov $1,%edx
int $128

mov $4,%eax
mov $1,%ebx
mov $m,%ecx
mov $278,%edx
int $128

mov $4,%eax
mov $1,%ebx
mov $x,%ecx
mov $1,%edx
int $128

.data
x:.byte 34
m:.ascii".globl main
main:mov $4,%eax
mov $1,%ebx
mov $m,%ecx
mov $278,%edx
int $128

mov $4,%eax
mov $1,%ebx
mov $x,%ecx
mov $1,%edx
int $128

mov $4,%eax
mov $1,%ebx
mov $m,%ecx
mov $278,%edx
int $128

mov $4,%eax
mov $1,%ebx
mov $x,%ecx
mov $1,%edx
int $128

.data
x:.byte 34
m:.ascii"

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

download

return to the top page