From 1541583c1e4156790fe5ccfc0ba25717c18dcd3d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Zumer?= Date: Sun, 15 Dec 2024 05:35:43 -0500 Subject: [PATCH] Updated CRCs for ST variant CCF/SCF tests with undocumented flags Recent research has shown that the CCF/SCF instructions, on ST CMOS variants, only change the 5th bit of the flag register (aka "Y") if flags were modified by the previous instruction. If flags are stable, then only bit 3 is set according to the A register. This subtle difference in behavior does not appear to influence the output of the z80ccfscr program, but it does change the register state reflected in the checksums of the standard test suite. --- src/tests.asm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tests.asm b/src/tests.asm index 80e8a60..024abad 100644 --- a/src/tests.asm +++ b/src/tests.asm @@ -337,7 +337,7 @@ testtable: vec 0x37,stop,0x00,0x00,mem,0x1234,a,0xaa,f,0xff,bc,0xbbcc,de,0xddee,hl,0x4411,ix,0xdd88,iy,0xfd77,sp,0xc000 vec 0x00,0x00,0x00,0x00,mem,0x0000,a,0x28,f,0xff,bc,0x0000,de,0x0000,hl,0x0000,ix,0x0000,iy,0x0000,sp,0x0000 vec 0x00,0x00,0x00,0x00,mem,0x0000,a,0xd7,f,0x00,bc,0x0000,de,0x0000,hl,0x0000,ix,0x0000,iy,0x0000,sp,0x0000 - crcs allflags,0xc62af5ee,all,0x58e950e4,docflags,0xafbf608b,doc,0x2efb018b,ccf,0xe0d3c7bf,mptr,0x4fc0a073 + crcs allflags,0xeaec87fa,all,0x1f53c9af,docflags,0xafbf608b,doc,0x2efb018b,ccf,0xe0d3c7bf,mptr,0x4fc0a073 name "SCF (ST)" db failcheck @@ -345,7 +345,7 @@ testtable: vec 0x3f,stop,0x00,0x00,mem,0x1234,a,0xaa,f,0xff,bc,0xbbcc,de,0xddee,hl,0x4411,ix,0xdd88,iy,0xfd77,sp,0xc000 vec 0x00,0x00,0x00,0x00,mem,0x0000,a,0x28,f,0xff,bc,0x0000,de,0x0000,hl,0x0000,ix,0x0000,iy,0x0000,sp,0x0000 vec 0x00,0x00,0x00,0x00,mem,0x0000,a,0xd7,f,0x00,bc,0x0000,de,0x0000,hl,0x0000,ix,0x0000,iy,0x0000,sp,0x0000 - crcs allflags,0xa3c89474,all,0xbf139cb2,docflags,0x27b2462c,doc,0x96bd3c82,ccf,0x8531a625,mptr,0xc7cd86d4 + crcs allflags,0x8f0ee660,all,0xf8a905f9,docflags,0x27b2462c,doc,0x96bd3c82,ccf,0x8531a625,mptr,0xc7cd86d4 name "CCF (ST)" db failcheck