6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Sun Nov 10, 2024 7:32 pm

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Fri Feb 01, 2013 4:17 am 
Offline

Joined: Mon Jan 28, 2013 3:09 am
Posts: 35
Hello I'm perusing the javascript source code of the simulator and would like to make some suggestions. Adding a few comments at the beginning of some files would make them much easier to understand.

1. The segdefs file(these are the node definitions I suppose): https://raw.github.com/trebonian/visual6502/master/segdefs.js. I assume the format is the following:
[Node Nr., '+' for powered '-' for neutral or ground, a polygon which is part of the node]
If the node is composed of more polygons the above line is repeated one for each polygon.

2.The transdefs file(these are the transistor definitions): https://github.com/trebonian/visual6502/blob/master/transdefs.js. From the code I deduced the following:
[transistor name starting with a 't', gate node, source node, drain node, [bounding box?], [no idea what this is]]
I'm not sure about source node and drain node since they seem to be interchangeable. In the source I saw the variables c1 and c2 being used to name them.

If my comments are correct I would suggest adding them to the source code.


Top
 Profile  
Reply with quote  
PostPosted: Fri Feb 01, 2013 9:33 am 
Offline
User avatar

Joined: Thu Dec 11, 2008 1:28 pm
Posts: 10976
Location: England
You're right on all counts!

Ed


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: