Untitled

mail@pastecode.io avatar
unknown
plain_text
2 months ago
504 B
3
Indexable
Never
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
Leave a Comment