{"id":499,"date":"2011-02-26T15:22:13","date_gmt":"2011-02-26T13:22:13","guid":{"rendered":"http:\/\/www.kameli.net\/marq\/?p=499"},"modified":"2023-03-05T22:58:32","modified_gmt":"2023-03-05T20:58:32","slug":"ppc-linux-and-sega-megadrivegenesis-emulation","status":"publish","type":"post","link":"http:\/\/www.kameli.net\/marq\/?p=499","title":{"rendered":"PPC Linux and Sega Megadrive\/Genesis emulation"},"content":{"rendered":"<p>This time exceptionally in English \u2013 I thought this might benefit some fellow PPC users abroad, too. It seems by all accounts that Megadrive\/Genesis emulation under PPC Linux is a hopeless attempt: <em>Dgen <\/em>just crashes, <em>Xmess<\/em> doesn&#8217;t do any better, and up-to-date emulators, such as <em>Gens\/GS,<\/em> don&#8217;t support the PPC platform (a generic Z80 core is apparently under construction). I was looking into compiling the excellent <em>PicoDrive<\/em>, but its sources seem to be here and there and no generic Linux version exists. So, no Megadrive for us, right?<\/p>\n<p>Luckily I came across <a href=\"http:\/\/www.squish.net\/generator\/\">Generator<\/a>, which has been ported to Linux\/SDL a few years ago. After the usual configure\/make fiddling the emulator actually ran games, but with distorted sound. A quick peek at the sources revealed a tiny endian problem, which was quickly fixed. While I was at it, I added an example config file, a PPC Linux binary, options to force the video overlay off (in case it doesn&#8217;t work for you), set the fullscreen resolution and to turn CPU saving off. I didn&#8217;t like the fact that the emulator wouldn&#8217;t start the games right away, so I turned autostart on, too. There are still some grave issues with sound: for example the music in Sonic 2 doesn&#8217;t play correctly, but that&#8217;s something out of my scope right now. At some point something has been broken \u2013 probably with GCC \u2013 since when I tried to compile the emulator on x86 Linux it simply crashed after a while. Not much of an issue, though, since there are other alternatives out there.<\/p>\n<p>Download here (source and binary included): <a href=\"http:\/\/www.kameli.net\/~marq\/generator-0.35-cbiere-marq-r1.tar.gz\">generator-0.35-cbiere-marq-r1.tar.gz<\/a><\/p>\n<p>If you wish to compile it yourself, just run <em>.\/configure &#8211;with-sdl &#8211;with-cmz80 ; make<\/em> in the src directory. For running games: <em>.\/generator-sdl-ppc romname<\/em> (and optionally <em>-c generator.config.example<\/em>). Tested under Ubuntu 10.04 only, so let me know if it works for you. Alternative solutions to Megadrive emulation are most welcome as well.<\/p>\n<p><em>edit:<\/em> Apparently the good folks behind <a href=\"http:\/\/mednafen.sourceforge.net\/\">Mednafen<\/a> are working on Sega support too. Here&#8217;s hoping \ud83d\ude42<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This time exceptionally in English \u2013 I thought this might benefit some fellow PPC users abroad, too. It seems by all accounts that Megadrive\/Genesis emulation under PPC Linux is a hopeless attempt: Dgen just crashes, Xmess doesn&#8217;t do any better, and up-to-date emulators, such as Gens\/GS, don&#8217;t support the PPC platform (a generic Z80 core [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13,14,31,15,24],"tags":[],"class_list":["post-499","post","type-post","status-publish","format-standard","hentry","category-linux","category-mac","category-pelit","category-retro","category-softat"],"_links":{"self":[{"href":"http:\/\/www.kameli.net\/marq\/index.php?rest_route=\/wp\/v2\/posts\/499","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.kameli.net\/marq\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.kameli.net\/marq\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.kameli.net\/marq\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.kameli.net\/marq\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=499"}],"version-history":[{"count":7,"href":"http:\/\/www.kameli.net\/marq\/index.php?rest_route=\/wp\/v2\/posts\/499\/revisions"}],"predecessor-version":[{"id":904,"href":"http:\/\/www.kameli.net\/marq\/index.php?rest_route=\/wp\/v2\/posts\/499\/revisions\/904"}],"wp:attachment":[{"href":"http:\/\/www.kameli.net\/marq\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=499"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.kameli.net\/marq\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=499"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.kameli.net\/marq\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=499"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}