// Test simple void pointer - void pointer function

void main() {
    dword d = 0x12345678;
    word w = 0x1234;
    byte b = 0x12;
    print(&b);
    print(&w);
    print(&d);
}

byte* const SCREEN = 0x0400;
byte idx = 0;

void print(void* ptr) {
    SCREEN[idx++] = *((byte*)ptr);
}