Add "jp hl" as a valid instruction.

"jp [hl]" has been around for decades even though it makes no sense.
This is better.
This commit is contained in:
Anthony J. Bentley
2013-09-05 20:51:58 -06:00
parent 7770827cce
commit de269987f7

View File

@@ -226,6 +226,8 @@ z80_jp : T_Z80_JP const_16bit
{ 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