From f27edd36d73db3a0bb9758bb90746afa3751b32f Mon Sep 17 00:00:00 2001 From: Paul Mathieu Date: Sat, 7 May 2022 11:34:35 -0700 Subject: [PATCH] as: fix empty param list nop was failing --- tools/as.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/as.py b/tools/as.py index 3cc60b0..d3b56a8 100644 --- a/tools/as.py +++ b/tools/as.py @@ -37,6 +37,8 @@ class AsTransformer(lark.Transformer): def statement(self, s): opcode, *params = s + if params[0] is None: + params = [] addr = self.addr self.addr += 2 return ('OP', addr, opcode, *params)