mirror of
https://github.com/trebonian/visual6502.git
synced 2025-01-02 21:30:07 +00:00
Z80: Adjusted chip/canvas size and max zoom
This commit is contained in:
parent
646f22b79e
commit
95f9d52306
@ -4,7 +4,9 @@
|
|||||||
|
|
||||||
chipname='z80';
|
chipname='z80';
|
||||||
|
|
||||||
grChipSize=5500;
|
grChipSize=5000;
|
||||||
|
grCanvasSize=2500;
|
||||||
|
grMaxZoom=24;
|
||||||
|
|
||||||
ngnd = nodenames['vss'];
|
ngnd = nodenames['vss'];
|
||||||
npwr = nodenames['vcc'];
|
npwr = nodenames['vcc'];
|
||||||
@ -19,6 +21,15 @@ presetLogLists=[
|
|||||||
['_int','_nmi',nodenamereset],
|
['_int','_nmi',nodenamereset],
|
||||||
];
|
];
|
||||||
|
|
||||||
|
// Override drawSeg so we can use a different offset
|
||||||
|
function drawSeg(ctx, seg){
|
||||||
|
var dx = 150;
|
||||||
|
ctx.beginPath();
|
||||||
|
ctx.moveTo(grScale(seg[0]+dx), grScale(grChipSize-seg[1]));
|
||||||
|
for(var i=2;i<seg.length;i+=2) ctx.lineTo(grScale(seg[i]+dx), grScale(grChipSize-seg[i+1]));
|
||||||
|
ctx.lineTo(grScale(seg[0]+dx), grScale(grChipSize-seg[1]));
|
||||||
|
}
|
||||||
|
|
||||||
function setupTransistors(){
|
function setupTransistors(){
|
||||||
for(i in transdefs){
|
for(i in transdefs){
|
||||||
var tdef = transdefs[i];
|
var tdef = transdefs[i];
|
||||||
|
Loading…
Reference in New Issue
Block a user