主题 : [新闻]bsnes WIP
级别: 联盟成员
UID: 1164
精华: 0
发帖: 1261
威望: 0 星
金钱: 2884 浮游币
贡献值: 0 点
好评度: 54 点
人气: 3 点
在线时间: 119(时)
注册时间: 2004-03-31
最后登录: 2013-05-19
楼主  发表于: 2004-12-21 10:51

[新闻]bsnes WIP

我这星期六为了与SNES同步在调整NTSC时浪费了很多时间。如果你想要知道更多的细节,请看zsnes开发文档,但从本质上说,bsnes现在已经在NTSC同步上非常完美了,但是调速以后就不同步了。
我也重写了HDMA代码等
总之作者将在下个版本支持声音。
原文:
I spent a few hours Saturday messing around with NTSC timing, trying to get something in sync with the SNES. Look on the zsnes development board if you want more specifics on this, but essentially, bsnes is now perfectly in sync with NTSC, excepting that there isn't any speed throttling. There may be periods where the SNES is frozen to allow NTSC to catch up that I don't have in my emulator yet, however. Basically, I use 1365 cycles per scanline now. I get that number from:
(1365 * 525 * (30 / 1.001)) = ((315 / 88) * 1000000) * 6 = SNES clock speed
  I also rewrote the HDMA code, which really sucked. Thanks to a document from anomie, I was able to cut the size of the routines down by probably five times or so what they were before. I also added all 8 transfer modes. I also overhauled the H/DMA timing. DMA will now just lock the processor and transfer byte by byte, updating the screen as it goes along. This will allow me to stop allowing register writes if the DMA transfer is so long that it exceeds h/vblank. I also added timing to HDMA initialization and per line, along with direct and indirect transfer overhead. A huge thanks to anomie again, It'd have probably taken me a year to figure all of his notes out on that on my own. I also now allow $43x8/9/a to be read from and written to, although I somehow doubt that I have that working properly.
  With these fixes, Final Fantasy V's opening works much better. The last problem is that the actual title still doesn't mirror upside down below the top one. But the mode7 part with the credits runs great now.
  It's taking forever to get the spc700 done, because I really don't like writing CPU cores. I don't want to release a new version until I have it working, though. The next release won't have sound: but it will support the sound processor. It's kind of a first step along the way.
级别: 论坛版主
UID: 6498
精华: 1
发帖: 9744
威望: 49 星
金钱: 403153 浮游币
贡献值: 9568 点
好评度: 53295 点
人气: 3105 点
在线时间: 4571(时)
注册时间: 2004-06-07
最后登录: 2024-11-25
沙发  发表于: 2004-12-21 11:30

很初级的一个模拟器,运行效果和兼容性都不太理想