Last active
February 15, 2017 15:29
-
-
Save mcnutty26/0ffd3114a216e9f6483aa02744142216 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
#! /bin/env bash | |
yasm -f elf64 code.asm | |
ld -o code code.o | |
objdump -d code | |
#;exit.asm | |
#[SECTION .text] | |
#global _start | |
#_start: | |
# xor eax, eax ;exit is syscall 1 | |
# mov al, 1 ;exit is syscall 1 | |
# xor ebx,ebx ;zero out ebx | |
# int 0x80 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment