scc

simple C compiler
git clone git://git.2f30.org/scc
Log | Files | Refs | README | LICENSE

x80.dat (2727B)


      1 # Tab 16, tabs 16, :set ts=16
      2 # op	args	size	bytes	format	cpu
      3 .DB	imm8+	0	none	defb	Z80,R800,GB80
      4 .DEFB	imm8+	0	none	defb	Z80,R800,GB80
      5 .BYTE	imm8+	0	none	defb	Z80,R800,GB80
      6 .DW	imm16+	0	none	defw	Z80,R800,GB80
      7 .DEFW	imm16+	0	none	defw	Z80,R800,GB80
      8 .SHORT	imm16+	0	none	defw	Z80,R800,GB80
      9 .WORD	imm16+	0	none	defw	Z80,R800,GB80
     10 .DD	imm32+	0	none	defd	Z80,R800,GB80
     11 .DEFD	imm32+	0	none	defd	Z80,R800,GB80
     12 .LONG	imm32+	0	none	defd	Z80,R800,GB80
     13 .INT	imm16+	0	none	defd	Z80,R800,GB80
     14 .DQ	imm64+	0	none	defq	Z80,R800,GB80
     15 .DEFQ	imm64+	0	none	defq	Z80,R800,GB80
     16 .EQU	imm16	0	none	equ	Z80,R800,GB80
     17 NOP	none	1	0x00	noargs	Z80,R800,GB80
     18 EI	none	1	0xfb	noargs	Z80,R800,GB80
     19 DI	none	1	0xf3	noargs	Z80,R800,GB80
     20 HALT	none	1	0x76	noargs	Z80,R800,GB80
     21 SCF	none	1	0x37	noargs	Z80,R800,GB80
     22 CCF	none	1	0x3f	noargs	Z80,R800,GB80
     23 NEG	none	2	0xed,0x44	noargs	Z80,R800
     24 CPL	none	1	0x2f	noargs	Z80,R800,GB80
     25 DAA	none	1	0x27	noargs	Z80,R800,GB80
     26 EI	none	1	0xfb	noargs	Z80,R800,GB80
     27 DI	none	1	0xf3	noargs	Z80,R800,GB80
     28 HALT	none	1	0x76	noargs	Z80,R800,GB80
     29 SCF	none	1	0x37	noargs	Z80,R800,GB80
     30 RET	none	1	0xc9	noargs	Z80,R800,GB80
     31 EXX	none	1	0xd9	noargs	Z80,R800
     32 LDI	none	2	0xed,0xa0	noargs	Z80,R800
     33 LDIR	none	2	0xed,0xb0	noargs	Z80,R800
     34 LDD	none	2	0xed,0xa8	noargs	Z80,R800
     35 LDDR	none	2	0xed,0xb8	noargs	Z80,R800
     36 CPI	none	2	0xed,0xa1	noargs	Z80,R800
     37 CPIR	none	2	0xed,0xb1	noargs	Z80,R800
     38 CPD	none	2	0xed,0xa9	noargs	Z80,R800
     39 CPDR	none	2	0xed,0xb9	noargs	Z80,R800
     40 RLCA	none	1	0x07	noargs	Z80,R800,GB80
     41 RLA	none	1	0x17	noargs	Z80,R800,GB80
     42 RRCA	none	1	0x0f	noargs	Z80,R800,GB80
     43 RRA	none	1	0x1f	noargs	Z80,R800,GB80
     44 RLD	none	2	0xed,0x6f	noargs	Z80,R800
     45 RRD	none	2	0xed,0x67	noargs	Z80,R800
     46 INI 	none	2	0xed,0xa2	noargs	Z80,R800
     47 INIR	none	2	0xed,0xb2	noargs	Z80,R800
     48 IND	none	2	0xed,0xaa	noargs	Z80,R800
     49 INDR	none	2	0xed,0xba	noargs	Z80,R800
     50 OUTI	none	2	0xed,0xa3	noargs	Z80,R800
     51 OTIR	none	2	0xed,0xb3	noargs	Z80,R800
     52 OUTD	none	2	0xed,0xab	noargs	Z80,R800
     53 OTDR	none	2	0xed,0xbb	noargs	Z80,R800
     54 
     55 # p is any register from B, C, D, E, IXL, IXH, A
     56 # q is any register from B, C, D, E, IYL, IYH, A
     57 # r is any register from B, C, D, E, L, H, A
     58 
     59 LD	reg_r,imm8	2	0x06	r8_imm8	Z80,R800,GB80
     60 LD	reg_p,imm8	3	0xdd,0x06	r8_imm8	Z80,R800
     61 LD	reg_q,imm8	3	0xfd,0x06	r8_imm8	Z80,R800
     62 LD	indir_HL,imm8	2	0x36	imm8	Z80,R800,GB80
     63 
     64 LD	reg_r,reg_r	1	0x40	r8_r8	Z80,R800,GB80
     65 LD	reg_p,reg_p	2	0xdd,0x40	r8_r8	Z80,R800
     66 LD	reg_q,reg_q	2	0xfd,0x40	r8_r8	Z80,R800
     67 LD	indir_HL,reg_r	1	0x70	xx_r8_2	Z80,R800,GB80
     68 LD	reg_r,indir_HL	1	0x46	r8_xx_1	Z80,R800,GB80
     69 
     70 ADD	regA,reg_r	1	0x80	xx_r8_2	Z80,R800,GB80
     71 ADD	regA,reg_p	2	0xdd,0x80	xx_r8_2	Z80,R800
     72 ADD	regA,reg_q	2	0xfd,0x80	xx_r8_2	Z80,R800
     73 ADD	regA,imm8	2	0xc6	imm8	Z80,R800,GB80
     74 
     75 ADD	regA,indir_HL	1	0x86	noargs	Z80,R800,GB80