The source in this repository powers the transistor-level 6502/6800 simulation from http://visual6502.org/JSSim. The code now ships as an npm-aware project that produces a single <dist>/visual6502.js suitable for embedding in a browser.
npm install# installsesbuildwhich is used for bundlingnpm run build# concatenates every simulator file and minifies it intodist/visual6502.js- Serve an HTML page that loads
dist/visual6502.jsand provides the expected DOM Canvas/hooks.
Only the production
dist/visual6502.jsbundle is published; individual script files are used only during the build step.
- The runtime exposes new
performanceMonitorhelpers that track swept nodes, transistor switches, and throughput forbytes processed. The bundle still depends on the legacy globals (nodenames,nodes, etc.) to stay compatible withexpert.html. macros.jsnow aggregates log presets, the performance monitor, and byte counting.chipsim.jsrecords node sweeps and transistor switches so the monitor can report workload without changing the main loop.- Use
npm run lintonce ESLint is configured (not bundled yet) to keep the workspace clean.
This is the JavaScript simulator from the visual6502.org project: www.visual6502.org/JSSim
It includes a general purpose transistor-level simulator, layout browser, and the data from a 6502 revD chip.
It also includes a similar simulator for the 6800 chip.
Note the various licenses and Copyright associated with each file.
Enjoy!
- The Visual 6502 Team