// Setup and run a simple CIA-timer

import "c64"
import "time"
import "print"

const byte* SCREEN = 0x0400;

void main() {

    // Reset & start the CIA#2 timer A+B
    clock_start();
    // Continously print cycle count since timer start
    while(true) {
        print_dword_at(clock(), SCREEN);
    }
}
