scc

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

commit d5491b4cf13745104b520ca6ea4a7865bcaa473b
parent 2b0456c9a8176b0d5fa28cb9b52735e9628a69d0
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Wed, 27 Dec 2017 15:16:28 +0000

[as-z80] Add more operations of ED prefix

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

diff --git a/as/target/x80/x80.dat b/as/target/x80/x80.dat @@ -75,7 +75,7 @@ LD (DE),A 1 0x12 noargs Z80,R800,GB80 LD (n),A 3 0x32 dir Z80,R800,GB80 LD A,I 2 0xed,0x57 noargs Z80,R800 -LD A,R 2 0xed,0x57 noargs Z80,R800 +LD A,R 2 0xed,0x5f noargs Z80,R800 LD I,A 2 0xed,0x47 noargs Z80,R800 LD R,A 2 0xed,0x4f noargs Z80,R800 diff --git a/as/target/z80/test.s b/as/target/z80/test.s @@ -776,7 +776,7 @@ CALL %PE,16384 / EC 00 40 /ED40 IN B, (C) /ED41 OUT (C), B -/ED42 SBC HL, BC + SBC %HL,%BC / ED 42 LD (32768),%BC / ED 43 00 80 NEG / ED 44 RETN / ED 45 @@ -784,14 +784,14 @@ LD %I,%A / ED 47 /ED48 IN C, (C) /ED49 OUT (C), C -/ED4A ADC HL, BC + ADC %HL,%BC / ED 4A LD %BC,(16384) / ED 4B 00 40 RETI / ED 4D /ED4E IM 0/1* -/ED4F LD R, A + LD %R,%A / ED 4F /ED50 IN D, (C) /ED51 OUT (C), D -/ED52 SBC %HL,%DE / ED 52 + SBC %HL,%DE / ED 52 LD (32768),%DE / ED 53 00 80 /ED56 IM 1 LD %A,%I / ED 57 @@ -800,10 +800,10 @@ ADC %HL,%DE / ED 5A LD %DE,(16384) / ED 5B 00 40 /ED5E IM 2 -/ED5F LD A, R + LD %A,%R / ED 5F /ED60 IN H, (C) /ED61 OUT (C), H -/ED62 SBC %HL,%HL / ED 62 + SBC %HL,%HL / ED 62 /ED66 IM 0* RRD / ED 67 /ED68 IN L, (C)