summaryrefslogtreecommitdiffhomepage
path: root/Examples/HelloWorld.asm.pp
diff options
context:
space:
mode:
authorAmlal El Mahrouss <113760121+Amlal-ElMahrouss@users.noreply.github.com>2024-03-27 08:31:41 +0100
committerAmlal El Mahrouss <113760121+Amlal-ElMahrouss@users.noreply.github.com>2024-03-27 08:31:41 +0100
commit3939adadfecc486173df35e1f54c606a9bb4bb94 (patch)
tree3b80ea14534e74e4bdb2c3db26a6270f66e49ce4 /Examples/HelloWorld.asm.pp
parent69b78ac22d04b56a9882e845230a1df27d9af9a9 (diff)
Toolchain: Fix bpp and link, deprecate ccplus (C++ compiler)
repurpose all rule to compile everything. Signed-off-by: Amlal El Mahrouss <113760121+Amlal-ElMahrouss@users.noreply.github.com>
Diffstat (limited to 'Examples/HelloWorld.asm.pp')
-rw-r--r--Examples/HelloWorld.asm.pp19
1 files changed, 19 insertions, 0 deletions
diff --git a/Examples/HelloWorld.asm.pp b/Examples/HelloWorld.asm.pp
new file mode 100644
index 0000000..c9625c4
--- /dev/null
+++ b/Examples/HelloWorld.asm.pp
@@ -0,0 +1,19 @@
+#bits 64
+#org 1000
+
+; Start sequence of program.
+
+
+export .data GDT
+ .number 0x1000
+ .number 0x100
+
+export .text __start
+ mov rcx, 47 ; exit program
+ mov rdx, 0x0 ; exit code 0
+ int 50
+ int 50
+ int 50
+ int 50
+ int 50
+ ret