From eb6e5175cbc52e0fbc533a9bbc9c6d5d193e7aeb Mon Sep 17 00:00:00 2001 From: TECNILUIS <56094004+TECNILUIS@users.noreply.github.com> Date: Thu, 31 Oct 2019 01:58:48 +0100 Subject: [PATCH] Create helloworldinassembly.s --- helloworldinassembly.s | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 helloworldinassembly.s 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