shithub: rgbds

Download patch

ref: f2c207cb4460634d7c2145d6f62406ba8c21a10a
parent: be50f2d302b491ddc0c7abcb4eaa57f8f30dcbcd
author: Antonio Niño Díaz <[email protected]>
date: Sun Apr 9 17:51:30 EDT 2017

Remove EX instruction

This is leftover code from ASMotor.

Signed-off-by: Antonio Niño Díaz <[email protected]>

--- a/src/asm/asmy.y
+++ b/src/asm/asmy.y
@@ -520,7 +520,7 @@
 %token	T_Z80_BIT
 %token	T_Z80_CALL T_Z80_CCF T_Z80_CP T_Z80_CPL
 %token	T_Z80_DAA T_Z80_DEC T_Z80_DI
-%token	T_Z80_EI T_Z80_EX
+%token	T_Z80_EI
 %token	T_Z80_HALT
 %token	T_Z80_INC
 %token	T_Z80_JP T_Z80_JR
@@ -1195,7 +1195,6 @@
 				|	z80_dec
 				|	z80_di
 				|	z80_ei
-				|	z80_ex
 				|	z80_halt
 				|	z80_inc
 				|	z80_jp
@@ -1284,12 +1283,6 @@
 
 z80_ei			:	T_Z80_EI
 					{ out_AbsByte(0xFB); }
-;
-
-z80_ex			:	T_Z80_EX T_MODE_HL comma T_MODE_SP_IND
-					{ out_AbsByte(0xE3); }
-				|	T_Z80_EX T_MODE_SP_IND comma T_MODE_HL
-					{ out_AbsByte(0xE3); }
 ;
 
 z80_halt: T_Z80_HALT
--- a/src/asm/locallex.c
+++ b/src/asm/locallex.c
@@ -17,7 +17,6 @@
 	{"dec", T_Z80_DEC},
 	{"di", T_Z80_DI},
 	{"ei", T_Z80_EI},
-	{"ex", T_Z80_EX},
 	{"halt", T_Z80_HALT},
 	{"inc", T_Z80_INC},
 	{"jp", T_Z80_JP},