summaryrefslogtreecommitdiffhomepage
path: root/Examples
diff options
context:
space:
mode:
authorAmlal El Mahrouss <113760121+Amlal-ElMahrouss@users.noreply.github.com>2024-04-05 04:43:27 +0200
committerAmlal El Mahrouss <113760121+Amlal-ElMahrouss@users.noreply.github.com>2024-04-05 04:43:27 +0200
commit672ec345c6eb5a06500cba10e3f329b8a65ee047 (patch)
tree0e335135dc05ee129770bf5ea17e64f11e831012 /Examples
parent4fd8405b79823c6ce8dcfc3cbe0da29b2a8f5bf2 (diff)
ppcasm: WiP: Add opcode table for PowerPC.
What is needed to be done: - Support registers and jump addresses inside a PowerPC assembly file. - Thoroughly test the output on a PowerPC emulator. Signed-off-by: Amlal El Mahrouss <113760121+Amlal-ElMahrouss@users.noreply.github.com>
Diffstat (limited to 'Examples')
-rw-r--r--Examples/ExamplePowerPC.S1
-rw-r--r--Examples/HelloWorld.asm19
2 files changed, 3 insertions, 17 deletions
diff --git a/Examples/ExamplePowerPC.S b/Examples/ExamplePowerPC.S
new file mode 100644
index 0000000..1f8bd21
--- /dev/null
+++ b/Examples/ExamplePowerPC.S
@@ -0,0 +1 @@
+blr \ No newline at end of file
diff --git a/Examples/HelloWorld.asm b/Examples/HelloWorld.asm
index 63a6258..664780a 100644
--- a/Examples/HelloWorld.asm
+++ b/Examples/HelloWorld.asm
@@ -1,17 +1,2 @@
-#bits 64
-#org 1000
-
-; Start sequence of program.
-
-%def gdtBase 0x1000
-%def gdtLimit 0x100
-
-export .code64 __start
- mov rdx, rcx ; exit program
- mov rdx, rdx ; exit code 0
- int 50
- int 50
- int 50
- int 50
- int 50
- ret
+int 13
+ret