{"action":"created","issue":{"url":"https://api.github.com/repos/z88dk/z88dk/issues/856","repository_url":"https://api.github.com/repos/z88dk/z88dk","labels_url":"https://api.github.com/repos/z88dk/z88dk/issues/856/labels{/name}","comments_url":"https://api.github.com/repos/z88dk/z88dk/issues/856/comments","events_url":"https://api.github.com/repos/z88dk/z88dk/issues/856/events","html_url":"https://github.com/z88dk/z88dk/issues/856","id":343315757,"node_id":"MDU6SXNzdWUzNDMzMTU3NTc=","number":856,"title":"[question] udg at linking time with a .asm file (or any human-readable editable file)?","user":{"login":"Fabrizio-Caruso","id":29057615,"node_id":"MDQ6VXNlcjI5MDU3NjE1","avatar_url":"https://avatars3.githubusercontent.com/u/29057615?v=4","gravatar_id":"","url":"https://api.github.com/users/Fabrizio-Caruso","html_url":"https://github.com/Fabrizio-Caruso","followers_url":"https://api.github.com/users/Fabrizio-Caruso/followers","following_url":"https://api.github.com/users/Fabrizio-Caruso/following{/other_user}","gists_url":"https://api.github.com/users/Fabrizio-Caruso/gists{/gist_id}","starred_url":"https://api.github.com/users/Fabrizio-Caruso/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Fabrizio-Caruso/subscriptions","organizations_url":"https://api.github.com/users/Fabrizio-Caruso/orgs","repos_url":"https://api.github.com/users/Fabrizio-Caruso/repos","events_url":"https://api.github.com/users/Fabrizio-Caruso/events{/privacy}","received_events_url":"https://api.github.com/users/Fabrizio-Caruso/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":12,"created_at":"2018-07-21T10:12:12Z","updated_at":"2018-08-11T11:47:00Z","closed_at":"2018-07-21T19:47:32Z","author_association":"NONE","body":"Hi\r\nUser-defined graphics can be done in multiple ways. \r\nIt is nice and useful to have common APIs. This is should be possible on all capable targets.\r\nOn targets with udg-data mapped in memory, the most efficient way is probably the linker: you create a binary which includes the UDG data at the right place in memory.\r\nThis is what I am doing with the Spectrum but I am doing it the wrong way...\r\nI compile with a .asm file with a following content \r\n\"\r\nSECTION data_user\r\n\r\nPUBLIC _udg\r\n\r\n_udg:\r\n\r\n   BINARY \"udg.bin\"\r\n\"\r\nand a raw .bin file that is supposed to contained default udg.\r\nThen I redefine some of the characters inside my code. This should be avoided.\r\n\r\nHow can I just link a .asm file (possibly not a raw binary) that I can edit and then just link so that I can udg at zero computational cost?"},"comment":{"url":"https://api.github.com/repos/z88dk/z88dk/issues/comments/412270115","html_url":"https://github.com/z88dk/z88dk/issues/856#issuecomment-412270115","issue_url":"https://api.github.com/repos/z88dk/z88dk/issues/856","id":412270115,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMjI3MDExNQ==","user":{"login":"pauloscustodio","id":70773,"node_id":"MDQ6VXNlcjcwNzcz","avatar_url":"https://avatars1.githubusercontent.com/u/70773?v=4","gravatar_id":"","url":"https://api.github.com/users/pauloscustodio","html_url":"https://github.com/pauloscustodio","followers_url":"https://api.github.com/users/pauloscustodio/followers","following_url":"https://api.github.com/users/pauloscustodio/following{/other_user}","gists_url":"https://api.github.com/users/pauloscustodio/gists{/gist_id}","starred_url":"https://api.github.com/users/pauloscustodio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pauloscustodio/subscriptions","organizations_url":"https://api.github.com/users/pauloscustodio/orgs","repos_url":"https://api.github.com/users/pauloscustodio/repos","events_url":"https://api.github.com/users/pauloscustodio/events{/privacy}","received_events_url":"https://api.github.com/users/pauloscustodio/received_events","type":"User","site_admin":false},"created_at":"2018-08-11T11:47:00Z","updated_at":"2018-08-11T11:47:00Z","author_association":"MEMBER","body":"Just assemble it:\r\nz80asm -b font.asm\r\n"}}
{"actor":{"display_login":"pauloscustodio"}}