Myself086 / Project-Nested

MIT License
493 stars 17 forks source link

If nes games with opcodes could be patched to run on nested #35

Open johneymute opened 2 years ago

johneymute commented 2 years ago

I,ve readed that some nes games does contain undocumented opcodes such as aladdin,beauty & the beast,F117 stealth fighter and puzznick etc,, The reason why they do contain a few iligal undocumented opcodes from my interpretation is because to save on memory space or clock cycles,but since those opcodes does have most of the time the same meaning as official codes,i was thinking why not patching those games with official codes sothat they could run on nested since the snes 65816 cpu does lack opcodes,and while it is true that nested does support some iligal opcodes(probably to patch nes games with it into normal codes) i was thinking that if we could patch those games with it,to make them run on snes nested,HOWEVER it’s obvious that if many opcodes don’t have the same meaning as official codes,that means that games wich does take advantage of this,will require some alterations and moddifications to make them run on nested but that could also mean that it could run and behave differently, Damn if the 65816 cpu just did supported all iligal opcodes from the nes 6502 cpu,then they would,ve been straight bridge compatible with the snes cpu but nope, still trough it’s exciting that those adress registers from the nes cpu are brigde compatible with snes cpu.

Myself086 commented 2 years ago

128KB SRAM is size 7. You should be testing size 8 and 7 to see which one works. The display bug with the total of 144KB only happens with 16KB SRAM or below.

johneymute commented 2 years ago

Well i did lower it down to 7 and now those games no longer crashes on my everdrive or atleast till certain points in the game unless i will add the generated srm file to it to make the game no longer crash at all (depending at how much nested can learn per play session and how much demanding that game is),but still this optional memory setting does getting already more more game run on my everdrive as opposed to snes9x in the first place😁

Op 4 okt. 2021 om 20:27 heeft Myself086 @.***> het volgende geschreven:



128KB SRAM is size 7. You should be testing size 8 and 7 to see which one works. The display bug with the total of 144KB only happens with 16KB SRAM or below.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/Myself086/Project-Nested/issues/35#issuecomment-933742840, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AVVWMQFAXPBTA74IWFZKBYDUFHW2JANCNFSM5FJT53LA. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

Myself086 commented 2 years ago

I've already said that Nested can detect how much SRAM is available, the wrong 144KB was only visual. The visual bug itself can only happen for sizes 16KB or less.

You can change the amount of SRAM that your SNES file should have as part of the settings on the exe's main window, it's a blue setting called "Sram size".

You said "but saying add sram file or increasing sram size can confuses the crap out of many i suppose." I'm confused as to why you're saying "add sram file".

Test 10 shows that you only have 32KB of SRAM on your Everdrive.

johneymute commented 2 years ago

Hil, I changed the sram size from 8 to 7 and i also activated trunscate memory just in case and i also did not added any sram file to it this time, and yes this time supermariobros 3 finally fully runs on everdrive(aside from the roulette and memory game off couse) ,and i beated it as well, So that’s something absolutely fantastic.

Btw if test program 10 tells us that my everdrive only contains 32KB of sram, then why on earth the site says that it contains 128KB of sram??? well thx for responding anyway.



I've already said that Nested can detect how much SRAM is available, the wrong 144KB was only visual. The visual bug itself can only happen for sizes 16KB or less.

You can change the amount of SRAM that your SNES file should have as part of the settings on the exe's main window, it's a blue setting called "Sram size".

You said "but saying add sram file or increasing sram size can confuses the crap out of many i suppose." I'm confused as to why you're saying "add sram file".

Test 10 shows that you only have 32KB of SRAM on your Everdrive.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/Myself086/Project-Nested/issues/35#issuecomment-933864174, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AVVWMQGY76YDBENNMAP7YUDUFIK6VANCNFSM5FJT53LA. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

johneymute commented 2 years ago

