{"action":"created","issue":{"url":"https://api.github.com/repos/vhelin/wla-dx/issues/50","labels_url":"https://api.github.com/repos/vhelin/wla-dx/issues/50/labels{/name}","comments_url":"https://api.github.com/repos/vhelin/wla-dx/issues/50/comments","events_url":"https://api.github.com/repos/vhelin/wla-dx/issues/50/events","html_url":"https://github.com/vhelin/wla-dx/issues/50","id":104263459,"number":50,"title":"Macro - check if an argument is an immediate value","user":{"login":"bazzinotti","id":2224787,"avatar_url":"https://avatars.githubusercontent.com/u/2224787?v=3","gravatar_id":"","url":"https://api.github.com/users/bazzinotti","html_url":"https://github.com/bazzinotti","followers_url":"https://api.github.com/users/bazzinotti/followers","following_url":"https://api.github.com/users/bazzinotti/following{/other_user}","gists_url":"https://api.github.com/users/bazzinotti/gists{/gist_id}","starred_url":"https://api.github.com/users/bazzinotti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bazzinotti/subscriptions","organizations_url":"https://api.github.com/users/bazzinotti/orgs","repos_url":"https://api.github.com/users/bazzinotti/repos","events_url":"https://api.github.com/users/bazzinotti/events{/privacy}","received_events_url":"https://api.github.com/users/bazzinotti/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-09-01T13:14:24Z","updated_at":"2015-09-01T14:16:31Z","closed_at":null,"body":"Is it possible to do this in WLA DX? [see title]\r\nie. #$4000 vs. $4000"},"comment":{"url":"https://api.github.com/repos/vhelin/wla-dx/issues/comments/136735715","html_url":"https://github.com/vhelin/wla-dx/issues/50#issuecomment-136735715","issue_url":"https://api.github.com/repos/vhelin/wla-dx/issues/50","id":136735715,"user":{"login":"bazzinotti","id":2224787,"avatar_url":"https://avatars.githubusercontent.com/u/2224787?v=3","gravatar_id":"","url":"https://api.github.com/users/bazzinotti","html_url":"https://github.com/bazzinotti","followers_url":"https://api.github.com/users/bazzinotti/followers","following_url":"https://api.github.com/users/bazzinotti/following{/other_user}","gists_url":"https://api.github.com/users/bazzinotti/gists{/gist_id}","starred_url":"https://api.github.com/users/bazzinotti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bazzinotti/subscriptions","organizations_url":"https://api.github.com/users/bazzinotti/orgs","repos_url":"https://api.github.com/users/bazzinotti/repos","events_url":"https://api.github.com/users/bazzinotti/events{/privacy}","received_events_url":"https://api.github.com/users/bazzinotti/received_events","type":"User","site_admin":false},"created_at":"2015-09-01T14:16:31Z","updated_at":"2015-09-01T14:16:31Z","body":"I am porting some code which handles the macro like so: \r\n```\r\n.macro vreg\r\n\tlda\t\\1\r\n\tsta\t<vdc_reg\r\n\t.if (\\?1 = ARG_IMMED)\r\n\tst0   \\1\r\n\t.else\r\n\tsta\tvideo_reg\r\n\t.endif\r\n.endm\r\n```\r\n\r\nHere's another example: \r\n```\r\n.macro spr_pattern\r\n    ldy   #4\r\n    .if (\\?1 = ARG_IMMED)\r\n     lda   #<((\\1) >> 5)\r\n     sta   [_si],Y\r\n     lda   #>((\\1) >> 5)\r\n    .else\r\n     lda   \\1\r\n     sta   [_si],Y\r\n     lda   \\1+1\r\n    .endif\r\n    iny\r\n    sta   [_si],Y\r\n.endm\r\n```"}}