Minimig Discussion Forum

Discussing the Open Source FPGA Amiga Project
It is currently Wed Oct 18, 2017 8:12 pm

All times are UTC




Post new topic Reply to topic  [ 49 posts ]  Go to page Previous  1, 2, 3, 4, 5  Next
Author Message
 Post subject: Re: Sega Master System
PostPosted: Tue Jul 03, 2012 9:47 am 
Offline

Joined: Mon Dec 01, 2008 9:58 pm
Posts: 1568
Location: .de
After FPGA core is loaded PIC & ARM wait for am SPI signal/code to receive "kic.rom" file.
This could in theory be used to upload a 256KB or 512KB Sega ROM mage. But its necessary to emulate Amigas Floppy behaviour of some level in the alternate core.

_________________
_____________________________
JMP $00000BED ; will guru-meditation until next morning


Top
 Profile  
 
 Post subject: Re: Sega Master System
PostPosted: Mon Jul 09, 2012 7:57 am 
Offline

Joined: Mon Dec 07, 2009 3:53 pm
Posts: 26
Tried the Master System core with some examples from z88dk examples.
Some of the basic examples (<8K) don't work the way they are supposed to.
The VDP may not be complete? Pls prove I'm wrong.

PS.You can actually attach a sd card reader to joy2 port despite the series resistors and use the Petit FS from Elm-Chan.
It's less than 8K of code and data to load rom files. It has been successfully tried out for the ColecoVision on the Minimig with a cartridge menu to select the 90++ roms from the coleco/ dir. I can upload the whole stuff if anyone is interested.(no more use for xmodem method)

For the main sd card on the Minimig, the FPGA has all but 2 signals MMC_SEL and MMC_CLKEN. I'm unsure how to command the Pic18 to activate these signals when accessing the SD card. Then there might be possibilities without touching the original code.(Or am I wrong? I'm not too intimate with the Mig)


Top
 Profile  
 
 Post subject: Re: Sega Master System
PostPosted: Tue Jul 10, 2012 7:31 am 
Offline

Joined: Fri Dec 09, 2011 11:31 am
Posts: 91
This is an experiment with an external SD card :)

Board with SD card connected to a spare IO port.

Attachment:
SD_card.png
SD_card.png [ 137.34 KiB | Viewed 2785 times ]


Initialization SD and viewing card .....

Attachment:
boot_1.png
boot_1.png [ 129.44 KiB | Viewed 2785 times ]


Loading game Psycho Fox and successfully running game ...

Attachment:
boot_2.png
boot_2.png [ 114.18 KiB | Viewed 2785 times ]


I have not got the joystick with two buttons so I can try.


Top
 Profile  
 
 Post subject: Re: Sega Master System
PostPosted: Tue Jul 10, 2012 9:32 am 
Offline

Joined: Mon Dec 01, 2008 9:58 pm
Posts: 1568
Location: .de
Nice result! :)

But remember the spare-io pins 3 & 7 are in use at 4MB Minimig boards with _OE wire to the additional 2 S-RAM chips.
For a global solution the Joystick pins would be best.

_________________
_____________________________
JMP $00000BED ; will guru-meditation until next morning


Top
 Profile  
 
 Post subject: Re: Sega Master System
PostPosted: Mon Jul 16, 2012 5:20 pm 
Offline

Joined: Fri Dec 09, 2011 11:31 am
Posts: 91
Here is a compilation with adjustment for the JOY 2 port. The SD card must by the format FAT16.
This compilation is not tested, now I have a lot of work and then 14 days holiday.
But you can try or play :)

Here is bin:
Attachment:
sega_minimig.zip [99.08 KiB]
Downloaded 204 times

Here is the source:
Attachment:
SegaMaster_minimig_source.zip [2.81 MiB]
Downloaded 227 times

