Fixed sla instructions generating the wrong opcode
authorLukas Krickl <lukas@krickl.dev>
Sat, 19 Oct 2024 04:24:53 +0000 (06:24 +0200)
committerLukas Krickl <lukas@krickl.dev>
Sat, 19 Oct 2024 04:24:53 +0000 (06:24 +0200)
src/archs.c

index 75c77d677d35ce0352c03a2c88ac9dab795ff795..c71502985d8acadace7081b4371448e037034975 100644 (file)
@@ -285,8 +285,8 @@ const struct ulas_instr ULASINSTRS_SM83[] = {
     ULAS_INSTRSM83_PRER8D("rrc", 0x08),
     ULAS_INSTRSM83_PRER8D("rl", 0x10),
     ULAS_INSTRSM83_PRER8D("rr", 0x18),
-    ULAS_INSTRSM83_PRER8D("sla", 0x10),
-    ULAS_INSTRSM83_PRER8D("sra", 0x18),
+    ULAS_INSTRSM83_PRER8D("sla", 0x20),
+    ULAS_INSTRSM83_PRER8D("sra", 0x28),
     ULAS_INSTRSM83_PRER8D("srl", 0x38),
 
     ULAS_INSTRSM83_PREBITR8D("bit", 0x40, '0'),