Author Topic: FAT drivers for multi card + MK2/3 SD/MMC access  (Read 30185 times)

0 Members and 1 Guest are viewing this topic.

Offline cory1492

  • Neo MOD
  • Hero Member
  • *
  • Posts: 1443
    • Cory1492's NDS + PSP corner
Re: FAT drivers for multi card + MK2/3 SD/MMC access
« Reply #30 on: May 19, 2006, 08:44:37 PM »
The GBA header should contain the cart size somewhere (in MBit IIRC), although sometimes its tricksy.
Those who have come here to hate should leave now, for in their hatred they only betray themselves.
translated from The Book of Life (Src: Sword of Truth - Phantom by Terry Goodkind)

Offline TheMikaus

  • Newbie
  • *
  • Posts: 26
Re: FAT drivers for multi card + MK2/3 SD/MMC access
« Reply #31 on: May 19, 2006, 09:22:59 PM »
 Address Bytes Expl.
  000h    4     ROM Entry Point  (32bit ARM branch opcode, eg. "B rom_start")
  004h    156   Nintendo Logo    (compressed bitmap, required!)
  0A0h    12    Game Title       (uppercase ascii, max 12 characters)
  0ACh    4     Game Code        (uppercase ascii, 4 characters)
  0B0h    2     Maker Code       (uppercase ascii, 2 characters)
  0B2h    1     Fixed value      (must be 96h, required!)
  0B3h    1     Main unit code   (00h for current GBA models)
  0B4h    1     Device type      (huh ???)
  0B5h    7     Reserved Area    (should be zero filled)
  0BCh    1     Software version (usually 00h)
  0BDh    1     Complement check (header checksum, required!)
  0BEh    2     Reserved Area    (should be zero filled)

Is what the site I was using says :/

http://www.work.de/nocash/gbatek.htm#cartridges

Is there somewhere else I should be looking?

Offline cory1492

  • Neo MOD
  • Hero Member
  • *
  • Posts: 1443
    • Cory1492's NDS + PSP corner
Re: FAT drivers for multi card + MK2/3 SD/MMC access
« Reply #32 on: May 19, 2006, 09:42:38 PM »
Not that I am aware of... what I do know is that all the GBA cart readers I have encountered are able to calculate the size of the cart without taking much time (about 1 second) before really reading them - which leads me to assume there is some form of chip ID going on... of course, that is probably assuming way too much (hence alot of overdumps etc).
Those who have come here to hate should leave now, for in their hatred they only betray themselves.
translated from The Book of Life (Src: Sword of Truth - Phantom by Terry Goodkind)

Offline Extreme Coder

  • Neo-Newbie
  • Full Member
  • *
  • Posts: 147
  • GL2D Version 0.1 Coming Soon:)
    • My Website
Re: FAT drivers for multi card + MK2/3 SD/MMC access
« Reply #33 on: May 20, 2006, 12:58:14 AM »
Wow! TheMikaus, I've been working on the same program yesterday, and although it successfully dumps gba roms from the gba slot, it has the same problem yours have; I can't know the size of the rom. I just dump a certain number of MBs. It'd be great if I could know the size of the gba rom, from the header.

Offline cory1492

  • Neo MOD
  • Hero Member
  • *
  • Posts: 1443
    • Cory1492's NDS + PSP corner
Re: FAT drivers for multi card + MK2/3 SD/MMC access
« Reply #34 on: May 20, 2006, 09:38:50 AM »
I did some digging and here is what I came up with:
The ROM size definitely isnt in the header, it is usually determined by scanning the cart (for mirroring of the header or nulls) or by user input.
Those who have come here to hate should leave now, for in their hatred they only betray themselves.
translated from The Book of Life (Src: Sword of Truth - Phantom by Terry Goodkind)

Offline TheMikaus

  • Newbie
  • *
  • Posts: 26
Re: FAT drivers for multi card + MK2/3 SD/MMC access
« Reply #35 on: May 25, 2006, 09:25:29 PM »
thanks!  I just look for several zeros in a row.  Which means you get several extra K, but the game seems to dump fine.