summaryrefslogtreecommitdiffhomepage
path: root/Examples
diff options
context:
space:
mode:
authorAmlal El Mahrouss <113760121+Amlal-ElMahrouss@users.noreply.github.com>2024-04-08 01:44:07 +0200
committerAmlal El Mahrouss <113760121+Amlal-ElMahrouss@users.noreply.github.com>2024-04-08 01:44:07 +0200
commitd014d88a360fdf8fcff52ec3c771f4af707e1831 (patch)
tree5d68534e5acd98c31ee65314e60ce7e65e426531 /Examples
parent5cf92b502d4d2bd026f580dc93ba243f657b0e79 (diff)
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>
Diffstat (limited to 'Examples')
-rw-r--r--Examples/ExamplePowerPC.S.pp8
-rw-r--r--Examples/ExamplePowerPC.dmp5
2 files changed, 12 insertions, 1 deletions
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