summaryrefslogtreecommitdiffhomepage
path: root/Examples/ExampleCPlusPlus.s
diff options
context:
space:
mode:
Diffstat (limited to 'Examples/ExampleCPlusPlus.s')
-rw-r--r--Examples/ExampleCPlusPlus.s21
1 files changed, 12 insertions, 9 deletions
diff --git a/Examples/ExampleCPlusPlus.s b/Examples/ExampleCPlusPlus.s
index 4b69908..0414858 100644
--- a/Examples/ExampleCPlusPlus.s
+++ b/Examples/ExampleCPlusPlus.s
@@ -1,16 +1,19 @@
; Path: Examples/ExampleCPlusPlus.cxx
; Language: MPCC assembly. (Generated from C++)
-; Date: 2024-5-12
+; Date: 2024-5-14
#bits 64
#org 0x1000000
-mov r8, 20
-sub r8, 1
-mov r9, 0
-mov r9, 1
-mov r10, r9
-
-mov rax, r10
-ret \ No newline at end of file
+export .code64 __MPCC_int_main
+mov r8, 0
+mov r9, 0
+
+mov r10, 1
+mov r10, r8
+mov r11, 0
+
+mov r12, 0
+mov rax, 0
+ret