visual6502 Q: Description of the data format

Let's talk about anything related to the 6502 microprocessor.
Post Reply
cerebrum
Posts: 35
Joined: 28 Jan 2013

visual6502 Q: Description of the data format

Post by cerebrum »

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/visual ... 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 ... ansdefs.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.
User avatar
BigEd
Posts: 11464
Joined: 11 Dec 2008
Location: England
Contact:

Re: visual6502 Q: Description of the data format

Post by BigEd »

You're right on all counts!

Ed
Post Reply