{"action":"created","issue":{"url":"https://api.github.com/repos/cornell-brg/pydgin/issues/24","labels_url":"https://api.github.com/repos/cornell-brg/pydgin/issues/24/labels{/name}","comments_url":"https://api.github.com/repos/cornell-brg/pydgin/issues/24/comments","events_url":"https://api.github.com/repos/cornell-brg/pydgin/issues/24/events","html_url":"https://github.com/cornell-brg/pydgin/issues/24","id":84110817,"number":24,"title":"Dealing with a mixed width ISA","user":{"login":"snim2","id":97674,"avatar_url":"https://avatars.githubusercontent.com/u/97674?v=3","gravatar_id":"","url":"https://api.github.com/users/snim2","html_url":"https://github.com/snim2","followers_url":"https://api.github.com/users/snim2/followers","following_url":"https://api.github.com/users/snim2/following{/other_user}","gists_url":"https://api.github.com/users/snim2/gists{/gist_id}","starred_url":"https://api.github.com/users/snim2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/snim2/subscriptions","organizations_url":"https://api.github.com/users/snim2/orgs","repos_url":"https://api.github.com/users/snim2/repos","events_url":"https://api.github.com/users/snim2/events{/privacy}","received_events_url":"https://api.github.com/users/snim2/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-06-02T17:08:11Z","updated_at":"2015-06-08T21:33:46Z","closed_at":null,"body":"I'm writing a simulator in Pydgin for an ISA which mixes 16-bit and 32-bit instructions. I can happily update my PC correctly and mix different width instructions in the same program, but only if line 149 in `pydgin.storage` is commented out, and my instructions are padded to 32bits with `x`s. This is the LOC in `pydgin.storage.iread()` that has to be removed to make this work:\r\n\r\n    assert start_addr & 0b11 == 0  # only aligned accesses allowed\r\n\r\nAt the moment I'm testing this code with py.test, so I haven't built a simulator with a JIT, so I don't think my code has exercised `read()` yet, and I'm not sure what would happen if it did.\r\n\r\nSo, how safe is it to delete this assertion? Do I need to do anything to `read()`? Is anything else liable to break?\r\n\r\n/cc @cfbolz "},"comment":{"url":"https://api.github.com/repos/cornell-brg/pydgin/issues/comments/110147996","html_url":"https://github.com/cornell-brg/pydgin/issues/24#issuecomment-110147996","issue_url":"https://api.github.com/repos/cornell-brg/pydgin/issues/24","id":110147996,"user":{"login":"snim2","id":97674,"avatar_url":"https://avatars.githubusercontent.com/u/97674?v=3","gravatar_id":"","url":"https://api.github.com/users/snim2","html_url":"https://github.com/snim2","followers_url":"https://api.github.com/users/snim2/followers","following_url":"https://api.github.com/users/snim2/following{/other_user}","gists_url":"https://api.github.com/users/snim2/gists{/gist_id}","starred_url":"https://api.github.com/users/snim2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/snim2/subscriptions","organizations_url":"https://api.github.com/users/snim2/orgs","repos_url":"https://api.github.com/users/snim2/repos","events_url":"https://api.github.com/users/snim2/events{/privacy}","received_events_url":"https://api.github.com/users/snim2/received_events","type":"User","site_admin":false},"created_at":"2015-06-08T21:33:46Z","updated_at":"2015-06-08T21:33:46Z","body":"Many thanks!"}}