{"action":"created","issue":{"url":"https://api.github.com/repos/vhelin/wla-dx/issues/77","labels_url":"https://api.github.com/repos/vhelin/wla-dx/issues/77/labels{/name}","comments_url":"https://api.github.com/repos/vhelin/wla-dx/issues/77/comments","events_url":"https://api.github.com/repos/vhelin/wla-dx/issues/77/events","html_url":"https://github.com/vhelin/wla-dx/pull/77","id":125652805,"number":77,"title":"Added ASCII commands to strings and .DL support for 65816","user":{"login":"galaxyhaxz","id":15209402,"avatar_url":"https://avatars.githubusercontent.com/u/15209402?v=3","gravatar_id":"","url":"https://api.github.com/users/galaxyhaxz","html_url":"https://github.com/galaxyhaxz","followers_url":"https://api.github.com/users/galaxyhaxz/followers","following_url":"https://api.github.com/users/galaxyhaxz/following{/other_user}","gists_url":"https://api.github.com/users/galaxyhaxz/gists{/gist_id}","starred_url":"https://api.github.com/users/galaxyhaxz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/galaxyhaxz/subscriptions","organizations_url":"https://api.github.com/users/galaxyhaxz/orgs","repos_url":"https://api.github.com/users/galaxyhaxz/repos","events_url":"https://api.github.com/users/galaxyhaxz/events{/privacy}","received_events_url":"https://api.github.com/users/galaxyhaxz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-08T17:15:38Z","updated_at":"2016-01-08T17:35:38Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/vhelin/wla-dx/pulls/77","html_url":"https://github.com/vhelin/wla-dx/pull/77","diff_url":"https://github.com/vhelin/wla-dx/pull/77.diff","patch_url":"https://github.com/vhelin/wla-dx/pull/77.patch"},"body":"(COPIED FROM FORK)\r\n\r\nASCII commands work with .DB and .ASC strings. They are as follows:\r\n'\\0' -> insert null byte\r\n'\\x' -> insert hex character\r\n'\\\\>' -> set highest bit (0x80) of preceding character\r\n'\\\\<' -> set highest bit (0x80) of proceeding character\r\n'\\\\\\' -> escape character\r\n\r\n.ASC hex characters are NOT remapped. This is useful if you need to write special characters. Example:\r\n.ASC \"My special character: \"\r\n.DB $59\r\n...becomes\r\n.ASC \"My special character: \\x59\"\r\n\r\n'\\\\\\' is an escape character. So if you actually need to write .DB \"Testing \\x 123\" you would instead need to write .DB \"Testing \\\\\\x 123\" just like in ANSI-C. Thus '\\\\\\\\<' and such skips the special command.\r\n\r\n'\\\\<' and '\\\\>' were added in because in many SNES games, i have seen strings terminated by setting the highest bit. This saves space instead of inserting a zero at every string.\r\n\r\n.DL for 65816 works just like you'd expect it. It writes the bank byte when used with labels.\r\n\r\nOne last note, the .DL support is not added to structs and such yet. I figured I'd get around to this soon enough for full .DL/.LONG support. Keep in mind i'm not going to add .DD/.DWORD because none of the architectures WLA supports use 32-bit addressing. Thus I see no use in .DD support."},"comment":{"url":"https://api.github.com/repos/vhelin/wla-dx/issues/comments/170067847","html_url":"https://github.com/vhelin/wla-dx/pull/77#issuecomment-170067847","issue_url":"https://api.github.com/repos/vhelin/wla-dx/issues/77","id":170067847,"user":{"login":"galaxyhaxz","id":15209402,"avatar_url":"https://avatars.githubusercontent.com/u/15209402?v=3","gravatar_id":"","url":"https://api.github.com/users/galaxyhaxz","html_url":"https://github.com/galaxyhaxz","followers_url":"https://api.github.com/users/galaxyhaxz/followers","following_url":"https://api.github.com/users/galaxyhaxz/following{/other_user}","gists_url":"https://api.github.com/users/galaxyhaxz/gists{/gist_id}","starred_url":"https://api.github.com/users/galaxyhaxz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/galaxyhaxz/subscriptions","organizations_url":"https://api.github.com/users/galaxyhaxz/orgs","repos_url":"https://api.github.com/users/galaxyhaxz/repos","events_url":"https://api.github.com/users/galaxyhaxz/events{/privacy}","received_events_url":"https://api.github.com/users/galaxyhaxz/received_events","type":"User","site_admin":false},"created_at":"2016-01-08T17:35:38Z","updated_at":"2016-01-08T17:35:38Z","body":"TODO:\r\n- Update readme accordingly\r\n- .DL support for .STRUCT and various other commands\r\n- Octal special character support (000-777) for '\\x' command (e.g. .DB \"Octal \\x472 Hex \\xF9\")"}}