summaryrefslogtreecommitdiffhomepage
path: root/Examples/ExamplePowerPC.S.pp
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/ExamplePowerPC.S.pp
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/ExamplePowerPC.S.pp')
-rw-r--r--Examples/ExamplePowerPC.S.pp8
1 files changed, 7 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