shithub: rgbds

Download patch

ref: de269987f75dbf32fe8ddca5ef7501b809f7ed45
parent: 7770827cce8029310c05d93fa9232a3620689ef5
author: Anthony J. Bentley <[email protected]>
date: Thu Sep 5 16:51:58 EDT 2013

Add "jp hl" as a valid instruction.

"jp [hl]" has been around for decades even though it makes no sense.
This is better.

--- a/src/asm/gameboy/yaccprt4.y
+++ b/src/asm/gameboy/yaccprt4.y
@@ -226,6 +226,8 @@
 					{ out_AbsByte(0xC2|($2<<3)); out_RelWord(&$4); }
 				|	T_Z80_JP T_MODE_HL_IND
 					{ out_AbsByte(0xE9); }
+				|	T_Z80_JP T_MODE_HL
+					{ out_AbsByte(0xE9); }
 ;
 
 z80_jr			:	T_Z80_JR const_PCrel