Skip to content

Instantly share code, notes, and snippets.

@lemieszek
Last active January 11, 2020 09:54
Show Gist options
  • Save lemieszek/4a5bddf376ce9b1865633fd85bde3d8b to your computer and use it in GitHub Desktop.
Save lemieszek/4a5bddf376ce9b1865633fd85bde3d8b to your computer and use it in GitHub Desktop.
; nasm -felf64 a.asm && ld -o a.out a.o
; then
; gdb a.out
section .data
; initialize some data
someValue dq 8
initialTable dq 40, 871, 181, 157, 268, 790, 310, 211
fileName db "zaliczenie.txt"
section .bss
; just declarations
auxiliaryTable resq 8 ; 8x 8bytes
section .text
global _start
_start:
mov ecx, 8
_end:
mov rax, 60
mov rdi, 0
syscall
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment