Untitled
unknown
plain_text
2 years ago
504 B
9
Indexable
section .text
global _start
_start:
mov eax, [x]
mov ebx, [y]
xor eax, ebx
add eax, '0'
mov [xorr], eax
mov ecx, msg
mov edx, len
mov ebx, 1
mov eax, 4
int 0x80
mov ecx, xorr
mov edx, 1
mov ebx, 1
mov eax, 4
int 0x80
mov eax, 1
int 0x80
section .data
x db '10'
y db '10'
msg db "xor of x and y is "
len equ $ -
segment .bss
xorr resb 1
Editor is loading...
Leave a Comment