From 672ec345c6eb5a06500cba10e3f329b8a65ee047 Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss <113760121+Amlal-ElMahrouss@users.noreply.github.com> Date: Fri, 5 Apr 2024 04:43:27 +0200 Subject: 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> --- Examples/ExamplePowerPC.S | 1 + Examples/HelloWorld.asm | 19 ++----------------- 2 files changed, 3 insertions(+), 17 deletions(-) create mode 100644 Examples/ExamplePowerPC.S (limited to 'Examples') 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 -- cgit v1.2.3