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
# .data stores variables | |
.data | |
hello: .string "Hello world\n" | |
# .text stores the code | |
.text | |
.globl _start # makes _start the entry point of the program | |
_start: | |
# call write(fd, buf, size) | |
movl $4, %eax # write = 4 |
NewerOlder