Created
March 14, 2014 21:41
-
-
Save Chiggins/9557585 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
BITS 64 | |
[SECTION .text] | |
global _start | |
_start: | |
; sys_write | |
xor rax, rax | |
mov rax, 1 ; syscall | |
mov rbx, 1 ; to screen | |
mov rcx, text ; text | |
mov rdx, length ; length of test | |
syscall | |
; sys_exit(int err_code) | |
xor rax, rax | |
mov al, 60 ; syscall | |
xor rbx, rbx | |
syscall | |
[SECTION .data] | |
text: db 'Register syscall testing' | |
length: equ $-text |
Author
Chiggins
commented
Mar 14, 2014
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment