// Test address-of - pass the pointer as parameter

void main() {
    byte* SCREEN = $400;
    byte b1 = 0;
    byte b2 = 0;
    byte b3 = 0;
    setByte(&b1, 'c');
    setByte(&b2, 'm');
    setByte(&b3, 'l');
    SCREEN[0] = b1;
    SCREEN[1] = b2;
    SCREEN[2] = b3;
}

void setByte(byte* ptr, byte b) {
    *ptr = b;
}

