Wanting to use the Mega ED SDK to develop some ideas for rom loading...

Discussion in 'Mega Everdrive / Everdrive MD' started by Bboydocument, May 19, 2012.

  1. Bboydocument

    Bboydocument Spirited Member

    Joined:
    Oct 22, 2010
    Messages:
    119
    Likes Received:
    0
    This might be more directed to Krikzz...
    I've had this idea for a while now and i'm not sure how to implement this, but here goes...

    I noticed the SDK for the MEGA ED is available, and I was reading the sample code for 'mega-cd', a program that reads a txt file on the SD card, and i'm impressed at this functionality

    So..I was recently thinking of an idea that involves loading a given list of roms from a txt file. You start at the first rom, then switch to the next rom given a set timeframe. The basic algorithm is:
    10 i=0
    20 Load text file
    30 Load rom at line i (or quit if end of txt file)
    40 wait for a set time frame (say, 30 seconds as an example)
    50 i++
    60 go to line 30
    ...

    I don't know how possible this is, given that the program would have to still be in memory while it switches roms. Also, i don't know if there exists a function to load a rom on the Mega ED? or if i can even access a timer?

    What I wanted to achieve with this was like a "kiosk" mode system, that just goes through a list of games in a given text file. It could be used in gaming competitions. Or, you just want to test a random set of roms and play each for a few minutes before the next game.

    So, can you see where i'm going with this idea? and is it possible?

    BTW I wanted to ask about whether this was possible with the existing ED and SNES-ED but I doubt it :subdued:

    EDIT: Also would be good to randomise a rom list to achieve the above...
     
    Last edited: May 19, 2012
  2. KRIKzz

    KRIKzz Well Known Member

    Joined:
    Apr 5, 2010
    Messages:
    1,672
    Likes Received:
    2
    You should copy rom to not used memory space, then remap tose space to begin of address spae and jump to reset vector address. also, befor game start, you should modify vblank interrupt vector, need to redirect game vblank to your code, othervise you will not be able to return from the game to your code. Better to use some special directory, instead of text file with list of files
     
  3. Bboydocument

    Bboydocument Spirited Member

    Joined:
    Oct 22, 2010
    Messages:
    119
    Likes Received:
    0
    Thanks Krikzz, that's what I needed to hear
     
  4. Bboydocument

    Bboydocument Spirited Member

    Joined:
    Oct 22, 2010
    Messages:
    119
    Likes Received:
    0
    Krikzz, I just noticed that there is an Everdrive SDK is available for the ED. Will this idea still be achievable on the ED, or is the Mega ED more capable of delivering?
     
  5. KRIKzz

    KRIKzz Well Known Member

    Joined:
    Apr 5, 2010
    Messages:
    1,672
    Likes Received:
    2
    almost impossible with original edmd
     
sonicdude10
Draft saved Draft deleted
Insert every image as a...
  1.  0%

Share This Page