ref: 96cd94f4d8de6ab57ff45382f12c740b062d8a21
parent: cd1c02a7e638b91a3506d71a79480e9020e83ffb
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Tue Dec 19 03:17:16 EST 2017
[as-z80] Fix encoding of 8 bit INC
--- a/as/target/x80/x80.dat
+++ b/as/target/x80/x80.dat
@@ -170,9 +170,9 @@
CP A,(IX+n) 3 0xdd,0xbe idx Z80,R800
CP A,(IY+n) 3 0xfd,0xbe idx Z80,R800
-INC r 1 0x40 r8_xx Z80,R800,GB80
-INC p 2 0xdd,0x40 r8_xx Z80,R800
-INC q 2 0xfd,0x40 r8_xx Z80,R800
+INC r 1 0x04 r8_xx Z80,R800,GB80
+INC p 2 0xdd,0x04 r8_xx Z80,R800
+INC q 2 0xfd,0x04 r8_xx Z80,R800
INC (HL) 1 0x34 noargs Z80,R800,GB80
INC (IX+n) 3 0xdd,0x34 idx Z80,R800
INC (IY+n) 3 0xfd,0x34 idx Z80,R800
--- a/as/target/z80/test.s
+++ b/as/target/z80/test.s
@@ -2,9 +2,9 @@
LD %BC,64 / 01 40 00
LD (%BC),%A / 02
INC %BC / 03
-/04 INC B
-/05 DEC B
-/06 n LD B, n
+ INC %B / 04
+ DEC %B / 05
+ LD %B,32 / 06 20
/07 RLCA
/08 EX AF, AF’
/09 ADD HL, BC