blob: 0a1c7ab3d83e33a315d65c3ce75ef2217f769439 [file] [log] [blame] [raw]
global _start
section .data
align 16
quad1:
dq 0xccddccddad007fff
quad2:
dq 0xaabbaabbad007fff
quad3:
dq 0x00ff00ffad007fff
mydword:
dd 0xcafebabe
myaddress:
dq 0x00adbeefc0de00ce
MBALIGN equ 1<<0 ; align loaded modules on page boundaries
MEMINFO equ 1<<1 ; provide memory map
FLAGS equ 0 ; this is the Multiboot 'flag' field
MAGIC equ 0x1BADB002 ; 'magic number' lets bootloader find the header
CHECKSUM equ -(MAGIC + FLAGS) ; checksum of above, to prove we are multiboot
section .multiboot
align 4
dd MAGIC
dd FLAGS
dd CHECKSUM
section .text
_start:
main:
movq mm0, [quad1]
movq mm1, [quad3]
movq mm2, [quad2]
movq mm3, [quad3]
punpckhwd mm0, [myaddress]
punpckhwd mm0, mm1
punpckhwd mm1, [quad2]
punpckhwd mm2, [quad1]
punpckhwd mm3, [quad1]
loop:
hlt
jmp loop