mirror of
https://github.com/trebonian/visual6502.git
synced 2025-07-11 03:23:59 +00:00
Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
e6d42eb1aa | |||
8ae5c087f6 | |||
c6dd03ba17 | |||
fca2eb5cb6 |
@ -12,7 +12,7 @@ npwr = nodenames['vcc'];
|
|||||||
nodenamereset = 'reset';
|
nodenamereset = 'reset';
|
||||||
|
|
||||||
presetLogLists=[
|
presetLogLists=[
|
||||||
['cycle','phi1','phi2'],
|
['cycle',],
|
||||||
['ab','db','rw','vma','Fetch','pc','acca','accb','ix','sp','p'],
|
['ab','db','rw','vma','Fetch','pc','acca','accb','ix','sp','p'],
|
||||||
['ir','sync','Execute'], // instruction fetch and execution control
|
['ir','sync','Execute'], // instruction fetch and execution control
|
||||||
['dbi','dbo','tmp'], // internal state
|
['dbi','dbo','tmp'], // internal state
|
||||||
@ -86,7 +86,7 @@ function initChip(){
|
|||||||
setHigh('phi1');
|
setHigh('phi1');
|
||||||
}
|
}
|
||||||
setHigh(nodenamereset);
|
setHigh(nodenamereset);
|
||||||
for(var i=0;i<18;i++){halfStep();} // avoid updating graphics and trace buffer before user code
|
for(var i=0;i<6;i++){halfStep();} // avoid updating graphics and trace buffer before user code
|
||||||
refresh();
|
refresh();
|
||||||
cycle = 0;
|
cycle = 0;
|
||||||
trace = Array();
|
trace = Array();
|
||||||
|
@ -7,19 +7,19 @@ var consoleboxStream="";
|
|||||||
// for opcodes, see ftp://ftp.comlab.ox.ac.uk/pub/Cards/txt/6800.txt
|
// for opcodes, see ftp://ftp.comlab.ox.ac.uk/pub/Cards/txt/6800.txt
|
||||||
|
|
||||||
testprogram = [
|
testprogram = [
|
||||||
0x01, // NOP
|
|
||||||
0x01, // NOP
|
|
||||||
0x01, // NOP
|
|
||||||
0xce, 0x43, 0x21, // LDX #4321
|
0xce, 0x43, 0x21, // LDX #4321
|
||||||
0x35, // TXS
|
0x35, // TXS
|
||||||
0xc6, 0x00, // LDAA #$00
|
0xc6, 0xfb, // LDAB #$FB
|
||||||
0xbd, 0x00, 0x10, // JSR $0010
|
0xbd, 0x00, 0x10, // JSR $0010
|
||||||
0x7e, 0x00, 0x02, // JMP $0002
|
0x7e, 0x00, 0x04, // JMP $0004
|
||||||
|
0x01, // NOP
|
||||||
|
0x01, // NOP
|
||||||
|
0x01, // NOP
|
||||||
0x01, // NOP
|
0x01, // NOP
|
||||||
0x08, // INX
|
0x08, // INX
|
||||||
0x5a, // DECB
|
0x4a, // DECA
|
||||||
0x7c, 0x00, 0x0f, // INC $0F
|
0x7c, 0x00, 0x0f, // INC $0F
|
||||||
0x0d, // SEC
|
0x0d, // SEC
|
||||||
0xc9, 0x02, // ADCA #$02
|
0xc9, 0x02, // ADCB #$02
|
||||||
0x39, // RTS
|
0x39, // RTS
|
||||||
]
|
]
|
||||||
|
@ -509,6 +509,8 @@ function goForN(n){
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
running = false;
|
running = false;
|
||||||
|
var start = document.getElementById('start');
|
||||||
|
var stop = document.getElementById('stop');
|
||||||
start.style.visibility = 'visible';
|
start.style.visibility = 'visible';
|
||||||
stop.style.visibility = 'hidden';
|
stop.style.visibility = 'hidden';
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user