Skip to content

Instantly share code, notes, and snippets.

@mcnutty26
Last active February 15, 2017 15:29
Show Gist options
  • Save mcnutty26/0ffd3114a216e9f6483aa02744142216 to your computer and use it in GitHub Desktop.
Save mcnutty26/0ffd3114a216e9f6483aa02744142216 to your computer and use it in GitHub Desktop.
#! /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