shithub: scc

Download patch

ref: 9648aee381b40790648a893d8e840a97201f4fab
parent: a6a2e91500b7801eb4d137f56f08241edcf71470
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Wed Dec 27 10:16:28 EST 2017

[as-z80] Add more operations of ED prefix

--- a/as/target/x80/x80.dat
+++ b/as/target/x80/x80.dat
@@ -75,7 +75,7 @@
 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
 
--- 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)