Hi i finally do got metroid work on the everdrive this time, and you wanna know how?, because i trunscated the rom aside from setting sram size to 7,without truncating the rom i just couldn’t get it working on the everdrive(despite i got no error massage about it’s rom size ), however i still just don’t get this freaking damn game working on my powerpak no matter wich region version i tryed aaarrrggg,

1 cool thing is trough while kirby’s adventure normally cannot run at all on the everdrive because of exceeding the 7,5MB/8MB limit of it,HOWEVER, once i trunscated the rom to 4,5MB i finally do got a glitchy title screen with v1,3 and nothing at all with v1.4, so basically instead of patching the game with obsolute data alongside the nessecary data ,it only patches the game with the required data to make it smaller ,so let’s say that for example that there’re 20 digitized psg sounds ,but a game only uses 5 psg sounds,so instead of patching the game with 20 psg sounds from wich 5 psg sounds are turned on while the remaining 15 psg sounds are turned off, it only patches the game with those 5 needed psg sounds while the other remaining 15 psg sounds turned off are not patched at all with the rom,just in order to make the patched rom smaller,same with the used colors, etc,,, this is absolutely fantastic,so nested cannot only turn off settings but also discard them optionally just in order to make truncating roms possible, this is awesome because it makes up for the everdrive having only 8MB of sdram, my powerpak does contain 16MB of sdram ,so i was able to play kirby’s adventure trough level 1 because of this, wich normally wouldn’t be possible on the everdrive but by truncating roms below the 8MB limit from the everdrive i don’t need 16MB of sdram anymore wich is absolutely great,

Verstuurd vanaf mijn iPhone

Op 5 okt. 2021 om 01:22 heeft johannes mutlu @.***> het volgende geschreven:

 Hil, I changed the sram size from 8 to 7 and i also activated trunscate memory just in case and i also did not added any sram file to it this time, and yes this time supermariobros 3 finally fully runs on everdrive(aside from the roulette and memory game off couse) ,and i beated it as well, So that’s something absolutely fantastic, HOWEVER i still do get a black screen with metroid,

Btw i should,ve to mention that while supermariobros 1 does run fine on my powerpak ,HOWEVER that game starts ironically enough on a strange world on both the everdrive and snes9X, that’s pretty strange, well thx alot for this golden advice .

Verstuurd vanaf mijn iPhone

Op 4 okt. 2021 om 23:19 heeft Myself086 @.***> het volgende geschreven:



I've already said that Nested can detect how much SRAM is available, the wrong 144KB was only visual. The visual bug itself can only happen for sizes 16KB or less.

You can change the amount of SRAM that your SNES file should have as part of the settings on the exe's main window, it's a blue setting called "Sram size".

You said "but saying add sram file or increasing sram size can confuses the crap out of many i suppose." I'm confused as to why you're saying "add sram file".

Test 10 shows that you only have 32KB of SRAM on your Everdrive.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/Myself086/Project-Nested/issues/35#issuecomment-933864174, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AVVWMQGY76YDBENNMAP7YUDUFIK6VANCNFSM5FJT53LA. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

johneymute commented 2 years ago

Hi,

you mentioned that according to test program 10 that my everdrive only supports 32KB,but then i wonder why did the specs on my everdrive say that it contains 128KB of sram for save games? Yes the sram on nested v1.4 is atleast is resizible and once i set it to 7 games like mario 3 runs fine so far,(apart from roulette and memory game off course) But if my everdrive only supports 32KB of sram as opposed to 256KB sram from other flashcards,

Then i tent to return my everdrive and wait tillthere will be a better everdrive with twice the sdram and 8 times the sram, that would be great, Now you i know that the very expensive sd2snes/fxpack does met the full requirements of nested,but can you recommant me a snes flash aside from the sd2snes/fxpack/fxpack pro wich also contains 256KB sram and over 8MB of sdram??? Is there an everdrive pro out there or an everdrive with a specefic model number with 256kb sram and over 8MB of sdram?? Please let me know, so i can decide for exchanging or refunding my everdrive whether or not for a better one, Thx alot.

if you do let me know