算法与计算机科学visual6502.org
JavaScript 中的 Visual 6502 模拟器
Visual 6502 in JavaScript
2010 — 2020,它一次次回到首页
黑点是上首页(≥ 50 分)的那次投稿,空心点是没冲上去的投稿,点越大分数越高。
导读
这个页面是 visual6502 项目的浏览器演示:用 JavaScript 在晶体管层面模拟 MOS 6502 处理器,并把芯片内部状态与信号可视化,让人能观察指令执行时芯片各部分的运作。它属于数字开关级模拟,而非模拟电路级仿真。
为什么经久不衰:它把抽象的 CPU 变成看得见的晶体管网络,兼具复古计算的魅力和自底向上的教学价值,而且多年后仍能在浏览器里直接运行。
HN 评论精选
有人做了 WASM 重制版,复用原始数据和 perfect6502 模拟核心。
我最近用 C(加一点 C++)编译到 WASM,写了个 visual6502 的“混音版”,纯属好玩,想看看在浏览器里能否提升芯片可视化的渲染性能,也顺便改善一点用户体验。依赖里最重要的是 visual6502 的原始数据集,以及 perfect6502(晶体管级模拟的 C 重实现)。
flohofwoe查看英文原文
I recently wrote a "remix" of visual6502 (just for fun), with C (and a bit of C++), compiled to WASM to see whether the rendering performance of the chip visualization can be improved while still running in browsers, and also to improve the "UX" a bit: https://floooh.github.io/visual6502remix/ Check Help -> About for a list of dependencies used in that project (lots of good stuff in there), the two most important being the original data sets from visual6502, and a C re-implementation of the transistor-level simulation, called perfect6502 https://github.com/mist64/perfect6502)
演示页缺少一句说明,让人不明白它到底是什么。
我一开始对这个页面很困惑,直到打开 GitHub 项目页才看到“JavaScript 实现的晶体管级 6502 硬件模拟”这句话。为什么演示页上不写这句话,真是个谜。
wldcordeiro查看英文原文
This page was confusing to me until I followed the Github project page and saw this "Transistor level 6502 Hardware Simulation in Javascript". Why this same sentence couldn't be anywhere on the demo page though, is a mystery.
这是数字开关级模拟,不实用但极具教学意义。
晶体管级?我猜这意味着每个晶体管都按纯开关进行数字模拟,而不是当作模拟元件——在现有硬件上用 JavaScript 做那种模拟几乎不可能。这不是模拟 CPU 最实用的方式,但确实是自底向上学习处理器如何工作的好练习。
teilo查看英文原文
At the transistor level? I assume this means that each transistor is simulated digitally, as a pure switch, and not as an analog component, which I imagine would be near impossible to do in Javascript on current hardware. Not the most practical way to emulate a CPU, but surely a good exercise in learning how a processor works from the component level on up.
极具震撼和教育价值,SigGraph 幻灯片也值得一看。
我戴上帽子又摘下来以示敬意。非常震撼。现在我知道该怎么处理在桌边盒子里放了五年的旧 Atari 游戏卡带了。另外,这似乎应该在任何 CS 课程里单独成单元,更不用说作为进一步研究的平台。也许我该把 6502 汇编当爱好。他们的 SigGraph 幻灯片很值得一看。
anigbrowl查看英文原文
I put on a hat so I could take it off again. Very impressive. Now I know what do to do with those old Atari game cartridges which have been sitting in a box by my desk for 5 years. Also, this seems like it should have a unit to itself on any CS course, not to mention serving as a platform much further research. Maybe I should take up 6502 Assembler as a hobby. Their SigGraph slides are well worth a look: http://www.visual6502.org/docs/6502_in_action_14_web.pdf
历次讨论
同类还值得读
位运算技巧集
Bit Twiddling Hacks
斯坦福页面上的经典位运算技巧合集,收录了 popcount、前导/尾随零、位反转、交换、舍入等大量技巧,并附有解释和性能讨论。
算法与计算机科学上首页 8 次 · 2011–2024graphics.stanford.edu编辑精选如何不按平均评分排序
How Not To Sort By Average Rating
经典文章解释了为什么按平均评分排序不可靠:只有少量评价的条目(比如仅一条五星)会轻易排到最前,而评价数量的差异被忽略。
算法与计算机科学上首页 7 次 · 2009–2024evanmiller.org编辑精选数据结构可视化
Data Structure Visualizations
旧金山大学 David Galles 教授制作的数据结构与算法交互式可视化网站,涵盖 B 树、红黑树、排序、图算法等,可逐步操作观察其运行过程。
算法与计算机科学上首页 6 次 · 2011–2021cs.usfca.edu编辑精选1996 年以来的计算机科学最佳论文奖
Best Paper Awards in Computer Science since 1996
Jeff Huang 维护的一个汇总页面,收录了自 1996 年以来计算机科学各主要会议的“最佳论文奖”获奖名单,并按年份和会议整理,方便读者一站式浏览历届获奖论文。
算法与计算机科学上首页 6 次 · 2010–2018jeffhuang.com编辑精选算法(Jeff Erickson)
Algorithms, by Jeff Erickson
伊利诺伊大学 Jeff Erickson 教授的算法课教材,免费在线开放。
算法与计算机科学上首页 5 次 · 2018–2022jeffe.cs.illinois.edu编辑精选