{"action":"created","issue":{"url":"https://api.github.com/repos/cc65/cc65/issues/804","repository_url":"https://api.github.com/repos/cc65/cc65","labels_url":"https://api.github.com/repos/cc65/cc65/issues/804/labels{/name}","comments_url":"https://api.github.com/repos/cc65/cc65/issues/804/comments","events_url":"https://api.github.com/repos/cc65/cc65/issues/804/events","html_url":"https://github.com/cc65/cc65/issues/804","id":384666765,"node_id":"MDU6SXNzdWUzODQ2NjY3NjU=","number":804,"title":"tgi for C128 - interlace?","user":{"login":"xlar54","id":1909642,"node_id":"MDQ6VXNlcjE5MDk2NDI=","avatar_url":"https://avatars2.githubusercontent.com/u/1909642?v=4","gravatar_id":"","url":"https://api.github.com/users/xlar54","html_url":"https://github.com/xlar54","followers_url":"https://api.github.com/users/xlar54/followers","following_url":"https://api.github.com/users/xlar54/following{/other_user}","gists_url":"https://api.github.com/users/xlar54/gists{/gist_id}","starred_url":"https://api.github.com/users/xlar54/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xlar54/subscriptions","organizations_url":"https://api.github.com/users/xlar54/orgs","repos_url":"https://api.github.com/users/xlar54/repos","events_url":"https://api.github.com/users/xlar54/events{/privacy}","received_events_url":"https://api.github.com/users/xlar54/received_events","type":"User","site_admin":false},"labels":[{"id":32846635,"node_id":"MDU6TGFiZWwzMjg0NjYzNQ==","url":"https://api.github.com/repos/cc65/cc65/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-11-27T07:57:16Z","updated_at":"2018-12-08T03:40:53Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"Dont know if this is an appropriate request here or not, but could we add or amend a function that will allow 80x50 interlace text mode on the 128 VDC, and 640x480 interlace on bitmap?   Text mode interlace may not necessarily belong in the tgi lib though as i think thats reserved for graphics.\r\n\r\nThe equivalent BASIC for text mode is:\r\n\r\n```basic\r\n1 REM 80X50 TEXT SCREEN\r\n10 SYSDEC(\"CDCC\"),DEC(\"34\"),4\r\n20 SYSDEC(\"CDCC\"),DEC(\"32\"),6\r\n30 SYSDEC(\"CDCC\"),DEC(\"33\"),7\r\n40 SYSDEC(\"CDCC\"),3 ,8\r\n50 SYSDEC(\"CDCC\"),DEC(\"EA\"),9\r\n55 : rem Double screen & attribute areas and clear them\r\n60 POKEDEC(\"A2F\"),16:SYSDEC(\"CDCC\"),16,20\r\n70 POKEDEC(\"A2E\"),8 :SYSDEC(\"CDCC\"),8, 12:SCNCLR\r\n80 POKEDEC(\"A2E\"),0 :SYSDEC(\"CDCC\"),0, 12:SCNCLR\r\n90 LIST\r\n```\r\nand, for bitmap:\r\n```BASIC\r\n100 REM 640X480 BMM (REQ. 64K VIDEO RAM!) F.BOWEN 9/88\r\n110 :\r\n120 FAST: TRAP410\r\n130 SYSDEC(\"CDCC\"),DEC(\"7E\"),0\r\n140 SYSDEC(\"CDCC\"),DEC(\"50\"),1\r\n150 SYSDEC(\"CDCC\"),DEC(\"66\"),2\r\n160 SYSDEC(\"CDCC\"),DEC(\"4C\"),4\r\n170 SYSDEC(\"CDCC\"),6 ,5\r\n180 SYSDEC(\"CDCC\"),DEC(\"4C\"),6\r\n190 SYSDEC(\"CDCC\"),DEC(\"47\"),7\r\n200 SYSDEC(\"CDCC\"),3 ,8\r\n210 SYSDEC(\"CDCC\"),6 ,9\r\n220 SYSDEC(\"CDCC\"),0 ,24\r\n230 SYSDEC(\"CDCC\"),128+7 ,25\r\n240 SYSDEC(\"CDCC\"),0 ,27\r\n250 SYSDEC(\"CDCC\"),16 ,28\r\n260 SYSDEC(\"CDCC\"),0,12 :SYSDEC(\"CDCC\"),0,13 :SYSDEC(\"CDCC\"),240,26\r\n270 : rem Clear the bitmap using block fills\r\n280 SYSDEC(\"CDCC\"),0,18 :SYSDEC(\"CDCC\"),0,19 :SYSDEC(\"CDCC\"),0,31\r\n290 FORI=0TO255:SYSDEC(\"CDCC\"),0,30 :NEXT\r\n300 : rem Draw a box around the border, rendering into odd & even frames\r\n310 FORI=1TO480/2: EVEN=0+I*80-1: EH=INT(EV/256):EW=(EV-EH*256)\r\n320 : ODD=21360+I*80-1:OH=INT(OD/256):OL=(OD-OH*256)\r\n330 :SYSDEC(\"CDCC\"),OH,18:SYSDEC(\"CDCC\"),OL,19:SYSDEC(\"CDCA\"),1:SYSDEC(\"CDCA\"),128\r\n340 :SYSDEC(\"CDCC\"),EH,18:SYSDEC(\"CDCC\"),EW,19:SYSDEC(\"CDCA\"),1:SYSDEC(\"CDCA\"),128\r\n350 :NEXT\r\n360 SYSDEC(\"CDCC\"),0,18:SYSDEC(\"CDCC\"),0,19\r\n370 SYSDEC(\"CDCC\"),255,31 :SYSDEC(\"CDCC\"),79,30: rem use block fill for top of box\r\n380 SYSDEC(\"CDCC\"),OH,18:SYSDEC(\"CDCC\"),OL+1,19\r\n390 SYSDEC(\"CDCC\"),255,31 :SYSDEC(\"CDCC\"),79,30: rem ditto for bottom of box\r\n400 GETKEYA$\r\n410 SYSDEC(\"E179\") :SYSDEC(\"FF62\"): SCNCLR : rem restore screen, d/l chr def's\r\n```"},"comment":{"url":"https://api.github.com/repos/cc65/cc65/issues/comments/445427139","html_url":"https://github.com/cc65/cc65/issues/804#issuecomment-445427139","issue_url":"https://api.github.com/repos/cc65/cc65/issues/804","id":445427139,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0NTQyNzEzOQ==","user":{"login":"greg-king5","id":4145570,"node_id":"MDQ6VXNlcjQxNDU1NzA=","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},"created_at":"2018-12-08T03:40:53Z","updated_at":"2018-12-08T03:40:53Z","author_association":"CONTRIBUTOR","body":"It would be\r\n```c\r\nvideomode(VIDEOMODE_80X50);\r\n```"}}
{"actor":{"display_login":"greg-king5"}}