diff --git a/helloworldinassembly.s b/helloworldinassembly.s new file mode 100644 index 0000000..d2b5ee5 --- /dev/null +++ b/helloworldinassembly.s @@ -0,0 +1,20 @@ +.section .data +hello: + .string "Hello World!\n" +longhello: + .int .-hello + +.section .text +.global _start + +_start: + + mov $4, %eax + mov $1, %ebx + mov $hello, %ecx + mov longhello, %edx + int $0x80 + + mov $1, %eax + mov $0, %ebx + int $0x80