{"url":"https://api.github.com/repos/stella-emu/stella/issues/68","repository_url":"https://api.github.com/repos/stella-emu/stella","labels_url":"https://api.github.com/repos/stella-emu/stella/issues/68/labels{/name}","comments_url":"https://api.github.com/repos/stella-emu/stella/issues/68/comments","events_url":"https://api.github.com/repos/stella-emu/stella/issues/68/events","html_url":"https://github.com/stella-emu/stella/issues/68","id":199090063,"node_id":"MDU6SXNzdWUxOTkwOTAwNjM=","number":68,"title":"Player: NUSIZ during draw start decode","user":{"login":"DirtyHairy","id":2444224,"node_id":"MDQ6VXNlcjI0NDQyMjQ=","avatar_url":"https://avatars.githubusercontent.com/u/2444224?v=4","gravatar_id":"","url":"https://api.github.com/users/DirtyHairy","html_url":"https://github.com/DirtyHairy","followers_url":"https://api.github.com/users/DirtyHairy/followers","following_url":"https://api.github.com/users/DirtyHairy/following{/other_user}","gists_url":"https://api.github.com/users/DirtyHairy/gists{/gist_id}","starred_url":"https://api.github.com/users/DirtyHairy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DirtyHairy/subscriptions","organizations_url":"https://api.github.com/users/DirtyHairy/orgs","repos_url":"https://api.github.com/users/DirtyHairy/repos","events_url":"https://api.github.com/users/DirtyHairy/events{/privacy}","received_events_url":"https://api.github.com/users/DirtyHairy/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[{"id":453306378,"node_id":"MDU6TGFiZWw0NTMzMDYzNzg=","url":"https://api.github.com/repos/stella-emu/stella/labels/bug","name":"bug","color":"ff2020","default":true,"description":"","archived_at":null,"archived_by":null},{"id":489151633,"node_id":"MDU6TGFiZWw0ODkxNTE2MzM=","url":"https://api.github.com/repos/stella-emu/stella/labels/glitched%20game","name":"glitched game","color":"d4a5d9","default":false,"description":null,"archived_at":null,"archived_by":null},{"id":489151886,"node_id":"MDU6TGFiZWw0ODkxNTE4ODY=","url":"https://api.github.com/repos/stella-emu/stella/labels/affects%206502.ts","name":"affects 6502.ts","color":"e08080","default":false,"description":null,"archived_at":null,"archived_by":null},{"id":504421351,"node_id":"MDU6TGFiZWw1MDQ0MjEzNTE=","url":"https://api.github.com/repos/stella-emu/stella/labels/regression%20test","name":"regression test","color":"5319e7","default":false,"description":null,"archived_at":null,"archived_by":null}],"state":"closed","locked":false,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-01-05T23:51:40Z","updated_at":"2017-01-05T23:55:58Z","closed_at":"2017-01-05T23:55:58Z","assignee":null,"author_association":"MEMBER","issue_field_values":[],"type":null,"active_lock_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0},"issue_dependencies_summary":{"blocked_by":0,"total_blocked_by":0,"blocking":0,"total_blocking":0},"body":"The player_switching testcase in the [6502.ts repo](https://github.com/6502ts/6502.ts/blob/master/aux/2600/positioning/player_switching.asm) ([player_switching.zip](https://github.com/stella-emu/stella/files/688689/player_switching.zip)) repository exhibits artifacts on the left edge that show that NUSIZ during draw start decode must be modeled properly. In particular, the code must account for the one clock delay between standard and wide players when switching from wide players to standard width --- esentially the reverse of the corresponding effect in Meltdown.\r\n\r\nLike the other 6502.ts positioning tests, this testcase propers RESP0 on every possible clock. The twist is that it switches to 2x player width before strobing RESP0 and switches back to standard widht afterwards.\r\n\r\nOn real hardware, the effect looks like this:\r\n\r\n![player_switching](https://cloud.githubusercontent.com/assets/2444224/21702050/8da36cca-d3a9-11e6-8b2e-ce4d9d92050d.jpg)\r\n\r\nThe old core looks like this:\r\n\r\n![player_switching](https://cloud.githubusercontent.com/assets/2444224/21702135/0a564d6e-d3aa-11e6-9de0-4ad6371e7335.png)\r\n\r\nThe new core looks like this:\r\n\r\n![player_switching_1](https://cloud.githubusercontent.com/assets/2444224/21702143/1630b12e-d3aa-11e6-8d91-641c70223066.png)\r\n\r\n","closed_by":{"login":"DirtyHairy","id":2444224,"node_id":"MDQ6VXNlcjI0NDQyMjQ=","avatar_url":"https://avatars.githubusercontent.com/u/2444224?v=4","gravatar_id":"","url":"https://api.github.com/users/DirtyHairy","html_url":"https://github.com/DirtyHairy","followers_url":"https://api.github.com/users/DirtyHairy/followers","following_url":"https://api.github.com/users/DirtyHairy/following{/other_user}","gists_url":"https://api.github.com/users/DirtyHairy/gists{/gist_id}","starred_url":"https://api.github.com/users/DirtyHairy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DirtyHairy/subscriptions","organizations_url":"https://api.github.com/users/DirtyHairy/orgs","repos_url":"https://api.github.com/users/DirtyHairy/repos","events_url":"https://api.github.com/users/DirtyHairy/events{/privacy}","received_events_url":"https://api.github.com/users/DirtyHairy/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https://api.github.com/repos/stella-emu/stella/issues/68/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https://api.github.com/repos/stella-emu/stella/issues/68/timeline","performed_via_github_app":null,"state_reason":"completed","pinned_comment":null}