From d014d88a360fdf8fcff52ec3c771f4af707e1831 Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss <113760121+Amlal-ElMahrouss@users.noreply.github.com> Date: Mon, 8 Apr 2024 01:44:07 +0200 Subject: Fix PowerPC branch instructions; using our new GetNumber32, fix li instruction (was big endian thus mixed) Signed-off-by: Amlal El Mahrouss <113760121+Amlal-ElMahrouss@users.noreply.github.com> --- Examples/ExamplePowerPC.S.pp | 8 +++++++- Examples/ExamplePowerPC.dmp | 5 +++++ 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 Examples/ExamplePowerPC.dmp (limited to 'Examples') diff --git a/Examples/ExamplePowerPC.S.pp b/Examples/ExamplePowerPC.S.pp index bc4d6a1..0f7acf3 100644 --- a/Examples/ExamplePowerPC.S.pp +++ b/Examples/ExamplePowerPC.S.pp @@ -2,4 +2,10 @@ # Language: PowerPC Assembly # Build Date: 2024-6-4 -li r2, 0x1055 \ No newline at end of file +bl 0x1000 + + +li r1, 0x500 +mr r2, r1 +sc +blr diff --git a/Examples/ExamplePowerPC.dmp b/Examples/ExamplePowerPC.dmp new file mode 100644 index 0000000..5986d03 --- /dev/null +++ b/Examples/ExamplePowerPC.dmp @@ -0,0 +1,5 @@ +0x0000000000000000: 00 10 00 48 b 0x1000 +0x0000000000000004: 00 05 20 38 li r1, 0x500 +0x0000000000000008: 78 13 21 7C or r1, r1, r2 +0x000000000000000c: 02 00 00 44 sc +0x0000000000000010: 20 00 80 4E blr \ No newline at end of file -- cgit v1.2.3