summaryrefslogtreecommitdiffhomepage
path: root/Examples
diff options
context:
space:
mode:
Diffstat (limited to 'Examples')
-rw-r--r--Examples/ExampleCDialect.S9
-rw-r--r--Examples/ExampleCDialect.c1
-rw-r--r--Examples/HelloWorld.asm4
-rw-r--r--Examples/HelloWorld.asm.pp4
4 files changed, 10 insertions, 8 deletions
diff --git a/Examples/ExampleCDialect.S b/Examples/ExampleCDialect.S
index f1ed8fe..1937907 100644
--- a/Examples/ExampleCDialect.S
+++ b/Examples/ExampleCDialect.S
@@ -1,16 +1,17 @@
# Path: Examples/ExampleCDialect.c
-# Language: MultiProcessor Assembly (Generated from C)
+# Language: 64x0 Assembly (Generated from ANSI C)
# Build Date: 2024-3-27
-dword export .text main
+dword export .code64 main
lda r2,0x1000
- lda r12, import __MPCC_IF_PROC_462562513200
+ lda r12, import __MPCC_IF_PROC_794870926384
#r12 = Code to jump on, r11 right cond, r10 left cond.
beq r10, r11, r12
-dword export .text __MPCC_IF_PROC_462562513200
+dword export .code64 __MPCC_IF_PROC_794870926384
+
ldw r19, r2
diff --git a/Examples/ExampleCDialect.c b/Examples/ExampleCDialect.c
index ed03b66..c8c72d1 100644
--- a/Examples/ExampleCDialect.c
+++ b/Examples/ExampleCDialect.c
@@ -3,6 +3,7 @@ int main(int argc, char const *argv[])
int* foo = 0x1000;
if (foo == 57) {
+ foo = 0x2000;
*foo = 5;
return foo;
}
diff --git a/Examples/HelloWorld.asm b/Examples/HelloWorld.asm
index 71e90f0..91b0235 100644
--- a/Examples/HelloWorld.asm
+++ b/Examples/HelloWorld.asm
@@ -6,11 +6,11 @@
%def gdtBase 0x1000
%def gdtLimit 0x100
-export .data GDT
+export .data64 GDT
.number gdtBase
.number gdtLimit
-export .text __start
+export .code64 __start
mov rcx, 47 ; exit program
mov rdx, 0x0 ; exit code 0
int 50
diff --git a/Examples/HelloWorld.asm.pp b/Examples/HelloWorld.asm.pp
index c9625c4..ccb8722 100644
--- a/Examples/HelloWorld.asm.pp
+++ b/Examples/HelloWorld.asm.pp
@@ -4,11 +4,11 @@
; Start sequence of program.
-export .data GDT
+export .data64 GDT
.number 0x1000
.number 0x100
-export .text __start
+export .code64 __start
mov rcx, 47 ; exit program
mov rdx, 0x0 ; exit code 0
int 50