[{"url":"https://api.github.com/repos/stella-emu/stella/issues/comments/352252161","html_url":"https://github.com/stella-emu/stella/issues/249#issuecomment-352252161","issue_url":"https://api.github.com/repos/stella-emu/stella/issues/249","id":352252161,"node_id":"MDEyOklzc3VlQ29tbWVudDM1MjI1MjE2MQ==","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},"created_at":"2017-12-17T12:25:10Z","updated_at":"2017-12-17T12:25:10Z","body":"For the record, I think I just head a nice idea for a cheap and reliable way to do this. We can just spin the TIA for a fixed number of cycles in which we do random writes to its registers. The result will be an initial state that is both legal and random. The same approach could be adapted for the RIOT.","author_association":"MEMBER","pin":null,"reactions":{"url":"https://api.github.com/repos/stella-emu/stella/issues/comments/352252161/reactions","total_count":2,"+1":2,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"performed_via_github_app":null,"minimized":null},{"url":"https://api.github.com/repos/stella-emu/stella/issues/comments/922857827","html_url":"https://github.com/stella-emu/stella/issues/249#issuecomment-922857827","issue_url":"https://api.github.com/repos/stella-emu/stella/issues/249","id":922857827,"node_id":"IC_kwDOBCgg9843AbFj","user":{"login":"thrust26","id":24360774,"node_id":"MDQ6VXNlcjI0MzYwNzc0","avatar_url":"https://avatars.githubusercontent.com/u/24360774?v=4","gravatar_id":"","url":"https://api.github.com/users/thrust26","html_url":"https://github.com/thrust26","followers_url":"https://api.github.com/users/thrust26/followers","following_url":"https://api.github.com/users/thrust26/following{/other_user}","gists_url":"https://api.github.com/users/thrust26/gists{/gist_id}","starred_url":"https://api.github.com/users/thrust26/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thrust26/subscriptions","organizations_url":"https://api.github.com/users/thrust26/orgs","repos_url":"https://api.github.com/users/thrust26/repos","events_url":"https://api.github.com/users/thrust26/events{/privacy}","received_events_url":"https://api.github.com/users/thrust26/received_events","type":"User","user_view_type":"public","site_admin":false},"created_at":"2021-09-20T11:52:22Z","updated_at":"2021-09-20T11:52:22Z","body":"TIA randomization fixed with #126. \r\n\r\n@DirtyHairy \r\nHow about the RIOT? I am sure many (most) games will break, especially SWACNT/SWBCNT are rarely initialized.","author_association":"MEMBER","pin":null,"reactions":{"url":"https://api.github.com/repos/stella-emu/stella/issues/comments/922857827/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"performed_via_github_app":null,"minimized":null},{"url":"https://api.github.com/repos/stella-emu/stella/issues/comments/922939641","html_url":"https://github.com/stella-emu/stella/issues/249#issuecomment-922939641","issue_url":"https://api.github.com/repos/stella-emu/stella/issues/249","id":922939641,"node_id":"IC_kwDOBCgg9843AvD5","user":{"login":"ale-79","id":24704739,"node_id":"MDQ6VXNlcjI0NzA0NzM5","avatar_url":"https://avatars.githubusercontent.com/u/24704739?v=4","gravatar_id":"","url":"https://api.github.com/users/ale-79","html_url":"https://github.com/ale-79","followers_url":"https://api.github.com/users/ale-79/followers","following_url":"https://api.github.com/users/ale-79/following{/other_user}","gists_url":"https://api.github.com/users/ale-79/gists{/gist_id}","starred_url":"https://api.github.com/users/ale-79/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ale-79/subscriptions","organizations_url":"https://api.github.com/users/ale-79/orgs","repos_url":"https://api.github.com/users/ale-79/repos","events_url":"https://api.github.com/users/ale-79/events{/privacy}","received_events_url":"https://api.github.com/users/ale-79/received_events","type":"User","user_view_type":"public","site_admin":false},"created_at":"2021-09-20T13:42:01Z","updated_at":"2021-09-20T13:42:01Z","body":"The I/O registers (SWCHA/SWACNT/SWCHB/SWBCNT) are guaranteed to be zeroed at power on, so initialization isn't needed and I don't think an option to randomize them would be useful.\r\nThe only reason for a rom to initialize those registers is if it can be run without power-cycling the console, like happens for the PlusCart menu when using the \"emulation-exit\" function, but that's a really special case. \r\n\r\nThe 6532 datasheet also states that the hardware interrupts are disabled (no effect on a 2600), and the \"PA7\" is set to \"negative\" (high to low) transition edge detection. \r\n\r\nIt seems that INTIM is already random at startup in Stella, so only the initial divide ratio and TIMINT flags might be left to consider. \r\nI guess it doesn't really makes much difference, anyway: a game that uses the timer will initialize it to some value and with the appropriate divider.","author_association":"NONE","pin":null,"reactions":{"url":"https://api.github.com/repos/stella-emu/stella/issues/comments/922939641/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"performed_via_github_app":null,"minimized":null},{"url":"https://api.github.com/repos/stella-emu/stella/issues/comments/922946876","html_url":"https://github.com/stella-emu/stella/issues/249#issuecomment-922946876","issue_url":"https://api.github.com/repos/stella-emu/stella/issues/249","id":922946876,"node_id":"IC_kwDOBCgg9843Aw08","user":{"login":"thrust26","id":24360774,"node_id":"MDQ6VXNlcjI0MzYwNzc0","avatar_url":"https://avatars.githubusercontent.com/u/24360774?v=4","gravatar_id":"","url":"https://api.github.com/users/thrust26","html_url":"https://github.com/thrust26","followers_url":"https://api.github.com/users/thrust26/followers","following_url":"https://api.github.com/users/thrust26/following{/other_user}","gists_url":"https://api.github.com/users/thrust26/gists{/gist_id}","starred_url":"https://api.github.com/users/thrust26/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thrust26/subscriptions","organizations_url":"https://api.github.com/users/thrust26/orgs","repos_url":"https://api.github.com/users/thrust26/repos","events_url":"https://api.github.com/users/thrust26/events{/privacy}","received_events_url":"https://api.github.com/users/thrust26/received_events","type":"User","user_view_type":"public","site_admin":false},"created_at":"2021-09-20T13:51:05Z","updated_at":"2021-09-20T13:51:05Z","body":"Thanks for the info. And I agree.\r\n\r\nAlso PA7 is a different issue (#108.) So I think we can close this one.","author_association":"MEMBER","pin":null,"reactions":{"url":"https://api.github.com/repos/stella-emu/stella/issues/comments/922946876/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"performed_via_github_app":null,"minimized":null}]