﻿function c64_reset() {
    c64.document.c64.reset();
}

function c64_stick(i) {
    c64.document.c64.setStick(i);
    if (i == 0) i = 2;
    if (document.getElementById('stick'))document.getElementById('stick').innerHTML = i;
}

function c64_sound(b) {
    c64.document.c64.setSoundOn(b);
    var txt = 'OFF';
    if (b) txt = 'ON'; 
        document.getElementById('sound').innerHTML = txt;
}

function c64_frate(f) {
    c64.document.c64.setScanRate(f);
    document.getElementById('frame').innerHTML = f;
}                                        
function c64_lgame(g,t) {
    c64.document.c64.loadGame(g,t);
}