{"action":"created","issue":{"url":"https://api.github.com/repos/rdanbrook/nestopia/issues/181","repository_url":"https://api.github.com/repos/rdanbrook/nestopia","labels_url":"https://api.github.com/repos/rdanbrook/nestopia/issues/181/labels{/name}","comments_url":"https://api.github.com/repos/rdanbrook/nestopia/issues/181/comments","events_url":"https://api.github.com/repos/rdanbrook/nestopia/issues/181/events","html_url":"https://github.com/rdanbrook/nestopia/issues/181","id":156123419,"number":181,"title":"Shinobi (unl) nes graphic glitches","user":{"login":"joepogo","id":6021189,"avatar_url":"https://avatars.githubusercontent.com/u/6021189?v=3","gravatar_id":"","url":"https://api.github.com/users/joepogo","html_url":"https://github.com/joepogo","followers_url":"https://api.github.com/users/joepogo/followers","following_url":"https://api.github.com/users/joepogo/following{/other_user}","gists_url":"https://api.github.com/users/joepogo/gists{/gist_id}","starred_url":"https://api.github.com/users/joepogo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joepogo/subscriptions","organizations_url":"https://api.github.com/users/joepogo/orgs","repos_url":"https://api.github.com/users/joepogo/repos","events_url":"https://api.github.com/users/joepogo/events{/privacy}","received_events_url":"https://api.github.com/users/joepogo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2016-05-21T21:53:29Z","updated_at":"2016-05-23T23:02:27Z","closed_at":null,"body":"On the masked ninja levels, which i think is the last set of levels before you beat the game, there are numerous glitches on the right side of the screen when scrolling. \r\n\r\nhttps://www.youtube.com/watch?v=dVbVQY3QNMo\r\n\r\nOn this video for example the levels in question start at: 12:51. The masked ninja levels. On nestopia the levels scrolling gets messed up as you progress in the level. Seems to maybe a mirroring issue possibly. \r\n\r\nIve tested numerous dumps so its not a bad rom and something is def off unless i am completely crazy.  Maybe some others can confirm this as well. "},"comment":{"url":"https://api.github.com/repos/rdanbrook/nestopia/issues/comments/221121409","html_url":"https://github.com/rdanbrook/nestopia/issues/181#issuecomment-221121409","issue_url":"https://api.github.com/repos/rdanbrook/nestopia/issues/181","id":221121409,"user":{"login":"joepogo","id":6021189,"avatar_url":"https://avatars.githubusercontent.com/u/6021189?v=3","gravatar_id":"","url":"https://api.github.com/users/joepogo","html_url":"https://github.com/joepogo","followers_url":"https://api.github.com/users/joepogo/followers","following_url":"https://api.github.com/users/joepogo/following{/other_user}","gists_url":"https://api.github.com/users/joepogo/gists{/gist_id}","starred_url":"https://api.github.com/users/joepogo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joepogo/subscriptions","organizations_url":"https://api.github.com/users/joepogo/orgs","repos_url":"https://api.github.com/users/joepogo/repos","events_url":"https://api.github.com/users/joepogo/events{/privacy}","received_events_url":"https://api.github.com/users/joepogo/received_events","type":"User","site_admin":false},"created_at":"2016-05-23T23:02:27Z","updated_at":"2016-05-23T23:02:27Z","body":"this should fix ALL the tengen games and be able to close the Rambo-1 issue opened.\r\n\r\n/* Tengen RAMBO1\r\n- If Reset reg ($C001) was written to after previous clock...\r\n     a)  reload IRQ counter with IRQ Reload value **PLUS ONE**\r\n- Otherwise... If IRQ Counter is 0...\r\n     a)  reload IRQ counter with IRQ Reload value\r\n- Otherwise...\r\n     a)  Decrement IRQ counter by 1\r\n     b)  If IRQ counter is now 0 and IRQs are enabled, trigger IRQ\r\n */\r\nstatic inline void rambo1_clock(void)\r\n{   \r\n   if(MMC.irq_reset)\r\n   {\r\n      MMC.irq_counter = MMC.irq_latch+1;\r\n      MMC.irq_reset = 0;\r\n   }\r\n   else if(0 == MMC.irq_counter)\r\n   {\r\n      MMC.irq_counter = MMC.irq_latch;\r\n   }\r\n   else\r\n   {\r\n      MMC.irq_counter--;\r\n      if((0 == MMC.irq_counter) && MMC.irq_flag && (-1 == m64_irq))\r\n         m64_irq = 3;\r\n   }\r\n}\r\n\r\nstatic void irq_rambo1(const unsigned int scanline, const unsigned int ppuflag)\r\n{\r\n   if(m64_irq > 0)\r\n      m64_irq--;\r\n   if(0 == m64_irq) {\r\n      cpu_irqtrigger(TIRQ_MPR);\r\n      m64_irq = -1;\r\n   }\r\n   if(0 != MMC.write)\r\n   {\r\n      if(0 == MMC.irq_timing) {\r\n         rambo1_clock();\r\n         MMC.irq_timing = 3;\r\n      } else\r\n         MMC.irq_timing--;\r\n   }\r\n   else\r\n   {\r\n      if( !ppu_is_rendering() ) { irq_latency = 8; return; }\r\n      if(irq_latency > 0)\r\n         irq_latency--;\r\n      if(!irq_latency && ppuflag)\r\n         rambo1_clock();\r\n      if(ppuflag)\r\n         irq_latency = 8;\r\n   }\r\n}"}}
{"actor":{"display_login":"joepogo"}}