// Tests calling into a function pointer with local variables

void main() {
   void()* cls = &fn1;
    for(byte* cols = $d800; cols<$d800+1000;cols++) {
        (*cls)();
        (*cols)++;
    }
}

void fn1() {
    for(byte* screen=$400;screen<$400+1000;screen++)
        (*screen)++;
}


