1 diff -urN libz80/Makefile libz80.fixed/Makefile
2 --- libz80/Makefile 2002-04-21 18:30:00.000000000 -0500
3 +++ libz80.fixed/Makefile 2009-11-04 10:47:16.418113709 -0600
6 -FLAGS = -fPIC -Wall -strict -ANSI -g
8 +FLAGS = -fPIC -Wall -ansi -g
11 +all: codegen libz80.so
15 + cd codegen && make opcodes
17 libz80.so: z80.h $(OBJS)
18 - cd codegen && make opcodes
19 gcc -shared -o libz80.so $(OBJS)
26 - install -m 666 libz80.so /usr/lib
27 - install -m 666 z80.h /usr/include
28 + install -d ${DESTDIR}/usr/lib
29 + install -d ${DESTDIR}/usr/include
30 + install -m 666 libz80.so ${DESTDIR}/usr/lib
31 + install -m 666 z80.h ${DESTDIR}/usr/include
35 diff -urN libz80/z80.c libz80.fixed/z80.c
36 --- libz80/z80.c 2002-04-22 11:01:02.000000000 -0500
37 +++ libz80.fixed/z80.c 2009-11-04 10:40:16.984523276 -0600
42 -// Adjust flags after AND, OR, XOR
43 +/* Adjust flags after AND, OR, XOR */
44 static void adjustLogicFlag (Z80Context *ctx, int flagH)
46 VALFLAG(F_S, (BR.A & 0x80) != 0);