New UNIF MAPR 900218

Discuss emulation of the Nintendo Entertainment System and Famicom.

Moderator: Moderators

Post Reply
lidnariq
Posts: 11432
Joined: Sun Apr 13, 2008 11:12 am

New UNIF MAPR 900218

Post by lidnariq »

Zxbdragon found a pirate port of Lord of King, maybe localized to "Axe of Fight". This dump is in the newest GoodNES (3.23b) as 'Lord of King, The (J)[p2].nes', and marked as mapper 23, however that's incorrect.

It has been hacked to use a chip-on-board copy of the VRC2, however, the VRC2 doesn't provide IRQs, and Lord of King (Astyanax) needs an IRQ for split screen. The pirates replaced the existing IRQ structure with a relatively simple CD4040-based IRQ that will fire after 1024 cycles. Banking behavior is roughly the same as VRC4e (0/4/8/C).

Here's zxbdragon's:
* summary in chinese: http://www.nesbbs.com/bbs/thread-30904-1-1.html
* pictures of the cartridge and pcb: http://wiki.nesbbs.com/index.php?doc-view-72
* patch against fceux with support for it: https://github.com/dragon2snow/fceux-du ... 8708e26eda

And the information necessary:
PRG0 SHA1 = 120e203c4f52e63b0af7824d6b894911a6d7a0a
CHR0 SHA1 = ceb6fff70556b2108816ab60f8f9ef2a6ac17aef
MAPR = 900218 (these numbers are silkscreened on the component side and etched on the solder side)
Last edited by lidnariq on Wed Mar 13, 2019 4:15 pm, edited 2 times in total.
zxbdragon
Posts: 498
Joined: Mon Dec 12, 2011 8:15 pm

Re: New UNIF MAPR 900218

Post by zxbdragon »

this rom not in goodnes 2.32b

new dump

http://www.nesbbs.com/nes-music/Lord of King, The (J)[p2].rar

next Dragon Ball Z Gaiden - Saiya Jin Zetsumetsu Keikaku (J) [p1]
User avatar
aquasnake
Posts: 515
Joined: Fri Sep 13, 2019 11:22 pm

Re: New UNIF MAPR 900218

Post by aquasnake »

This is mapper23(VRC4e clone)

The IRQ function of vrc4 family has a 10-bit counter, of which 8bits can be set by the user, and 2bits belong to the prescaler, which can count automatically by monitoring the PPU address.

The IRQ register of mapper524 does not be accessed at $F000/$F004, the initial value of the counter is 0 by default, so it is a counter with 1024 cycles.

So mapper23 completely covers mapper524
lidnariq
Posts: 11432
Joined: Sun Apr 13, 2008 11:12 am

Re: New UNIF MAPR 900218

Post by lidnariq »

Incorrect.

Mapper 23 does not include this IRQ.
User avatar
aquasnake
Posts: 515
Joined: Fri Sep 13, 2019 11:22 pm

Re: New UNIF MAPR 900218

Post by aquasnake »

Lidnariq doesn't think it should be vrc4, and I insist that it is a variant of vrc4

In order to support my theory, I hacked the ROM and changed it to vrc4. I only modified two lines of code and implemented it with IRQ of vrc4

Conversely, I can also use vrc4's hardware chip to implement mapper524
The Lord of King - Select Stage (hM23).zip
(134.17 KiB) Downloaded 54 times
zxbdragon
Posts: 498
Joined: Mon Dec 12, 2011 8:15 pm

Re: New UNIF MAPR 900218

Post by zxbdragon »

aquasnake wrote: Sun Dec 12, 2021 11:33 pm Lidnariq doesn't think it should be vrc4, and I insist that it is a variant of vrc4

In order to support my theory, I hacked the ROM and changed it to vrc4. I only modified two lines of code and implemented it with IRQ of vrc4

Conversely, I can also use vrc4's hardware chip to implement mapper524

The Lord of King - Select Stage (hM23).zip
实际硬件,就是与模拟的效果一样!
同时如果硬件使用4020B就是模拟的效果。
如果使用4040B,那IRQ会导致部分花屏

http://wiki.nesbbs.com/index.php/Lord_of_King,_The
User avatar
aquasnake
Posts: 515
Joined: Fri Sep 13, 2019 11:22 pm

Re: New UNIF MAPR 900218

Post by aquasnake »

zxbdragon wrote: Mon Dec 13, 2021 2:17 am
aquasnake wrote: Sun Dec 12, 2021 11:33 pm Lidnariq doesn't think it should be vrc4, and I insist that it is a variant of vrc4

In order to support my theory, I hacked the ROM and changed it to vrc4. I only modified two lines of code and implemented it with IRQ of vrc4

Conversely, I can also use vrc4's hardware chip to implement mapper524

The Lord of King - Select Stage (hM23).zip
实际硬件,就是与模拟的效果一样!
同时如果硬件使用4020B就是模拟的效果。
如果使用4040B,那IRQ会导致部分花屏

http://wiki.nesbbs.com/index.php/Lord_of_King,_The
这个卡,盗版商为了做低成本,并不用VRC4 CLONE片,而是用CD4040去做计数器, 但是VRC4的伪行扫描计数器真正的计数周期是每行113+2/3 M2 clock, 为了做到这个值,对每行计数采取修正的方法, 而cd4040是无法做到这样的精确计数的,所以cd4040的定时有误差.这导致了状态栏的位置不准确,并且偶尔会抖动.

所以,我认为,原始盗版商应该设计中最初是想做成vrc4,只是太贪图成本,或者vrc4克隆片的采购受阻,而不得不使用cd4040
zxbdragon
Posts: 498
Joined: Mon Dec 12, 2011 8:15 pm

Re: New UNIF MAPR 900218

Post by zxbdragon »

aquasnake wrote: Mon Dec 13, 2021 6:18 am
zxbdragon wrote: Mon Dec 13, 2021 2:17 am
aquasnake wrote: Sun Dec 12, 2021 11:33 pm Lidnariq doesn't think it should be vrc4, and I insist that it is a variant of vrc4

In order to support my theory, I hacked the ROM and changed it to vrc4. I only modified two lines of code and implemented it with IRQ of vrc4

Conversely, I can also use vrc4's hardware chip to implement mapper524

The Lord of King - Select Stage (hM23).zip
实际硬件,就是与模拟的效果一样!
同时如果硬件使用4020B就是模拟的效果。
如果使用4040B,那IRQ会导致部分花屏

http://wiki.nesbbs.com/index.php/Lord_of_King,_The
这个卡,盗版商为了做低成本,并不用VRC4 CLONE片,而是用CD4040去做计数器, 但是VRC4的伪行扫描计数器真正的计数周期是每行113+2/3 M2 clock, 为了做到这个值,对每行计数采取修正的方法, 而cd4040是无法做到这样的精确计数的,所以cd4040的定时有误差.这导致了状态栏的位置不准确,并且偶尔会抖动.

所以,我认为,原始盗版商应该设计中最初是想做成vrc4,只是太贪图成本,或者vrc4克隆片的采购受阻,而不得不使用cd4040
这个作为nesbbs站长,我知道,我有五本不同的盗版这个游戏,但模拟与HACKROM,是两回事
这个盗版模拟就要与原盗版卡一样,如果不一样,那直接玩原版好了
第六个版本也在路上,我看标题画面,应该是有BUG无法通关版本

等周末我都录个视频放到油管和B站上!

这个游戏使用的ax5208c+4040或4020
这个公司的游戏系列都是特意作的特殊的mapper.成本比直接使用ax5208c还要贵一些
Post Reply