It is currently Sun Dec 17, 2017 8:27 pm

All times are UTC - 7 hours





Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Mon Nov 12, 2012 6:52 am 
Offline

Joined: Mon Nov 12, 2012 6:37 am
Posts: 3
请问有没有具体的fc模拟器制作的入门教程。

我很想自己制作一个fc的模拟器,为了当初和好友的约定,也想借此练习一下c++编程。

找了很久找到这个地方,很多英文资料,都是讲述有关游戏机的硬件资料等,
感觉这些资料得先入门后再看比较合适,我现在去看,连mapper是什么,为了什么而存在(cpu寻址内存?)都不太清楚,
因此我想问问写程序改怎么入手好呢?要是有个简单的cpu模拟程序就好了,指令不需要解释太多,只要告诉个大概方向就好了。

我想一个cpu应该大概是这样的吧:

void main()
{
读取rom文件
在while循环里面对rom文件的内容进行指令解析
}

希望有经验的人能帮忙指导,谢谢啦~


Top
 Profile  
 
PostPosted: Fri Nov 30, 2012 5:20 am 
Offline
User avatar

Joined: Mon Sep 05, 2011 5:56 pm
Posts: 287

但是你什麼都不知道,很難開發模擬器~


Top
 Profile  
 
PostPosted: Sat Dec 01, 2012 10:42 pm 
Offline

Joined: Mon Nov 12, 2012 6:37 am
Posts: 3
byemu wrote:

但是你什麼都不知道,很難開發模擬器~


能不能具体指导一下,我真的很想自己弄一个出来!!


Top
 Profile  
 
PostPosted: Sun Dec 02, 2012 7:38 pm 
Offline
User avatar

Joined: Mon Sep 05, 2011 5:56 pm
Posts: 287
lvshuchengyin wrote:
byemu wrote:

但是你什麼都不知道,很難開發模擬器~


能不能具体指导一下,我真的很想自己弄一个出来!!


先写一个CPU模拟器
参考:Blargg's 6502 Emulation Notes
http://www.slack.net/~ant/nes-emu/6502.html


Top
 Profile  
 
PostPosted: Tue Dec 04, 2012 5:38 am 
Offline

Joined: Mon Nov 12, 2012 6:37 am
Posts: 3
byemu wrote:
lvshuchengyin wrote:
byemu wrote:

但是你什麼都不知道,很難開發模擬器~


能不能具体指导一下,我真的很想自己弄一个出来!!


先写一个CPU模拟器
参考:Blargg's 6502 Emulation Notes
http://www.slack.net/~ant/nes-emu/6502.html


好的,非常感谢~!!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC - 7 hours


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group