scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | README | LICENSE

commit 1d54f6ac08d20e3dc4f9756875346f2d2ee90747
parent 283f07059255e9c003e0dc1429614ec0e8fb4190
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Tue, 19 Dec 2017 08:17:16 +0100

[as-z80] Fix encoding of 8 bit INC

Diffstat:
Mas/target/x80/x80.dat | 6+++---
Mas/target/z80/test.s | 6+++---
2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/as/target/x80/x80.dat b/as/target/x80/x80.dat @@ -170,9 +170,9 @@ CP A,(HL) 1 0xbe noargs Z80,R800,GB80 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 diff --git 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