nasm20241130003MMX.asm


;; (C) David Vajda
;; 2024-11-30
;; Excersize - i586/amd64 - MMX

global _start
section .data
Op1: db 0x07, 0x06, 0x05, 0x04, 0x03, 0x02, 0x01, 0x00, 10, 13
Op2: db "11111111", 10, 13
section .text
_start:
movq xmm1, [Op1]
movq xmm2, [Op2]
paddb xmm1, xmm2
movq [Op1], xmm1

mov ecx, Op1
mov edx, 10
mov eax, 4
mov ebx, 1
int 0x80
mov eax, 1
mov ebx, 0
int 0x80