On this page you will get the Source code for emulate a Sega Master System with my VGA expansion board.
The original work for the st429 Discovery board is from Alessandro Rocchegiani.
You can watch his video here :
STM32F429 Discovery Sega Master System Emulator
I want to thank Alessandro and his Son Fabrizio for all the help they provided for adapt this emulator on my library.
You will see the result here :
stm32f429 discovery board running Sega Master System Emulator in VGA screen
A big update to the Emulator today the : 2014 02 09:
First of all i finally found what have made the Emulator 2 x slower than the normal speed.
It was the Wii controller driver.
Because I2C need some delay between send/receive , at each screen we loose allot of time.
So i decided to remove the Wii from here and use now the TM1638 driver , SPI is so fast that you
don't see any breaking when you are playing.
Only bad thing is that i don't have joystick that work with SPI actually
Alessandro use buttons connected to free pins from the disco board , and i use the Spectrum
keyboard i just made for the other emulator to play with the SMS games , not really effective
but good for intensive testing.
Alessandro helped allot here for the use of the 4 x SMS screen resolution , don't forget that we
use 640 x 480 pixels here and it take lot's of time.
And now everything run smooth , i see that some games like R-Type have sometimes graphical bugs.
But for a beta version we have to agree that it run well
Now more information about the key used from the Spectrum keyboard.
At the starting menu you can choose the game you want run.
the key's are :
Up = 1
Down = Q
Select = Enter
In-game key to use :
UP = S
DOWN = Z
LEFT = Caps Shift
RIGHT = X
FIRE 1 = Symbol Shift
FIRE 2 = Break Space
For select another game use :
RESET
This will stop the actual game , open the Selector Menu , and let you choose the next game to play.
Now for use other SMS ROM Images don't forget to modify :
#define NUM_CARTRIDGE 6 <-- you need to put the exact number of Game ROM you put on the SD Card
Next is just to edit this variable ,
the 1st value (0x0F for example) is the number of 16k bank that the ROM contain.
0x00 (0) to 0x0F(15) = 16 (0 is included !!)
Then for the 0x0F Value the ROM is a 16 x 16k = 256k ROM
the next value :
"Sonic the Hedgehog '91" is what you will see on the Selector menu
Then come the :
"0:/sms/Sonic.sms" it's where you have put the ROM into the SD Card
Don't forget that we use the 8.3 format (8 Character for name and 3 Character for extension)
// Place the ROM into SDRAM 2 after the Display buffers
ROMS Cartridge[NUM_CARTRIDGE]={
// 0123456789012345678901
{0x0f,"Sonic the Hedgehog '91","0:/sms/Sonic.sms"},
{0x0f,"Castle of Illusion '90","0:/sms/Castle.sms"},
{0x0f," Psycho Fox '89 ","0:/sms/Psycho.sms"},
{0x1f," The Lion King '94 ","0:/sms/Lion.sms"},
{0x1f," R-Type ","0:/sms/RType.sms"},
{0x1f," D. Duck in Hollywood ","0:/sms/Daffy.sms"}
};
You have just to recompile and play your games ;)
News from 2014-02-25:
I
improved the way i read the SDCard , before it was bytes per bytes ,
now i use a fixed address to SDRAM for not have to specify them in the
Load function and
the File are read with 512 bytes block , it have improve the stability on reading and i doesn't get any read error up to now.
At bottom from the page , the latest source code.
google File 有提供原文件
一周热门 更多>