Submit Search
Upload
用 Javascript 模擬超任
•
2 likes
•
2,136 views
W
weijr
Follow
COSCUP 2012 presentation, javascript SNES emulator
Read less
Read more
Technology
Education
Report
Share
Report
Share
1 of 29
Download Now
Download to read offline
Recommended
20121111 linux intro
20121111 linux intro
Chang Mt
Musicha 音創筆電試玩坊-在新竹碼農
Musicha 音創筆電試玩坊-在新竹碼農
Shoichi Chou
虚拟化环境下文件系统性能研究
虚拟化环境下文件系统性能研究
博 孟
Banquet 09
Banquet 09
Koubei UED
Porting your favourite cmdline tool to Android
Porting your favourite cmdline tool to Android
Vlatko Kosturjak
利用新硬件提升数据库性能
利用新硬件提升数据库性能
Feng Yu
Cocos2d x presentation cocoachina-王哲
Cocos2d x presentation cocoachina-王哲
csdnmobile
[students AI workshop] Pytorch
[students AI workshop] Pytorch
Tzu-Wei Huang
More Related Content
Featured
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
marketingartwork
Skeleton Culture Code
Skeleton Culture Code
Skeleton Technologies
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
Neil Kimberley
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
contently
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
Albert Qian
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
Search Engine Journal
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
SpeakerHub
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
Clark Boyd
Getting into the tech field. what next
Getting into the tech field. what next
Tessa Mero
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Lily Ray
How to have difficult conversations
How to have difficult conversations
Rajiv Jayarajah, MAppComm, ACC
Introduction to Data Science
Introduction to Data Science
Christy Abraham Joy
Time Management & Productivity - Best Practices
Time Management & Productivity - Best Practices
Vit Horky
The six step guide to practical project management
The six step guide to practical project management
MindGenius
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
RachelPearson36
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Applitools
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
GetSmarter
ChatGPT webinar slides
ChatGPT webinar slides
Alireza Esmikhani
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
Project for Public Spaces & National Center for Biking and Walking
Featured
(20)
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
Skeleton Culture Code
Skeleton Culture Code
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
Getting into the tech field. what next
Getting into the tech field. what next
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
How to have difficult conversations
How to have difficult conversations
Introduction to Data Science
Introduction to Data Science
Time Management & Productivity - Best Practices
Time Management & Productivity - Best Practices
The six step guide to practical project management
The six step guide to practical project management
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
ChatGPT webinar slides
ChatGPT webinar slides
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
用 Javascript 模擬超任
1.
用 Javascript 模擬超任
魏澤人
2.
•國立東華大學應用數學系 助理教授 •Hacker
3.
簡單的歷史 •
JSSpeccy (2008) • JSC64 (2009) • JSNES (2009) • 一些 Gameboy 模擬器 (2010-2011) • JSLinux (2011) • JavaScript-65816 (2012)
4.
硬體表
Release CPU Video Memory ZX 1982 Z80 3.5Mhz 256×192 16/48/128kb 15 color C64 1982 6510 1Mhz 320x200 64k ram 16 color 20k rom NES 1983 6502 256x224 2k ram 1.79Mhz 48 color 8k sram 16 sprites 32krom SNES 1990 65c816 256x224 3.58Mhz (512x478) 15bit color 128 sprites 4 BG
9.
Live Demo 的機器
CPU 是 T5600
10.
Try it at http://weijr.b81.org/xnes/ SnesEmu.html
(try this first) SnesWW.html (firefox linux 64) SnesWW2.html (multicore android) Snes9x.html (very fast computer)
11.
•PySX: 用 Python
寫的 Playstation 模擬器 •利用 Python 來瞭解原理 • 模擬了大部分的 CPU, IO • 能 Boot BIOS • 只缺 GTE , CD-ROM 就能跑遊戲 • 但太慢
12.
如何五天內做出 JS 超任模擬器
13.
當時的計畫是: PS 模擬器都在寫了, 超任模擬器算什麼, 估計十天就能完成了
14.
Day 1: 吃完晚飯後,找到一些文件資料,和 source
code ,完成 rom file loader
15.
Day 2: 發現狀況不太對,好像有點複雜 CPU
指令集有五種模式, PPU 有 8 種還有變 化型,而且(當時)找到的文件不像 PS 那麼 完整。 決定使用 SNEM 配合 Emscripten
16.
•Emscripten 是 LLVM
byte code to JS 翻譯器 •用了 Typed Array •可模擬 SDL , opengl , libc • Demo: Games, Python 直譯器 • Compile 有點慢
17.
•SNEM 是很簡單但是很快的超任模擬器 •使用 Allegro •選擇改寫成
SDL
20.
程式碼也許很亂 但只要是 Open Source
就型
22.
Day 3: 很忙,所以沒有動。
23.
Day 4: •成功改成 SDL •
Emscripten 轉成 .js • 似乎能用 node 跑(沒有畫面) • 不確定對不對 ? • 用 ASCII 方式檢查
26.
Day 5: •轉成 .html •修正顏色問題 •修正
emscripten SDL 鍵盤輸入 bug
28.
Day 6- Now •加入
File API •嚐試 Web Workers •去除 SDL overhead •Porting Snes9x •加速 •更正天空顏色等 bug •修正位元對齊問題
29.
Now – •Gamepad API •Multitouch
API •更有效運用 workers •聲音 •Auto framerate
Download Now