Origin: https://github.com/XboxDev/a56/commit/3c172216d04a22bb0489199325feb6bf0206f6a5
From: Jannik Vogel <email@jannikvogel.de>
Date: Wed, 26 Dec 2018 00:23:55 +0100
Subject: [PATCH] Support 'INC D' and 'DEC D'
Forwarded: not-needed

Index: pkg-a56/a56.key
===================================================================
--- pkg-a56.orig/a56.key
+++ pkg-a56/a56.key
@@ -65,7 +65,9 @@ ASR		{return OP_ASR;}
 CLR		{return OP_CLR;}
 CMP		{return OP_CMP;}
 CMPM	{return OP_CMPM;}
+DEC		{return OP_DEC;}
 DIV		{return OP_DIV;}
+INC		{return OP_INC;}
 MAC		{return OP_MAC;}
 MACR	{return OP_MACR;}
 MPY		{return OP_MPY;}
Index: pkg-a56/a56.y
===================================================================
--- pkg-a56.orig/a56.y
+++ pkg-a56/a56.y
@@ -152,7 +152,9 @@ char *luntab(char *s);
 %token OP_CLR
 %token OP_CMP
 %token OP_CMPM
+%token OP_DEC
 %token OP_DIV
+%token OP_INC
 %token OP_MAC
 %token OP_MACR
 %token OP_MPY
@@ -735,6 +737,10 @@ arith_inst
 			{w0 |= 0x0000F8 | (n2int($2) & 0xFF) << 8 | $4;}
 	|	and_op ix ',' funky_ctl_reg
 			{w0 |= 0x0000B8 | (n2int($2) & 0xFF) << 8 | $4;}
+	|	OP_DEC a_b
+			{w0 |= 0x00000A | $2;}
+	|	OP_INC a_b
+			{w0 |= 0x000008 | $2;}
 	;
 
 or_op	:	OP_OR