and a description of the involvement of JOY 2 to SD Card
Code:
NET "spi_cs_n"      LOC="P176" |IOSTANDARD = LVCMOS33 ;        # JOY2 pin 1 to SD_CARD (SS Chip_selected) pin 1
NET "spi_di"        LOC="P180" |IOSTANDARD = LVCMOS33 ;        # JOY2 pin 2 to SD_CARD (MOSI)             pin 2
NET "spi_sclk"      LOC="P181" |IOSTANDARD = LVCMOS33 ;        # JOY2 pin 3 to SD_CARD (SCK)              pin 5
NET "spi_do"        LOC="P182" |IOSTANDARD = LVCMOS33 ;        # JOY2 pin 4 to SD_CARD (MISO)             pin 7
NET "spi_33v"       LOC="P178" |IOSTANDARD = LVCMOS33 ;        # JOY2 pin 6 to SD_CARD (VCC 3.3V)         pin 4
                                                               # JOY2 pin 8 to SD_CARD (GND)              pin 3 and pin 6


PS: more about compatibility for games on the web: http://fpga-hacks.blogspot.cz/ or forum: http://www.gadgetfactory.net/gadgetforum/index.php?topic=443.0


Top
 Profile  
 
 Post subject: Re: Sega Master System
PostPosted: Fri Jul 20, 2012 2:35 pm 
Offline

Joined: Wed May 06, 2009 4:43 pm
Posts: 47
Hi all,

so... if I understood well you've loaded SMS roms from a SD card using the spare IO/joy2 port? It's great!
Is that possible in other emus you did (spectrum, for example)?
Thanks for all!

Regards


Top
 Profile  
 
 Post subject: Re: Sega Master System
PostPosted: Thu Jul 26, 2012 4:32 pm 
Offline

Joined: Mon Dec 07, 2009 3:53 pm
Posts: 26
It seems like the Minimig is short of 4 block rams.
The game would seems to load but not run properly.
The sub-folder files don't show properly.
Pls confirm my testing.

L@K


Top
 Profile  
 
 Post subject: Re: Sega Master System
PostPosted: Sat Jul 28, 2012 8:33 pm 
Offline

Joined: Fri Dec 09, 2011 11:31 am
Posts: 91
lak wrote:
It seems like the Minimig is short of 4 block rams.
The game would seems to load but not run properly.
The sub-folder files don't show properly.
Pls confirm my testing.

L@K



Oh yeah, it's possible. I made a change and then I forgot it .... after the holiday to look at it .... thanks for the info


Top
 Profile  
 
 Post subject: Re: Sega Master System rebooted
PostPosted: Thu Aug 16, 2012 12:58 pm 
Offline

Joined: Mon Dec 07, 2009 3:53 pm
Posts: 26
@minimig_emu , I hope you don't mind that I took liberties with the source code posted while you're on vacation.
Now you can run some roms.....Hope the original author Ben improves the code soon.
I've attached the ISE 13.1 archive.
The sdcard adaptor is attached to 1,2,3,4 + 5v->3.3V and gnd of joyport 1. pls see the ucf file and make your changes.
Joypad is attached to joyport 2.
My .bin is in the src dir. My minimig is the basicl setup with pic alt core boot menu.
Hope it works for everyone here.

L@K


Attachments:
master_system.zip [1.66 MiB]
Downloaded 229 times
Top
 Profile  
 
 Post subject: Re: Sega Master System rebooted
PostPosted: Thu Aug 16, 2012 8:50 pm 
Offline

Joined: Fri Dec 09, 2011 11:31 am
Posts: 91
lak wrote:
@minimig_emu , I hope you don't mind that I took liberties with the source code posted while you're on vacation.

L@K


I am glad that you look at it.
My vacation ends next week, then I get to Minimigu :) ... And I can not wait to try it.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 49 posts ]  Go to page Previous  1, 2, 3, 4, 5  Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Translated by Xaphos © 2007, 2008, 2009 phpBB.fr