给新手的Playstation1模拟器制作教程(Playstation Emulation Guide英汉双语本)

夜雨未稠

本文仅供试读,全文请访问夜雨未稠

This is my attempt at documenting my implementation of a PlayStation emulator from scratch. I’ll write the document as I go and I’ll try to explain as much as possible along the way. You can find the complete source of the emulator itself in my GitHub repository.
这是我尝试记录从零实现PlayStation模拟器的过程。我将在写本文档时尽可能地详细解释。你可以在我的GitHub仓库中找到模拟器本身的完整源代码。
Since my favourite pass time is to reinvent the wheel and recode things that already exist I decided that this time I might as well document it. This way maybe this time something useful will come out of it and it’ll give me the motivation to finish it.
由于我最喜欢通过重新发明轮子和重写已有的代码来消磨时间,我决定这次不妨把过程记录下来。这样也许会产生一些有用的东西,这也是我完成它的动力。
I will be using the Rust programming language but this is not meant as a Rust tutorial and knowledge of the language shouldn’t be necessary to follow this guide, although it won’t hurt.
我将使用Rust编程语言,而本文不是Rust教程。Rust的知识对遵循本指南并无必要。
1.1 模拟器复杂吗(Isn’t emulation complicated?)
Emulation requires some low-level knowledge about how computers work and some basics in electronics might help for certain things. Since this doc is meant as an introduction to emulation I’ll assume that the reader doesn’t bring anything with them beyond some decent programming skills. So don’t worry if you’re not familiar with registers, cache, memory-mapped IO, virtual memory, interrupts and other low-level fun: I’ll try to explain everything when needed. Emulators are a good introduction to low-level programming without having to bother with that pesky hardware in person!
硬件仿真需要一些关于计算机如何工作的底层知识,电子学的基础知识也许会有帮助。由于本文档是硬件仿真的介绍,我将假设读者没有基本的编程技巧以外的一切。所以,如果你不熟悉寄存器、高速缓存、内存映射I/O、虚拟内存、中断和其他底层知识,也不用担心。我会在必要时解释它们。模拟器是初步学习底层编程的好材料,使我们不因硬件本身烦恼。
Since this is supposed to be a general guide about writing PlayStation emulators I won’t put the entire source code of the emulator here, only snippets relevant to the matter being discussed.
由于本文是编写PlayStation模拟器的通用指南,我不会把全部源代码放在这里,只摘录与当前内容有关的片段。
Finally, keep in mind that getting a PlayStation emulator even capable to run some games decently will require quite a lot of work. Don’t expect to play Final Fantasy VII on your brand new emulator in two days. If you want to start with something simpler to see if you have a taste for it you can search for Chip-8, Game Boy or NES emulation tutorials (by increasing complexity).
最后,使PlayStation模拟器能顺畅地运行游戏需要相当多的工作。不太可能几天就能在全新的模拟器上玩《最终幻想7》。如果你想从更简单的东西开始,并且也有兴趣,可以搜索Chip-8、Game Boy或NES模拟器教程(按复杂程度增加)。

阅读 324
1 声望
0 粉丝
0 条评论
1 声望
0 粉丝
文章目录
宣传栏