SS
Size: a a a
SS
SS
SS
SS
DS
ΔΒ
i686-w64-mingw32-g++ -c -D_CRT_SECURE_NO_DEPRECATE -DUSE_SND_EXTERNAL_BUFFER -D_PREFIX_ -std=c++11 -Wno-attributes -march=pentium2 -mmmx -O3 -static -flto -fomit-frame-pointer -o z80/tables.o z80/tables.cpp
z80/tables.cpp: In constructor ‘TMakeAdcf::TMakeAdcf()’:
z80/tables.cpp:126:1: error: ‘constexpr’ constructor does not have empty body
126 | }
| ^
ΔΒ
constexpr TMakeAdcf::TMakeAdcf() : adcf{ }
{
    for(unsigned c = 0; c < 2; c++)
    {
        for(unsigned x = 0; x < 0x100; x++)
        {
            for(unsigned y = 0; y < 0x100; y++)
            {
                unsigned res = x + y + c;
                unsigned char fl = 0;
                if(!(res & 0xFF)) fl |= ZF;
                fl |= (res & (F3 | F5 | SF));
                if(res >= 0x100) fl |= CF;
                if(((x & 0x0F) + (y & 0x0F) + c) & 0x10) fl |= HF;
                int ri = (signed char)x + (signed char)y + int(c);
                if(ri >= 0x80 || ri <= -0x81) fl |= PV;
                adcf[c * 0x10000 + x * 0x100 + y] = fl;
            }
        }
    }
}VB
constexpr TMakeAdcf::TMakeAdcf() : adcf{ }
{
    for(unsigned c = 0; c < 2; c++)
    {
        for(unsigned x = 0; x < 0x100; x++)
        {
            for(unsigned y = 0; y < 0x100; y++)
            {
                unsigned res = x + y + c;
                unsigned char fl = 0;
                if(!(res & 0xFF)) fl |= ZF;
                fl |= (res & (F3 | F5 | SF));
                if(res >= 0x100) fl |= CF;
                if(((x & 0x0F) + (y & 0x0F) + c) & 0x10) fl |= HF;
                int ri = (signed char)x + (signed char)y + int(c);
                if(ri >= 0x80 || ri <= -0x81) fl |= PV;
                adcf[c * 0x10000 + x * 0x100 + y] = fl;
            }
        }
    }
}VB
ΔΒ
D•

ΔΒ
Км
DP
DP
Км
DP