From 7df9291b6c33fb8b5ff3215939f7f563d235e8c4 Mon Sep 17 00:00:00 2001
From: Damien George <damien.p.george@gmail.com>
Date: Fri, 23 Sep 2016 12:48:57 +1000
Subject: [PATCH] py: Update opcode format table because 3 opcodes were
 removed, 1 added.

LIST_APPEND, MAP_ADD and SET_ADD have been removed, and STORE_COMP has
been added in adaf0d865cd6c81fb352751566460506392ed55f.
---
 py/bc.c           | 4 ++--
 tools/mpy-tool.py | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/py/bc.c b/py/bc.c
index 0d0a0b12f..e5abea244 100644
--- a/py/bc.c
+++ b/py/bc.c
@@ -308,8 +308,8 @@ STATIC const byte opcode_format_table[64] = {
     OC4(B, B, O, U), // 0x44-0x47
     OC4(U, U, U, U), // 0x48-0x4b
     OC4(U, U, U, U), // 0x4c-0x4f
-    OC4(V, V, V, V), // 0x50-0x53
-    OC4(B, V, V, V), // 0x54-0x57
+    OC4(V, V, U, V), // 0x50-0x53
+    OC4(B, U, V, V), // 0x54-0x57
     OC4(V, V, V, B), // 0x58-0x5b
     OC4(B, B, B, U), // 0x5c-0x5f
     OC4(V, V, V, V), // 0x60-0x63
diff --git a/tools/mpy-tool.py b/tools/mpy-tool.py
index bc8ac4fbd..2bb9fc367 100755
--- a/tools/mpy-tool.py
+++ b/tools/mpy-tool.py
@@ -107,8 +107,8 @@ def make_opcode_format():
     OC4(B, B, O, U), # 0x44-0x47
     OC4(U, U, U, U), # 0x48-0x4b
     OC4(U, U, U, U), # 0x4c-0x4f
-    OC4(V, V, V, V), # 0x50-0x53
-    OC4(B, V, V, V), # 0x54-0x57
+    OC4(V, V, U, V), # 0x50-0x53
+    OC4(B, U, V, V), # 0x54-0x57
     OC4(V, V, V, B), # 0x58-0x5b
     OC4(B, B, B, U), # 0x5c-0x5f
     OC4(V, V, V, V), # 0x60-0x63
-- 
GitLab