Created
March 9, 2014 19:27
-
-
Save Chiggins/9453155 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
global _start | |
section .text | |
_start: | |
;print on screen | |
mov rax, 1 | |
mov rdi, 1 | |
mov rsi, hello_world | |
mov rdx, length | |
syscall | |
mov rax, var4 | |
mov rax, [var4] | |
;exit gracefully | |
mov rax, 60 | |
mov rdi, 11 | |
syscall | |
section .data | |
hello_world: db 'Hello world to the SLAE-64 Course', 0xA | |
length: equ $-hello_world | |
var1: db 0x11, 0x22 | |
var2: dw 0x3344 | |
var3: dd 0xaabbccdd | |
var4: dq 0xaabbccdd11223344 | |
repeat_buffer: times 128 db 0xAA | |
section .bss | |
buffer: resb 64 |
Author
Chiggins
commented
Mar 9, 2014
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment