sfl-examples/slide-examples/assembly/ex04.asm

23 lines
392 B
NASM
Raw Normal View History

2023-12-14 14:12:51 +01:00
bits 64
SECTION .data
; empty
SECTION .text
global _start
_start:
%include "header.asm.inc"
mov eax, 0x11223344
mov ebx, 0x55667788
xchg ebx,eax ; eax gets content of ebx and vice versa
xchg ecx,eax
xchg edx,eax
xchg bx,ax ; again, 0x66 is opcode size prefix
xchg bh,ah
xchg bl,al
%include "sysexit.asm.inc"