Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Feature - BSX Loading #89

Open
wants to merge 12 commits into
base: master
Choose a base branch
from
Open

Conversation

terminator2k2
Copy link

No description provided.

@agg23
Copy link
Owner

agg23 commented Oct 15, 2023

I thank you for splitting up the commits, but I would really like the GSU commit to be a part of a separate PR.


The problem with you closing a PR like that and reopening, is now all of the comments and history have been lost, so I have to re-review everything. For future reference, you could have force pushed to the branch, overwriting your previous commits, and Github would have kept history of what happened.

In your closing comment, you stated that MiSTer detects BSX using it's .bs extension. You can accomplish that with GETEXT Rx, Ry.

@terminator2k2
Copy link
Author

terminator2k2 commented Oct 15, 2023

Very Sorry about that , thats the reason i hate making/ammending PR's , i find github hard to navigate and not sure where everything is haha. I did try sending both commits as seperate pull requests , but it seemed to have merged them again.

https://github.com/MiSTer-devel/Main_MiSTer/blob/222d61776f3cc534f1e48ec1a6e31a3bc1588752/user_io.cpp#L2502

ill have a read up on what you wrote.

im back in the land of discovery so looking at it all again lol

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only added BSX bios check. To run bsx roms on pocket the end user has to concatenate the bs rom on top of the BSX bios and edit the header of the bs rom if its needed. Im in the process of making a script to do this.

MiSTer uses the filename extension "bs" to detect when a bs rom is loaded and im not sure that is do-able on pocket plus even if it were possible you would then need to load the BSX bios at offset 0x10000000 and swap the bs rom to 0x10100000 which i have not been able to make happen.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

managed to add .BS extension detection and auto load data slot 1 bsx bios into address 0x10000000 once a .bs rom is loaded. Works quite well now haha , Code probably looks a bit of a mess lol.....I think the only thing wrong now is it doesnt want to save any data for BSX roms or the bios which can get annoying keep having to input your name.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How big is the BSX BIOS? I would prefer to not load it every time and slow down ROM loading for everyone else. However, that would mean we'd have to use the file read API, which may not be easy.

Copy link
Author

@terminator2k2 terminator2k2 Oct 16, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it is 1MB and doesnt it only load the bios when a .bs is loaded

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, this is selectively loading the BIOS, isn't it? It checks the ROM extension, and if so loads the BIOS, then the ROM at the offset you specified?

Copy link
Author

@terminator2k2 terminator2k2 Oct 16, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes thats how it should be working if its correct , it checks for the .bs extension when a file is loaded then if it matches, loads the bios and sets the core, then loads the bios @ 0x10000000 and then loads the inital .bs rom at 0x10100000

Fixes saving
@agg23
Copy link
Owner

agg23 commented Dec 18, 2023

@terminator2k2 What is the status on this PR? Did you get everything working?

@terminator2k2
Copy link
Author

@terminator2k2 What is the status on this PR? Did you get everything working?

yes , should be good to go, i also made a patcher here : https://github.com/terminator2k2/BSX-Rom-Patcher for bsx roms as some games were time limited and were only playable on certain days/weeks of release. some info here : https://wiki.superfamicom.org/bs-x-satellaview-header

terminator2k2 and others added 8 commits March 13, 2024 09:33
Changed warning text style
Fixes for :

Rendering Ranger - SMP: fix IO timings for accuracy

Kawasaki Superbike Challenge - SCPU: fix the reset timings
65816:
-fix instructions in emulation mode (gilyon's test)
-fix interrupt timings

SPC700: fix DIV instrution (gilyon's test)

PPU:
-adjust the HBLANK start position
-adjust the M7 registers latch time

S-CPU: some rework to improve accuracy

SA1: rework clock synchronization

65C816: fix IRQ interrupt

SA1:
-fix open bus
-implement RAM write protection (partial)
SA1: fixes for write protection.
@vanfanel
Copy link

@terminator2k2 Can you please do a PR to @agg23 fork with only the upstream fixes and another with the BSX-related patches?
Seems like BSX stuff is incomplete (the need to concatenate the BSX ROM to the beginning of the game ROM isn't ideal apparently) but having the main fork up to date with MiSTer fixes is needed I think.

@terminator2k2
Copy link
Author

@terminator2k2 Can you please do a PR to @agg23 fork with only the upstream fixes and another with the BSX-related patches? Seems like BSX stuff is incomplete (the need to concatenate the BSX ROM to the beginning of the game ROM isn't ideal apparently) but having the main fork up to date with MiSTer fixes is needed I think.

bsx roms dont need concatenating, when you load a .bsx file it automatically loads the bsx bios. I done a PR some time ago.

@vanfanel
Copy link

vanfanel commented Feb 1, 2025

@terminator2k2 Can you please do a PR to @agg23 fork with only the upstream fixes and another with the BSX-related patches? Seems like BSX stuff is incomplete (the need to concatenate the BSX ROM to the beginning of the game ROM isn't ideal apparently) but having the main fork up to date with MiSTer fixes is needed I think.

bsx roms dont need concatenating, when you load a .bsx file it automatically loads the bsx bios. I done a PR some time ago.

Can you please point me to the commit that fixed that?

@terminator2k2
Copy link
Author

@terminator2k2 Can you please do a PR to @agg23 fork with only the upstream fixes and another with the BSX-related patches? Seems like BSX stuff is incomplete (the need to concatenate the BSX ROM to the beginning of the game ROM isn't ideal apparently) but having the main fork up to date with MiSTer fixes is needed I think.

bsx roms dont need concatenating, when you load a .bsx file it automatically loads the bsx bios. I done a PR some time ago.

Can you please point me to the commit that fixed that?

10518dd

it was done in the chip32 rom loader

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants