Last active
January 11, 2020 09:54
-
-
Save lemieszek/4a5bddf376ce9b1865633fd85bde3d8b to your computer and use it in GitHub Desktop.
This file contains hidden or 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
; 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