mirror of
https://github.com/trebonian/visual6502.git
synced 2024-06-09 17:29:28 +00:00
Merge pull request #39 from mmfoerster/master
Patch allNodes() to generate list of numbers for the node indexes instead of numeric strings, fix JMP indirect mnemonic
This commit is contained in:
commit
651d8a44c5
10
chipsim.js
10
chipsim.js
|
@ -143,7 +143,15 @@ function saveString(name, str){
|
||||||
|
|
||||||
function allNodes(){
|
function allNodes(){
|
||||||
var res = new Array();
|
var res = new Array();
|
||||||
for(var i in nodes) if((i!=npwr)&&(i!=ngnd)) res.push(i);
|
var ii = 0;
|
||||||
|
for(var i in nodes) {
|
||||||
|
// Don't feed numeric strings to recalcNodeList(). Numeric
|
||||||
|
// strings can cause a (data dependent) duplicate node number
|
||||||
|
// hiccup when accumulating a node group's list, ie:
|
||||||
|
// group => [ "49", 483, 49 ]
|
||||||
|
ii = Number( i );
|
||||||
|
if((ii!=npwr)&&(ii!=ngnd)) res.push(ii);
|
||||||
|
}
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -13569,7 +13569,15 @@ function saveString(name, str){
|
||||||
|
|
||||||
function allNodes(){
|
function allNodes(){
|
||||||
var res = new Array();
|
var res = new Array();
|
||||||
for(var i in nodes) if((i!=npwr)&&(i!=ngnd)) res.push(i);
|
var ii = 0;
|
||||||
|
for(var i in nodes) {
|
||||||
|
// Don't feed numeric strings to recalcNodeList(). Numeric
|
||||||
|
// strings can cause a (data dependent) duplicate node number
|
||||||
|
// hiccup when accumulating a node group's list, ie:
|
||||||
|
// group => [ "49", 483, 49 ]
|
||||||
|
ii = Number( i );
|
||||||
|
if((ii!=npwr)&&(ii!=ngnd)) res.push(ii);
|
||||||
|
}
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -14407,7 +14415,7 @@ var dis6502={
|
||||||
0x68:"PLA",
|
0x68:"PLA",
|
||||||
0x69:"ADC #",
|
0x69:"ADC #",
|
||||||
0x6A:"ROR ",
|
0x6A:"ROR ",
|
||||||
0x6C:"JMP zp",
|
0x6C:"JMP (Abs)",
|
||||||
0x6D:"ADC Abs",
|
0x6D:"ADC Abs",
|
||||||
0x6E:"ROR Abs",
|
0x6E:"ROR Abs",
|
||||||
0x70:"BVS ",
|
0x70:"BVS ",
|
||||||
|
@ -14855,4 +14863,4 @@ jQuery.cookie = function(name, value, options) {
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
})(jQuery);
|
})(jQuery);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user