ref: b40c567aeecca9708fca3c6baa91a1848835bb52
parent: 547abfefc1bcc45a906329c51f180de703d1ced9
author: Ben10do <[email protected]>
date: Thu Jan 26 11:55:00 EST 2017
Add ldi a, [hl] and ldd a, [hl] instructions These are equivalent to ld a, [hl+] and ld a, [hl-] respectively.
--- a/src/asm/asmy.y
+++ b/src/asm/asmy.y
@@ -1263,11 +1263,15 @@
{ out_AbsByte(0x02|(2<<4)); }
| T_Z80_LDI T_MODE_A comma T_MODE_HL
{ out_AbsByte(0x0A|(2<<4)); }
+ | T_Z80_LDI T_MODE_A comma T_MODE_HL_IND
+ { out_AbsByte(0x0A|(2<<4)); }
;
z80_ldd : T_Z80_LDD T_MODE_HL_IND comma T_MODE_A
{ out_AbsByte(0x02|(3<<4)); }
| T_Z80_LDD T_MODE_A comma T_MODE_HL
+ { out_AbsByte(0x0A|(3<<4)); }
+ | T_Z80_LDD T_MODE_A comma T_MODE_HL_IND
{ out_AbsByte(0x0A|(3<<4)); }
;