From 583748c67453a62382e0c0e77aa8ca6535900ae0 Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Tue, 14 May 2024 10:02:08 +0200 Subject: MHR-21: Add function signature to output (C++) Signed-off-by: Amlal El Mahrouss --- Examples/ExampleCPlusPlus.s | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) (limited to 'Examples/ExampleCPlusPlus.s') 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 -- cgit v1.2.3