// Tests a problem with tod018 not calculating types correctly

void main() {
    byte* const D018 = (byte*)0xd018;
    byte* const screen = (byte*)0x0400;
    byte d018val = BYTE1(screen&$3fff);
    *D018 = d018val;
}

