{"action":"created","issue":{"url":"https://api.github.com/repos/openMSX/openMSX/issues/383","labels_url":"https://api.github.com/repos/openMSX/openMSX/issues/383/labels{/name}","comments_url":"https://api.github.com/repos/openMSX/openMSX/issues/383/comments","events_url":"https://api.github.com/repos/openMSX/openMSX/issues/383/events","html_url":"https://github.com/openMSX/openMSX/issues/383","id":90099625,"number":383,"title":"[Bug] No FM sound in Shrines of Enigma [sf#82]","user":{"login":"openMSX-import","id":12987176,"avatar_url":"https://avatars.githubusercontent.com/u/12987176?v=3","gravatar_id":"","url":"https://api.github.com/users/openMSX-import","html_url":"https://github.com/openMSX-import","followers_url":"https://api.github.com/users/openMSX-import/followers","following_url":"https://api.github.com/users/openMSX-import/following{/other_user}","gists_url":"https://api.github.com/users/openMSX-import/gists{/gist_id}","starred_url":"https://api.github.com/users/openMSX-import/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openMSX-import/subscriptions","organizations_url":"https://api.github.com/users/openMSX-import/orgs","repos_url":"https://api.github.com/users/openMSX-import/repos","events_url":"https://api.github.com/users/openMSX-import/events{/privacy}","received_events_url":"https://api.github.com/users/openMSX-import/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/openMSX/openMSX/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/openMSX/openMSX/labels/Sound","name":"Sound","color":"ededed"}],"state":"closed","locked":false,"assignee":{"login":"m9710797","id":6695233,"avatar_url":"https://avatars.githubusercontent.com/u/6695233?v=3","gravatar_id":"","url":"https://api.github.com/users/m9710797","html_url":"https://github.com/m9710797","followers_url":"https://api.github.com/users/m9710797/followers","following_url":"https://api.github.com/users/m9710797/following{/other_user}","gists_url":"https://api.github.com/users/m9710797/gists{/gist_id}","starred_url":"https://api.github.com/users/m9710797/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/m9710797/subscriptions","organizations_url":"https://api.github.com/users/m9710797/orgs","repos_url":"https://api.github.com/users/m9710797/repos","events_url":"https://api.github.com/users/m9710797/events{/privacy}","received_events_url":"https://api.github.com/users/m9710797/received_events","type":"User","site_admin":false},"milestone":null,"comments":2,"created_at":"2015-06-22T13:35:00Z","updated_at":"2015-06-22T13:39:56Z","closed_at":"2015-06-22T13:39:45Z","body":"**Reported by manuelbi on 2003-02-18 21:41 UTC**\nThe FM sound in &amp;quot;The Shrines of Enigma &amp;quot; that worked\r\njust fine before, doesn't work anymore... There is no\r\nFM sound at all anymore, only PSG. Still worked with\r\nGianna Sisters, e.g., though."},"comment":{"url":"https://api.github.com/repos/openMSX/openMSX/issues/comments/114107059","html_url":"https://github.com/openMSX/openMSX/issues/383#issuecomment-114107059","issue_url":"https://api.github.com/repos/openMSX/openMSX/issues/383","id":114107059,"user":{"login":"openMSX-import","id":12987176,"avatar_url":"https://avatars.githubusercontent.com/u/12987176?v=3","gravatar_id":"","url":"https://api.github.com/users/openMSX-import","html_url":"https://github.com/openMSX-import","followers_url":"https://api.github.com/users/openMSX-import/followers","following_url":"https://api.github.com/users/openMSX-import/following{/other_user}","gists_url":"https://api.github.com/users/openMSX-import/gists{/gist_id}","starred_url":"https://api.github.com/users/openMSX-import/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openMSX-import/subscriptions","organizations_url":"https://api.github.com/users/openMSX-import/orgs","repos_url":"https://api.github.com/users/openMSX-import/repos","events_url":"https://api.github.com/users/openMSX-import/events{/privacy}","received_events_url":"https://api.github.com/users/openMSX-import/received_events","type":"User","site_admin":false},"created_at":"2015-06-22T13:39:56Z","updated_at":"2015-06-22T13:39:56Z","body":"**Commented by manuelbi on 2003-02-20 21:54 UTC**\nLogged In: YES \nuser\\_id=78178\n\nI asked someone to test it on a real MSX2. The same happens\\!\r\nNo FM sound. \r\nThe game doesn't initialize the FM PAC at all. When booting\r\nwith DOS, typing CALL MUSIC, CALL SYSTEM and then from drive\r\nB: booting the game with 'portal', the game \\*does\\* have FM\r\nSound on real MSX and exactly the same happens in openMSX. \r\n\r\nAlso, Maarten wrote:\r\n\r\nI added prints when the FMPAC memory range was read or\r\nwritten. Only the BIOS \r\naccesses it: 0x4000-0x4009 for cartridge info and 0x4010 for\r\na write test to \r\ncheck whether this is RAM. The game never accesses the FMPAC\r\nmemory.\r\n\r\nI investigated the disk image as well. Indeed the search and\r\ninitialisation \r\ncode is there, but it is never called. I put a &amp;quot;DI ; HALT&amp;quot;\r\nin the search code \r\nand the game worked just fine. It seems they hardcoded the\r\nresult as \r\n&amp;quot;MSX-MUSIC found&amp;quot; and didn't bother to run the check\r\nanymore, forgetting that \r\nthe initialisation side effect is necessary for Panasonic\r\nFMPACs.\r\n\r\nThe variable at offset 0x4C09 in the disk image contains the\r\nsound chip found. \r\nIt is initially 1, which means MSX-MUSIC. The first thing\r\nthe search routine \r\ndoes is set this variable to 0. If you set it to 0 using a\r\nhex editor, then \r\nan internal MSX-MUSIC does not give any sound either. If a\r\nsearch routine is \r\nused, I would expect this variable to be 0 initially, but\r\nthey made it 1 \r\ninstead, probably because they knew they weren't calling the\r\nsearch routine.\r\n\r\nMaybe it was a hack to enable PSG sounds during the intro.\r\nIf there is no \r\nsound chip found, the PSG sounds are disabled as well. By\r\nskipping the search \r\nand hardcoding the chip to MSX-MUSIC, the PSG sounds are\r\nalways enabled, even \r\nif you don't have an MSX-MUSIC. There are writes to the\r\nMSX-MUSIC I/O ports \r\nas well, but that doesn't hurt if you don't have one.\r\n\r\nAll in all: this is no bug\\! openMSX did just fine\\!"}}