scc

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

commit 02672388492fd5825c59b3579b62b892135a3ac2
parent 6dfb4783f04f04a17c849cfa3df9dbc221681e78
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Sun, 17 Dec 2017 22:53:13 +0100

[as-z80] Add General purpose ALU and CPU control group

Diffstat:
Mas/target/x80/ins.c | 9++++++++-
Mas/target/x80/x80.dat | 25++++++++++++-------------
2 files changed, 20 insertions(+), 14 deletions(-)

diff --git a/as/target/x80/ins.c b/as/target/x80/ins.c @@ -326,7 +326,14 @@ r8(Op *op, Node **args) } void -idx(Op *op) +idx(Op *op, Node **args) +{ + /* TODO */ + abort(); +} + +void +im(Op *op, Node **args) { /* TODO */ abort(); diff --git a/as/target/x80/x80.dat b/as/target/x80/x80.dat @@ -33,19 +33,6 @@ .ALIGN imm16+ 0 none align Z80,R800,GB80 .END none 0 none end Z80,R800,GB80 -NOP none 1 0x00 noargs Z80,R800,GB80 -EI none 1 0xfb noargs Z80,R800,GB80 -DI none 1 0xf3 noargs Z80,R800,GB80 -HALT none 1 0x76 noargs Z80,R800,GB80 -SCF none 1 0x37 noargs Z80,R800,GB80 -CCF none 1 0x3f noargs Z80,R800,GB80 -NEG none 2 0xed,0x44 noargs Z80,R800 -CPL none 1 0x2f noargs Z80,R800,GB80 -DAA none 1 0x27 noargs Z80,R800,GB80 -EI none 1 0xfb noargs Z80,R800,GB80 -DI none 1 0xf3 noargs Z80,R800,GB80 -HALT none 1 0x76 noargs Z80,R800,GB80 -SCF none 1 0x37 noargs Z80,R800,GB80 RET none 1 0xc9 noargs Z80,R800,GB80 EXX none 1 0xd9 noargs Z80,R800 LDI none 2 0xed,0xa0 noargs Z80,R800 @@ -232,3 +219,15 @@ INC IY 2 0xfd,0x23 noargs Z80,R800 DEC dd 1 0x0b r16 Z80,R800,GB80 DEC IX 2 0xdd,0x2b noargs Z80,R800 DEC IY 2 0xfd,0x2b noargs Z80,R800 + +# General purpose arithmetic and CPU control group +DAA none 1 0x27 noargs Z80,R800,GB80 +CPL none 1 0x2f noargs Z80,R800,GB80 +NEG none 2 0xed,0x44 noargs Z80,R800 +CCF none 1 0x3f noargs Z80,R800,GB80 +SCF none 1 0x37 noargs Z80,R800,GB80 +NOP none 1 0x00 noargs Z80,R800,GB80 +HALT none 1 0x76 noargs Z80,R800,GB80 +DI none 1 0xf3 noargs Z80,R800,GB80 +EI none 1 0xfb noargs Z80,R800,GB80 +IM imm8 2 0xed im Z80,R800