From baf0702694e81bf8f3af9dca915330c9b203ea3f Mon Sep 17 00:00:00 2001 From: TECNILUIS <56094004+TECNILUIS@users.noreply.github.com> Date: Thu, 31 Oct 2019 01:41:52 +0100 Subject: [PATCH 1/2] Create helloworldinassembly --- helloworldinassembly | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 helloworldinassembly diff --git a/helloworldinassembly b/helloworldinassembly new file mode 100644 index 0000000..d2b5ee5 --- /dev/null +++ b/helloworldinassembly @@ -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 From 74316f09b95964e4041606a7e91c8d7f72e96a8d Mon Sep 17 00:00:00 2001 From: TECNILUIS <56094004+TECNILUIS@users.noreply.github.com> Date: Thu, 31 Oct 2019 01:46:10 +0100 Subject: [PATCH 2/2] Rename helloworldinassembly to helloworldinassembly.s --- helloworldinassembly => helloworldinassembly.s | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename helloworldinassembly => helloworldinassembly.s (100%) diff --git a/helloworldinassembly b/helloworldinassembly.s similarity index 100% rename from helloworldinassembly rename to helloworldinassembly.s