NEO Team's Project for SEGA MK3/MD5/32X > MD development section

NeoMythMenuDX-v2.9

<< < (2/11) > >>

Dr.neo:
great job CW,from now we can know what's the exactly HW are using,not need to guess again  ~sm-91.gif~.gif

ChillyWilly:

--- Quote from: joyeux on September 24, 2012, 08:35:06 AM ---Hi... Just tried 2.9.2 (with nice Z button feature), but couldn't initialize BRAM... Am I doing something wrong? I used the 1.30 Neo Programmer, my flash is Rev. A 256kb. Tried it on a CDX, result was a black screen.

--- End quote ---

Huh... never tried it on a flash-only cart. I've always just loaded it from SD. I'm not sure how the PC client writes the file to flash... notice that run mode (1)? That SHOULD be 9 for the BRAM. I'll try it on one of my rev A carts and see if I can't get that working. I'll have it going by tomorrow.
 8)

ChillyWilly:
Fixed problem with using CD BRAM from flash. Some time back, there was a problem with games running from flash with sram having inconsistent run mode values. When I fixed that problem, I forgot about BRAM, so the run mode was being changed from 9 to 1. Another check in the code for BRAM and the problem is solved. Sorry about that - I just so rarely ever use the flash given how easy loading from SD is.
 ::sm-02::

joyeux:
Thanks for the efforts, BRAM mode is enabled! Yes, SD loading may be much easier, but I can't afford it right now.

Well, I don't know if this is a complicated issue, BRAM in flash seems to corrupt data. I started my CDX, formatted the RAM, and started Sonic CD. I played all the first level and recorded it in the RAM as (00) using the Sonic CD RAM Manager. After turning CDX off and on, the Sonic CD RAM manager presented corrupt data (QGNICCD _00). Viewing by the CDX Internal RAM manager, it showed 1010 blocks of free memory. When I went to delete items in the RAM, the Sonic CD file appearead to have 2083 blocks used! And I couldn't delete it until I formatted the RAM.

I know the flash doesn't work well as the SD, but I'm just reporting this issue. Anyway, I'm planning to buy a Neo SD Adapter in a few months... Well, I can live with this.

ChillyWilly:
There was a bug in the size of the bram... we started with FF04, which reports 128KB of bram like the official BRAM. The problem is the maximum amount of sram in the GBA cart is 64KB, so we switched to FF03, which is 64KB of BRAM. So you have to reformat to have a proper BRAM block table. Sorry about that, but it really was wrong... people were losing data since the SCD was trying to use bram that didn't exist. So you only have half as many blocks are the official bram, but you can change which bank is used for more storage if you need it. The BRAM defaults to bank 3, but if you go to the options, you can change that to 0 through 3 for a maximum of 256KB of total storage. Of course, if you use sram with other game, be sure not to overwrite the banks they use.

The following chart can be used to keep track of how the different banks of different sizes overlap. Print it out and write the name of the game in the block used for the size and you shouldn't have any trouble with games overwriting each other.
 :D


--- Code: ---  64Kbit    128Kbit   256Kbit   512Kbit    1Mbit
   4KB        8KB      16KB      32KB      64KB
 _________________________________________________
| bank 0  | bank 0  | bank 0  | bank 0  | bank 0  |
|---------|         |         |         |         |
|_________|_________|         |         |         |
| bank 1  | bank 1  |         |         |         |
|---------|         |         |         |         |
|_________|_________|_________|         |         |
| bank 2  | bank 2  | bank 1  |         |         |
|---------|         |         |         |         |
|_________|_________|         |         |         |
| bank 3  | bank 3  |         |         |         |
|---------|         |         |         |         |
|_________|_________|_________|_________|         |
| bank 4  | bank 4  | bank 2  | bank 1  |         |
|---------|         |         |         |         |
|_________|_________|         |         |         |
| bank 5  | bank 5  |         |         |         |
|---------|         |         |         |         |
|_________|_________|_________|         |         |
| bank 6  | bank 6  | bank 3  |         |         |
|---------|         |         |         |         |
|_________|_________|         |         |         |
| bank 7  | bank 7  |         |         |         |
|---------|         |         |         |         |
|_________|_________|_________|_________|_________|
| bank 8  | bank 8  | bank 4  | bank 2  | bank 1  |
|---------|         |         |         |         |
|_________|_________|         |         |         |
| bank 9  | bank 9  |         |         |         |
|---------|         |         |         |         |
|_________|_________|_________|         |         |
| bank 10 | bank 10 | bank 5  |         |         |
|---------|         |         |         |         |
|_________|_________|         |         |         |
| bank 11 | bank 11 |         |         |         |
|---------|         |         |         |         |
|_________|_________|_________|_________|         |
| bank 12 | bank 12 | bank 6  | bank 3  |         |
|---------|         |         |         |         |
|_________|_________|         |         |         |
| bank 13 | bank 13 |         |         |         |
|---------|         |         |         |         |
|_________|_________|_________|         |         |
| bank 14 | bank 14 | bank 7  |         |         |
|---------|         |         |         |         |
|_________|_________|         |         |         |
| bank 15 | bank 15 |         |         |         |
|---------|         |         |         |         |
|_________|_________|_________|_________|_________|
| bank 16 | bank 16 | bank 8  | bank 4  | bank 2  |
|---------|         |         |         |         |
|_________|_________|         |         |         |
| bank 17 | bank 17 |         |         |         |
|---------|         |         |         |         |
|_________|_________|_________|         |         |
| bank 18 | bank 18 | bank 9  |         |         |
|---------|         |         |         |         |
|_________|_________|         |         |         |
| bank 19 | bank 19 |         |         |         |
|---------|         |         |         |         |
|_________|_________|_________|_________|         |
| bank 20 | bank 20 | bank 10 | bank 5  |         |
|---------|         |         |         |         |
|_________|_________|         |         |         |
| bank 21 | bank 21 |         |         |         |
|---------|         |         |         |         |
|_________|_________|_________|         |         |
| bank 22 | bank 22 | bank 11 |         |         |
|---------|         |         |         |         |
|_________|_________|         |         |         |
| bank 23 | bank 23 |         |         |         |
|---------|         |         |         |         |
|_________|_________|_________|_________|_________|
| bank 24 | bank 24 | bank 12 | bank 6  | bank 3  |
|---------|         |         |         |         |
|_________|_________|         |         |         |
| bank 25 | bank 25 |         |         |         |
|---------|         |         |         |         |
|_________|_________|_________|         |         |
| bank 26 | bank 26 | bank 13 |         |         |
|---------|         |         |         |         |
|_________|_________|         |         |         |
| bank 27 | bank 27 |         |         |         |
|---------|         |         |         |         |
|_________|_________|_________|_________|         |
| bank 28 | bank 28 | bank 14 | bank 7  |         |
|---------|         |         |         |         |
|_________|_________|         |         |         |
| bank 29 | bank 29 |         |         |         |
|---------|         |         |         |         |
|_________|_________|_________|         |         |
| bank 30 | bank 30 | bank 15 |         |         |
|---------|         |         |         |         |
|_________|_________|         |         |         |
| bank 31 | bank 31 |         |         |         |
|---------|         |         |         |         |
|_________|_________|_________|_________|_________|

--- End code ---


Note - the 4KB sram blocks take 8KB of sram since 8KB is the smallest unit of size for the bank selection. So there really isn't a difference between 64Kbit and 128Kbit SRAM modes as far as sram usage goes.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version