// Tests a problem with tod018 not calculating types correctly

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

