{"action":"created","issue":{"url":"https://api.github.com/repos/wornwinter/DMGe/issues/35","labels_url":"https://api.github.com/repos/wornwinter/DMGe/issues/35/labels{/name}","comments_url":"https://api.github.com/repos/wornwinter/DMGe/issues/35/comments","events_url":"https://api.github.com/repos/wornwinter/DMGe/issues/35/events","html_url":"https://github.com/wornwinter/DMGe/issues/35","id":115705881,"number":35,"title":"Tetris wrong values loaded into A from (HL)??","user":{"login":"Quaker762","id":4768900,"avatar_url":"https://avatars.githubusercontent.com/u/4768900?v=3","gravatar_id":"","url":"https://api.github.com/users/Quaker762","html_url":"https://github.com/Quaker762","followers_url":"https://api.github.com/users/Quaker762/followers","following_url":"https://api.github.com/users/Quaker762/following{/other_user}","gists_url":"https://api.github.com/users/Quaker762/gists{/gist_id}","starred_url":"https://api.github.com/users/Quaker762/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Quaker762/subscriptions","organizations_url":"https://api.github.com/users/Quaker762/orgs","repos_url":"https://api.github.com/users/Quaker762/repos","events_url":"https://api.github.com/users/Quaker762/events{/privacy}","received_events_url":"https://api.github.com/users/Quaker762/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/wornwinter/DMGe/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/wornwinter/DMGe/labels/help%20wanted","name":"help wanted","color":"159818"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-11-08T02:45:42Z","updated_at":"2015-11-09T10:20:15Z","closed_at":null,"body":"This is going to be a tough one to debug... So far I've fixed a few instructions that were setting the flags register wrong and what not, however at address 0x6C53, it seems like the value being read from df91 is completely wrong (should be 76 but 2f is being read). If you load up no$gmb and set a breakpoint at that address you can see what I mean. Here's the trace from dmge\r\n\r\n[Newtrace.docx](https://github.com/wornwinter/DMGe/files/29458/Newtrace.docx)\r\n\r\nUsually something like this wouldn't be a problem, and no$gmb will continue to run properly if A is changed to 2f at that point (I assume the game has some type of correction to deal with something like this happening), however, after implementing all instructions, dmge sits for a bit, then jumps to the tetris game screen, dumps some chunk of the tileset (it's pretty funny lol) then executes an unknown instruction. \r\n\r\nSetting a breakpoint 0x6D2B (right before the game loads) shows that registers should have the following values:\r\nAF: 0x0600\r\nBC: 0x0014\r\nDE: 0x8074\r\nHL: 9xDF9A\r\n\r\ndmge craps the bed and gives\r\nAF: 0x0500\r\nBC: 0x0014\r\nDE: 0x0000\r\nHL: 9xDF9A\r\n\r\nI'm assuming there's an issue with an operation acting on A, but I find it weird that DE is completely cleared...\r\n\r\nNonetheless, I'll create a new pull request (when the old one is merged) and hopefully you can see where the issue lies (I'm completely stumped). We are literally so close to getting Tetris to run lol, it hurts haha"},"comment":{"url":"https://api.github.com/repos/wornwinter/DMGe/issues/comments/155021308","html_url":"https://github.com/wornwinter/DMGe/issues/35#issuecomment-155021308","issue_url":"https://api.github.com/repos/wornwinter/DMGe/issues/35","id":155021308,"user":{"login":"Quaker762","id":4768900,"avatar_url":"https://avatars.githubusercontent.com/u/4768900?v=3","gravatar_id":"","url":"https://api.github.com/users/Quaker762","html_url":"https://github.com/Quaker762","followers_url":"https://api.github.com/users/Quaker762/followers","following_url":"https://api.github.com/users/Quaker762/following{/other_user}","gists_url":"https://api.github.com/users/Quaker762/gists{/gist_id}","starred_url":"https://api.github.com/users/Quaker762/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Quaker762/subscriptions","organizations_url":"https://api.github.com/users/Quaker762/orgs","repos_url":"https://api.github.com/users/Quaker762/repos","events_url":"https://api.github.com/users/Quaker762/events{/privacy}","received_events_url":"https://api.github.com/users/Quaker762/received_events","type":"User","site_admin":false},"created_at":"2015-11-09T10:20:15Z","updated_at":"2015-11-09T10:20:15Z","body":"By the way it says you upgraded Boost and wxWidgets?? Which version was it? I'm getting a whole heap of Undefined references on link."}}