shithub: scc

Download patch

ref: 4794e296605fb26f7130e359d8862cb83903d8df
parent: f6033a17f5c0fd728a0131642dc65d2bf0c4da2d
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Mon Dec 18 04:01:29 EST 2017

[as-z80] Add rotate and shift group

--- a/as/target/x80/x80.dat
+++ b/as/target/x80/x80.dat
@@ -34,12 +34,7 @@
 .END	none	0	none	end	Z80,R800,GB80
 
 RET	none	1	0xc9	noargs	Z80,R800,GB80
-RLCA	none	1	0x07	noargs	Z80,R800,GB80
-RLA	none	1	0x17	noargs	Z80,R800,GB80
-RRCA	none	1	0x0f	noargs	Z80,R800,GB80
-RRA	none	1	0x1f	noargs	Z80,R800,GB80
-RLD	none	2	0xed,0x6f	noargs	Z80,R800
-RRD	none	2	0xed,0x67	noargs	Z80,R800
+
 INI 	none	2	0xed,0xa2	noargs	Z80,R800
 INIR	none	2	0xed,0xb2	noargs	Z80,R800
 IND	none	2	0xed,0xaa	noargs	Z80,R800
@@ -240,3 +235,52 @@
 CPIR	none	2	0xed,0xb1	noargs	Z80,R800
 CPD	none	2	0xed,0xa9	noargs	Z80,R800
 CPDR	none	2	0xed,0xb9	noargs	Z80,R800
+
+# Rotate and shift group
+RLCA	none	1	0x07	noargs	Z80,R800,GB80
+RLA	none	1	0x17	noargs	Z80,R800,GB80
+RRCA	none	1	0x0f	noargs	Z80,R800,GB80
+RRA	none	1	0x1f	noargs	Z80,R800,GB80
+
+RLD	none	2	0xed,0x6f	noargs	Z80,R800
+RRD	none	2	0xed,0x67	noargs	Z80,R800
+
+RLC	r	2	0xcb,0x00	r8	Z80,R800
+RLC	(HL)	2	0xcb,0x06	noargs	Z80,R800
+RLC	(IX+n)	4	0xdd,0xcb,0x06	idx	Z80,R800
+RLC	(IY+n)	4	0xfd,0xcb,0x06	idx	Z80,R800
+
+RL	r	2	0xcb,0x10	r8	Z80,R800
+RL	(HL)	2	0xcb,0x16	noargs	Z80,R800
+RL	(IX+n)	4	0xdd,0xcb,0x16	idx	Z80,R800
+RL	(IY+n)	4	0xfd,0xcb,0x16	idx	Z80,R800
+
+RRC	r	2	0xcb,0x08	r8	Z80,R800
+RRC	(HL)	2	0xcb,0x06	noargs	Z80,R800
+RRC	(IX+n)	4	0xdd,0xcb,0x06	idx	Z80,R800
+RRC	(IY+n)	4	0xfd,0xcb,0x06	idx	Z80,R800
+
+RR	r	2	0xcb,0x18	r8	Z80,R800
+RR	(HL)	2	0xcb,0x1e	noargs	Z80,R800
+RR	(IX+n)	4	0xdd,0xcb,0x1e	idx	Z80,R800
+RR	(IY+n)	4	0xfd,0xcb,0x1e	idx	Z80,R800
+
+SLA	r	2	0xcb,0x20	r8	Z80,R800
+SLA	(HL)	2	0xcb,0x26	noargs	Z80,R800
+SLA	(IX+n)	4	0xdd,0xcb,0x26	idx	Z80,R800
+SLA	(IY+n)	4	0xfd,0xcb,0x26	idx	Z80,R800
+
+SLL	r	2	0xcb,0x30	r8	Z80
+SLL	(HL)	2	0xcb,0x36	noargs	Z80
+SLL	(IX+n)	4	0xdd,0xcb,0x36	idx	Z80
+SLL	(IY+n)	4	0xfd,0xcb,0x36	idx	Z80
+
+SRA	r	2	0xcb,0x28	r8	Z80,R800
+SRA	(HL)	2	0xcb,0x2e	noargs	Z80,R800
+SRA	(IX+n)	4	0xdd,0xcb,0x2e	idx	Z80,R800
+SRA	(IY+n)	4	0xfd,0xcb,0x2e	idx	Z80,R800
+
+SRL	r	2	0xcb,0x38	r8	Z80,R800
+SRL	(HL)	2	0xcb,0x3e	noargs	Z80,R800
+SRL	(IX+n)	4	0xdd,0xcb,0x3e	idx	Z80,R800
+SRL	(IY+n)	4	0xfd,0xcb,0x3e	idx	Z80,R800