Page 82 of 133 FirstFirst ... 3272808182838492132 ... LastLast
Results 811 to 820 of 1321

Thread: Game Boy

  1. #811
    Emulator Developer ShizZy's Avatar
    Join Date
    Feb 2005
    Location
    RI, USA
    Posts
    762
    Mentioned
    0 Post(s)
    Added MBC2 support

    @Sagon, I've searched around for MBC5... couldn't find much. I'm basically experimenting, seeing if I can get something working. Most of the MBC's are pretty similiar, so it can't be too difficult. As for GBC, I think everything you need is in the Pan Docs, but they don't go into much detail.

    Last edited by ShizZy; November 5th, 2005 at 20:11.
    ~****Zy

    6Bit.net Emulation & Gaming | Forums
    Gekko GameCube Emulator

  2. #812
    Emulator Developer ShizZy's Avatar
    Join Date
    Feb 2005
    Location
    RI, USA
    Posts
    762
    Mentioned
    0 Post(s)
    Added MBC5 Not trying to spam

    Sagon: MBC5 is REALLY easy. It's very similiar to MBC1 through MBC3, except that the rom bank select is 9 bits. Okay, here is what you do. When your emulator writes a value between 0x2000 and 0x2FFF, that is the lower 8 bits of the address. So store that, and then when your emulator writes a value between 0x3000 and 0x3fff, the highest (9th bit) of the rom bank select is the least significant bit of that value. So, just combine the values as your 9 bit rom bank select, and then switch the rom banks (I believe you're supposed to switch the rom banks any time a value is written between 0x2000 and 0x3fff). This is how I did it. I havn't implemented RAM bank switching, but this should be all you need to get some MBC5 stuff working. If that explanation was unclear, here is my quick dirty implementation of it:

    Code:
    unsigned char mbc_lo,mbc_hi;
    unsigned short RomBankRegister;
    
    //.....
    
    if(MBC5) // MBC5
    {
    	// grab the rom bank select bits
    	if(address<0x3000)
    		mbc_lo=data;
    	else
    		mbc_hi=data&BIT7;	
    
    	// assamble the 9bit rom bank select
    	RomBankRegister=(mbc_hi<<1)|mbc_lo;
    
    	// switch the rom bank
    	memcpy(&memory[0x4000],&rom.Buffer[RomBankRegister*0x4000],0x4000);
    }
    ~****Zy

    6Bit.net Emulation & Gaming | Forums
    Gekko GameCube Emulator

  3. #813
    EmuTalk Member
    Join Date
    Jul 2005
    Posts
    27
    Mentioned
    0 Post(s)
    Oooh thank you! Now i have MBC5 implemententation, too =)))
    BTW: is Zen working for you?

    Edit: i finally catched this stupid bug... Zen rom tries to select the high bits of rom bank number, but this rom only 128K, so i should ignore this value. I've constructed the masks for rom sizes and now ANDing it with number of the bank.
    Last edited by Sagon; November 6th, 2005 at 12:31.

  4. #814
    Emulator Developer ShizZy's Avatar
    Join Date
    Feb 2005
    Location
    RI, USA
    Posts
    762
    Mentioned
    0 Post(s)
    Well... you can faintly make out the character sprite amoungst a bunch of bg rubbish. So I guess you could say Zen goes in game But the title screen is all warped like this too. Probably the same bug that causes some issues with Zelda. I still have lots of bugs...

    On a separate note, anyone try anything with SGB? Looks interesting, but a little bit quasi (and a little more work) than it's worth. Also, still looking for GBC docs... as well as MBC4 and MBC7.

    Edit: weird Sagon, I don't mask for the rom sizes at all, and I still get past the Konami screen just fine. (no freezes at all, just garbage as you can see)
    Last edited by ShizZy; November 7th, 2005 at 01:47.
    ~****Zy

    6Bit.net Emulation & Gaming | Forums
    Gekko GameCube Emulator

  5. #815
    EmuTalk Member
    Join Date
    Jul 2005
    Posts
    27
    Mentioned
    0 Post(s)
    Hmm strange... anyway it works and that good. MBC7? I haven't heard about this controller, it is GBC specific? What do you know about other controllers like MMM01, MBC4, HuC3, HuC1. I know only one game containing MMM01 - "Momotarou Collection 2 (J) [S]". On other controllers i haven't found any info and games too.

    BTW i coded a tool for rom sorting by memory bank controllers, hope it will be helpful. Instructions: create a folder "Roms" in same folder with the tool, copy all roms in that folder.
    Last edited by Sagon; November 7th, 2005 at 19:21.

  6. #816
    EmuTalk Member
    Join Date
    Jul 2005
    Posts
    27
    Mentioned
    0 Post(s)
    The time has come for the first release of my emulator of Game Boy - "DGB".
    What's done:
    1) CPU fully implemented, interrupts handling and others.
    2) Background, Window, Sprites drawing
    3) MBC 1,2,3,5 support
    4) Battery load, save
    Requires at least DirectX7.
    Last edited by Sagon; November 7th, 2005 at 21:15.

  7. #817
    Emulator Developer ShizZy's Avatar
    Join Date
    Feb 2005
    Location
    RI, USA
    Posts
    762
    Mentioned
    0 Post(s)
    Excellent work Sagon. Very well debugged. Yes, I believe MBC7 is GBC-specific. As for MBC4, I know very little (I'm assuming it's similiar to mbc5, without officially supporting double speed mode...and maybe some extra limitations?). I think I have a doc on the Hu's though somewhere. Still really need to nail a few bugs before I move on

    Edit: Why'd you remove the dl?
    ~****Zy

    6Bit.net Emulation & Gaming | Forums
    Gekko GameCube Emulator

  8. #818
    EmuTalk Member
    Join Date
    Jul 2005
    Posts
    27
    Mentioned
    0 Post(s)
    Thanks =)
    Download returned, i've uploaded not the latest version =)

  9. #819
    Emulator Developer ShizZy's Avatar
    Join Date
    Feb 2005
    Location
    RI, USA
    Posts
    762
    Mentioned
    0 Post(s)
    Tada! GBC. I have the buggiest emu out of all of us... but I just got plain tired of bug hunting. Still needs a lot of work. Nothing commercial runs quite right.

    Edit: Most demos work mostly right. But I can't for the life of me find a commercial game that doesn't display the pallettes HORRIBLY wrong. Might be because I'm not emulating HDMA... though everything else is there.
    Last edited by ShizZy; November 8th, 2005 at 02:35.
    ~****Zy

    6Bit.net Emulation & Gaming | Forums
    Gekko GameCube Emulator

  10. #820
    Emulator Developer ShizZy's Avatar
    Join Date
    Feb 2005
    Location
    RI, USA
    Posts
    762
    Mentioned
    0 Post(s)
    All in a nights work

    I'll squeeze in a little more coding, it's only 1... then it'll be bed time. Really need to get back to debugging gb monotone games
    Last edited by ShizZy; November 8th, 2005 at 07:09.
    ~****Zy

    6Bit.net Emulation & Gaming | Forums
    Gekko GameCube Emulator

Page 82 of 133 FirstFirst ... 3272808182838492132 ... LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •