{"action":"created","comment":{"url":"https://api.github.com/repos/cc65/cc65/pulls/comments/184377222","pull_request_review_id":115560033,"id":184377222,"diff_hunk":"@@ -0,0 +1,39 @@\n+;\n+; Marco van den Heuvel, 2018-04-25\n+;\n+\n+; unsigned char detect_chameleon (void);\n+;\n+;/* Check for the presence of the Chameleon cartridge.\n+; *\n+; * Possible return values:\n+; * 0x00  : Chameleon cartridge not present\n+; * 0x01  : Chameleon cartridge present\n+; */\n+\n+        .export         _detect_chameleon\n+\n+        .include        \"accelerator.inc\"\n+\n+_detect_chameleon:\n+        lda     #$00\n+        tax\n+\n+; Make sure the CPU is a 6510\n+        .byte   $1A                   ; NOP on 6510, INA on 65(S)C(E)02, 4510 and 65816\n+        bne     not_found\n+\n+        ldy     CHAMELEON_CFGENA\n+        lda     #CHAMELEON_ENABLE_REGS\n+        sta     CHAMELEON_CFGENA\n+        lda     CHAMELEON_CFGENA\n+        sty     CHAMELEON_CFGENA\n+        cmp     #$FF\n+        beq     not_found\n+found:\n+        lda     #$01\n+        .byte   $2C\n+not_found:\n+        lda     #$00","path":"libsrc/c64/acc_detect_chameleon.s","position":37,"original_position":37,"commit_id":"f2e46f0fdf5d54b7e5de8a1be8dd95925c606b92","original_commit_id":"f2e46f0fdf5d54b7e5de8a1be8dd95925c606b92","user":{"login":"greg-king5","id":4145570,"avatar_url":"https://avatars0.githubusercontent.com/u/4145570?v=4","gravatar_id":"","url":"https://api.github.com/users/greg-king5","html_url":"https://github.com/greg-king5","followers_url":"https://api.github.com/users/greg-king5/followers","following_url":"https://api.github.com/users/greg-king5/following{/other_user}","gists_url":"https://api.github.com/users/greg-king5/gists{/gist_id}","starred_url":"https://api.github.com/users/greg-king5/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/greg-king5/subscriptions","organizations_url":"https://api.github.com/users/greg-king5/orgs","repos_url":"https://api.github.com/users/greg-king5/repos","events_url":"https://api.github.com/users/greg-king5/events{/privacy}","received_events_url":"https://api.github.com/users/greg-king5/received_events","type":"User","site_admin":false},"body":"`txa` can be used here, to return zero.","created_at":"2018-04-26T12:53:48Z","updated_at":"2018-04-26T12:53:48Z","html_url":"https://github.com/cc65/cc65/pull/631#discussion_r184377222","pull_request_url":"https://api.github.com/repos/cc65/cc65/pulls/631","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/cc65/cc65/pulls/comments/184377222"},"html":{"href":"https://github.com/cc65/cc65/pull/631#discussion_r184377222"},"pull_request":{"href":"https://api.github.com/repos/cc65/cc65/pulls/631"}}},"pull_request":{"url":"https://api.github.com/repos/cc65/cc65/pulls/631","id":184145661,"html_url":"https://github.com/cc65/cc65/pull/631","diff_url":"https://github.com/cc65/cc65/pull/631.diff","patch_url":"https://github.com/cc65/cc65/pull/631.patch","issue_url":"https://api.github.com/repos/cc65/cc65/issues/631","number":631,"state":"open","locked":false,"title":"Added C64 Chameleon accelerator code and documentation.","user":{"login":"blackystardust","id":12174585,"avatar_url":"https://avatars1.githubusercontent.com/u/12174585?v=4","gravatar_id":"","url":"https://api.github.com/users/blackystardust","html_url":"https://github.com/blackystardust","followers_url":"https://api.github.com/users/blackystardust/followers","following_url":"https://api.github.com/users/blackystardust/following{/other_user}","gists_url":"https://api.github.com/users/blackystardust/gists{/gist_id}","starred_url":"https://api.github.com/users/blackystardust/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blackystardust/subscriptions","organizations_url":"https://api.github.com/users/blackystardust/orgs","repos_url":"https://api.github.com/users/blackystardust/repos","events_url":"https://api.github.com/users/blackystardust/events{/privacy}","received_events_url":"https://api.github.com/users/blackystardust/received_events","type":"User","site_admin":false},"body":"Added C64 Chameleon accelerator code and documentation.","created_at":"2018-04-25T19:54:54Z","updated_at":"2018-04-26T12:53:48Z","closed_at":null,"merged_at":null,"merge_commit_sha":"74e7555b2256d0d440737a191456e7445c0f5c1b","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/cc65/cc65/pulls/631/commits","review_comments_url":"https://api.github.com/repos/cc65/cc65/pulls/631/comments","review_comment_url":"https://api.github.com/repos/cc65/cc65/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cc65/cc65/issues/631/comments","statuses_url":"https://api.github.com/repos/cc65/cc65/statuses/f2e46f0fdf5d54b7e5de8a1be8dd95925c606b92","head":{"label":"blackystardust:master","ref":"master","sha":"f2e46f0fdf5d54b7e5de8a1be8dd95925c606b92","user":{"login":"blackystardust","id":12174585,"avatar_url":"https://avatars1.githubusercontent.com/u/12174585?v=4","gravatar_id":"","url":"https://api.github.com/users/blackystardust","html_url":"https://github.com/blackystardust","followers_url":"https://api.github.com/users/blackystardust/followers","following_url":"https://api.github.com/users/blackystardust/following{/other_user}","gists_url":"https://api.github.com/users/blackystardust/gists{/gist_id}","starred_url":"https://api.github.com/users/blackystardust/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blackystardust/subscriptions","organizations_url":"https://api.github.com/users/blackystardust/orgs","repos_url":"https://api.github.com/users/blackystardust/repos","events_url":"https://api.github.com/users/blackystardust/events{/privacy}","received_events_url":"https://api.github.com/users/blackystardust/received_events","type":"User","site_admin":false},"repo":{"id":47045760,"name":"cc65","full_name":"blackystardust/cc65","owner":{"login":"blackystardust","id":12174585,"avatar_url":"https://avatars1.githubusercontent.com/u/12174585?v=4","gravatar_id":"","url":"https://api.github.com/users/blackystardust","html_url":"https://github.com/blackystardust","followers_url":"https://api.github.com/users/blackystardust/followers","following_url":"https://api.github.com/users/blackystardust/following{/other_user}","gists_url":"https://api.github.com/users/blackystardust/gists{/gist_id}","starred_url":"https://api.github.com/users/blackystardust/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blackystardust/subscriptions","organizations_url":"https://api.github.com/users/blackystardust/orgs","repos_url":"https://api.github.com/users/blackystardust/repos","events_url":"https://api.github.com/users/blackystardust/events{/privacy}","received_events_url":"https://api.github.com/users/blackystardust/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/blackystardust/cc65","description":"cc65 - a freeware C compiler for 6502 based systems -","fork":true,"url":"https://api.github.com/repos/blackystardust/cc65","forks_url":"https://api.github.com/repos/blackystardust/cc65/forks","keys_url":"https://api.github.com/repos/blackystardust/cc65/keys{/key_id}","collaborators_url":"https://api.github.com/repos/blackystardust/cc65/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/blackystardust/cc65/teams","hooks_url":"https://api.github.com/repos/blackystardust/cc65/hooks","issue_events_url":"https://api.github.com/repos/blackystardust/cc65/issues/events{/number}","events_url":"https://api.github.com/repos/blackystardust/cc65/events","assignees_url":"https://api.github.com/repos/blackystardust/cc65/assignees{/user}","branches_url":"https://api.github.com/repos/blackystardust/cc65/branches{/branch}","tags_url":"https://api.github.com/repos/blackystardust/cc65/tags","blobs_url":"https://api.github.com/repos/blackystardust/cc65/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/blackystardust/cc65/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/blackystardust/cc65/git/refs{/sha}","trees_url":"https://api.github.com/repos/blackystardust/cc65/git/trees{/sha}","statuses_url":"https://api.github.com/repos/blackystardust/cc65/statuses/{sha}","languages_url":"https://api.github.com/repos/blackystardust/cc65/languages","stargazers_url":"https://api.github.com/repos/blackystardust/cc65/stargazers","contributors_url":"https://api.github.com/repos/blackystardust/cc65/contributors","subscribers_url":"https://api.github.com/repos/blackystardust/cc65/subscribers","subscription_url":"https://api.github.com/repos/blackystardust/cc65/subscription","commits_url":"https://api.github.com/repos/blackystardust/cc65/commits{/sha}","git_commits_url":"https://api.github.com/repos/blackystardust/cc65/git/commits{/sha}","comments_url":"https://api.github.com/repos/blackystardust/cc65/comments{/number}","issue_comment_url":"https://api.github.com/repos/blackystardust/cc65/issues/comments{/number}","contents_url":"https://api.github.com/repos/blackystardust/cc65/contents/{+path}","compare_url":"https://api.github.com/repos/blackystardust/cc65/compare/{base}...{head}","merges_url":"https://api.github.com/repos/blackystardust/cc65/merges","archive_url":"https://api.github.com/repos/blackystardust/cc65/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/blackystardust/cc65/downloads","issues_url":"https://api.github.com/repos/blackystardust/cc65/issues{/number}","pulls_url":"https://api.github.com/repos/blackystardust/cc65/pulls{/number}","milestones_url":"https://api.github.com/repos/blackystardust/cc65/milestones{/number}","notifications_url":"https://api.github.com/repos/blackystardust/cc65/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/blackystardust/cc65/labels{/name}","releases_url":"https://api.github.com/repos/blackystardust/cc65/releases{/id}","deployments_url":"https://api.github.com/repos/blackystardust/cc65/deployments","created_at":"2015-11-29T01:30:27Z","updated_at":"2018-04-25T19:54:00Z","pushed_at":"2018-04-25T19:53:59Z","git_url":"git://github.com/blackystardust/cc65.git","ssh_url":"git@github.com:blackystardust/cc65.git","clone_url":"https://github.com/blackystardust/cc65.git","svn_url":"https://github.com/blackystardust/cc65","homepage":"http://cc65.github.io/cc65","size":21456,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"zlib","name":"zlib License","spdx_id":"Zlib","url":"https://api.github.com/licenses/zlib"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"cc65:master","ref":"master","sha":"fc61bc79c53923d3bcc8ac325f9688af6a9c2f64","user":{"login":"cc65","id":6959645,"avatar_url":"https://avatars2.githubusercontent.com/u/6959645?v=4","gravatar_id":"","url":"https://api.github.com/users/cc65","html_url":"https://github.com/cc65","followers_url":"https://api.github.com/users/cc65/followers","following_url":"https://api.github.com/users/cc65/following{/other_user}","gists_url":"https://api.github.com/users/cc65/gists{/gist_id}","starred_url":"https://api.github.com/users/cc65/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cc65/subscriptions","organizations_url":"https://api.github.com/users/cc65/orgs","repos_url":"https://api.github.com/users/cc65/repos","events_url":"https://api.github.com/users/cc65/events{/privacy}","received_events_url":"https://api.github.com/users/cc65/received_events","type":"Organization","site_admin":false},"repo":{"id":8932489,"name":"cc65","full_name":"cc65/cc65","owner":{"login":"cc65","id":6959645,"avatar_url":"https://avatars2.githubusercontent.com/u/6959645?v=4","gravatar_id":"","url":"https://api.github.com/users/cc65","html_url":"https://github.com/cc65","followers_url":"https://api.github.com/users/cc65/followers","following_url":"https://api.github.com/users/cc65/following{/other_user}","gists_url":"https://api.github.com/users/cc65/gists{/gist_id}","starred_url":"https://api.github.com/users/cc65/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cc65/subscriptions","organizations_url":"https://api.github.com/users/cc65/orgs","repos_url":"https://api.github.com/users/cc65/repos","events_url":"https://api.github.com/users/cc65/events{/privacy}","received_events_url":"https://api.github.com/users/cc65/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cc65/cc65","description":"cc65 - a freeware C compiler for 6502 based systems —","fork":false,"url":"https://api.github.com/repos/cc65/cc65","forks_url":"https://api.github.com/repos/cc65/cc65/forks","keys_url":"https://api.github.com/repos/cc65/cc65/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cc65/cc65/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cc65/cc65/teams","hooks_url":"https://api.github.com/repos/cc65/cc65/hooks","issue_events_url":"https://api.github.com/repos/cc65/cc65/issues/events{/number}","events_url":"https://api.github.com/repos/cc65/cc65/events","assignees_url":"https://api.github.com/repos/cc65/cc65/assignees{/user}","branches_url":"https://api.github.com/repos/cc65/cc65/branches{/branch}","tags_url":"https://api.github.com/repos/cc65/cc65/tags","blobs_url":"https://api.github.com/repos/cc65/cc65/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cc65/cc65/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cc65/cc65/git/refs{/sha}","trees_url":"https://api.github.com/repos/cc65/cc65/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cc65/cc65/statuses/{sha}","languages_url":"https://api.github.com/repos/cc65/cc65/languages","stargazers_url":"https://api.github.com/repos/cc65/cc65/stargazers","contributors_url":"https://api.github.com/repos/cc65/cc65/contributors","subscribers_url":"https://api.github.com/repos/cc65/cc65/subscribers","subscription_url":"https://api.github.com/repos/cc65/cc65/subscription","commits_url":"https://api.github.com/repos/cc65/cc65/commits{/sha}","git_commits_url":"https://api.github.com/repos/cc65/cc65/git/commits{/sha}","comments_url":"https://api.github.com/repos/cc65/cc65/comments{/number}","issue_comment_url":"https://api.github.com/repos/cc65/cc65/issues/comments{/number}","contents_url":"https://api.github.com/repos/cc65/cc65/contents/{+path}","compare_url":"https://api.github.com/repos/cc65/cc65/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cc65/cc65/merges","archive_url":"https://api.github.com/repos/cc65/cc65/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cc65/cc65/downloads","issues_url":"https://api.github.com/repos/cc65/cc65/issues{/number}","pulls_url":"https://api.github.com/repos/cc65/cc65/pulls{/number}","milestones_url":"https://api.github.com/repos/cc65/cc65/milestones{/number}","notifications_url":"https://api.github.com/repos/cc65/cc65/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cc65/cc65/labels{/name}","releases_url":"https://api.github.com/repos/cc65/cc65/releases{/id}","deployments_url":"https://api.github.com/repos/cc65/cc65/deployments","created_at":"2013-03-21T15:56:48Z","updated_at":"2018-04-26T09:53:56Z","pushed_at":"2018-04-26T10:19:46Z","git_url":"git://github.com/cc65/cc65.git","ssh_url":"git@github.com:cc65/cc65.git","clone_url":"https://github.com/cc65/cc65.git","svn_url":"https://github.com/cc65/cc65","homepage":"http://cc65.github.io/cc65","size":21387,"stargazers_count":599,"watchers_count":599,"language":"C","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":137,"mirror_url":null,"archived":false,"open_issues_count":58,"license":{"key":"zlib","name":"zlib License","spdx_id":"Zlib","url":"https://api.github.com/licenses/zlib"},"forks":137,"open_issues":58,"watchers":599,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cc65/cc65/pulls/631"},"html":{"href":"https://github.com/cc65/cc65/pull/631"},"issue":{"href":"https://api.github.com/repos/cc65/cc65/issues/631"},"comments":{"href":"https://api.github.com/repos/cc65/cc65/issues/631/comments"},"review_comments":{"href":"https://api.github.com/repos/cc65/cc65/pulls/631/comments"},"review_comment":{"href":"https://api.github.com/repos/cc65/cc65/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cc65/cc65/pulls/631/commits"},"statuses":{"href":"https://api.github.com/repos/cc65/cc65/statuses/f2e46f0fdf5d54b7e5de8a1be8dd95925c606b92"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"greg-king5"}}