mirror of
https://github.com/trebonian/visual6502.git
synced 2024-12-28 05:29:44 +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';
|
||||
|
||||
grChipSize=5500;
|
||||
grChipSize=5000;
|
||||
grCanvasSize=2500;
|
||||
grMaxZoom=24;
|
||||
|
||||
ngnd = nodenames['vss'];
|
||||
npwr = nodenames['vcc'];
|
||||
@ -19,6 +21,15 @@ presetLogLists=[
|
||||
['_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(){
|
||||
for(i in transdefs){
|
||||
var tdef = transdefs[i];
|
||||
|
Loading…
Reference in New Issue
Block a user