{"action":"created","issue":{"url":"https://api.github.com/repos/cc65/cc65/issues/789","repository_url":"https://api.github.com/repos/cc65/cc65","labels_url":"https://api.github.com/repos/cc65/cc65/issues/789/labels{/name}","comments_url":"https://api.github.com/repos/cc65/cc65/issues/789/comments","events_url":"https://api.github.com/repos/cc65/cc65/issues/789/events","html_url":"https://github.com/cc65/cc65/issues/789","id":375753314,"node_id":"MDU6SXNzdWUzNzU3NTMzMTQ=","number":789,"title":"Need a \"seriously none\" cfg","user":{"login":"fadden","id":6185696,"node_id":"MDQ6VXNlcjYxODU2OTY=","avatar_url":"https://avatars0.githubusercontent.com/u/6185696?v=4","gravatar_id":"","url":"https://api.github.com/users/fadden","html_url":"https://github.com/fadden","followers_url":"https://api.github.com/users/fadden/followers","following_url":"https://api.github.com/users/fadden/following{/other_user}","gists_url":"https://api.github.com/users/fadden/gists{/gist_id}","starred_url":"https://api.github.com/users/fadden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fadden/subscriptions","organizations_url":"https://api.github.com/users/fadden/orgs","repos_url":"https://api.github.com/users/fadden/repos","events_url":"https://api.github.com/users/fadden/events{/privacy}","received_events_url":"https://api.github.com/users/fadden/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2018-10-31T00:48:21Z","updated_at":"2018-11-01T01:37:16Z","closed_at":"2018-10-31T21:05:59Z","author_association":"NONE","body":"[SourceGen](https://github.com/fadden/6502bench) attempts to disassemble a binary and generate source code that compiles back into that same binary.  The command line currently uses `--target none`, since SourceGen doesn't want any frills.\r\n\r\nThe trouble is that the \"none\" configuration is limited to $6800 bytes, because it declares that the world starts at $1000 and ends at $8000, with $800 bytes of stack.  What I'd like is a way to say, \"there's nothing here but code\", and be able to drop a 64KiB chunk in that fills an entire bank.\r\n\r\nI tried simply dropping the `--target` from the command line and got complaints about a few segments, with an error for BSS.  I tried defining the segments in the generated source file and ended up with 14 bytes of unexpected data at the start of the binary (`0108 0b08 1003 9e32 3036 3100 0000`).  So I'm clearly missing something.\r\n\r\nMy goal is to be able to generate a single file that can be fed into cl65, with a command line that won't give end users hives.  I'm hoping to avoid having to generate a file pair (source + linker script), so a generally-available \"just be a generic assembler\" config would be useful.  Alternatively, if the necessary configuration can be done inside the source file, I can generate the appropriate lines.\r\n\r\n(I also checked for a way to simply ignore memory area overflows... no such luck.)\r\n"},"comment":{"url":"https://api.github.com/repos/cc65/cc65/issues/comments/434902315","html_url":"https://github.com/cc65/cc65/issues/789#issuecomment-434902315","issue_url":"https://api.github.com/repos/cc65/cc65/issues/789","id":434902315,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNDkwMjMxNQ==","user":{"login":"fadden","id":6185696,"node_id":"MDQ6VXNlcjYxODU2OTY=","avatar_url":"https://avatars0.githubusercontent.com/u/6185696?v=4","gravatar_id":"","url":"https://api.github.com/users/fadden","html_url":"https://github.com/fadden","followers_url":"https://api.github.com/users/fadden/followers","following_url":"https://api.github.com/users/fadden/following{/other_user}","gists_url":"https://api.github.com/users/fadden/gists{/gist_id}","starred_url":"https://api.github.com/users/fadden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fadden/subscriptions","organizations_url":"https://api.github.com/users/fadden/orgs","repos_url":"https://api.github.com/users/fadden/repos","events_url":"https://api.github.com/users/fadden/events{/privacy}","received_events_url":"https://api.github.com/users/fadden/received_events","type":"User","site_admin":false},"created_at":"2018-11-01T01:37:16Z","updated_at":"2018-11-01T01:37:16Z","author_association":"NONE","body":"@silverdr: I believe it can work under Mono with some effort.  I think the WinForms support is far enough along, and my interactions with the API are simple enough, that I can work around the bugs and at least get it running on Linux.  Java is dead to me.\r\n\r\n@oliverschmidt: I'm trying to do things the \"right way\" for a given target.  I assume anybody who chooses to use ca65 has either made their peace with linker configuration files, or figured out some way of avoiding them that gets the job done.  If I had a \"just generate bytes, updating the .ORG as we go\" flag then I could generate code the way I do for Merlin or 64tass, but if that's the wrong answer for ca65 then let's not do that."}}
{"actor":{"display_login":"fadden"}}