github.com/notti/nocgo@v0.0.0-20190619201224-fc443047424c/steps/1_dynamic/42.asm (about) 1 ; 42 in 64 bit (afzer tiny.asm) 2 BITS 64 3 GLOBAL __printf 4 TYPE __printf object 5 SECTION .bss 6 __printf: 7 DD 0xDEADBEEF 8 DD 0xDEADBEEF 9 .end: 10 size __printf __printf.end-__printf 11 12 SECTION .data 13 TYPE blah object 14 GLOBAL blah 15 blah db 'hello world', 0 16 .end: 17 size blah blah.end-blah 18 19 GLOBAL _start 20 SECTION .text 21 _start: 22 mov rdi, blah 23 call [__printf] 24 25 mov rax, 60 26 mov rdi, 42 27 syscall 28 TYPE _start FUNCTION