{"action":"opened","issue":{"url":"https://api.github.com/repos/buserror/simavr/issues/118","labels_url":"https://api.github.com/repos/buserror/simavr/issues/118/labels{/name}","comments_url":"https://api.github.com/repos/buserror/simavr/issues/118/comments","events_url":"https://api.github.com/repos/buserror/simavr/issues/118/events","html_url":"https://github.com/buserror/simavr/issues/118","id":70915896,"number":118,"title":"Crash when initializing ADC of atmega128","user":{"login":"jputcu","id":553267,"avatar_url":"https://avatars.githubusercontent.com/u/553267?v=3","gravatar_id":"","url":"https://api.github.com/users/jputcu","html_url":"https://github.com/jputcu","followers_url":"https://api.github.com/users/jputcu/followers","following_url":"https://api.github.com/users/jputcu/following{/other_user}","gists_url":"https://api.github.com/users/jputcu/gists{/gist_id}","starred_url":"https://api.github.com/users/jputcu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jputcu/subscriptions","organizations_url":"https://api.github.com/users/jputcu/orgs","repos_url":"https://api.github.com/users/jputcu/repos","events_url":"https://api.github.com/users/jputcu/events{/privacy}","received_events_url":"https://api.github.com/users/jputcu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-04-25T14:15:51Z","updated_at":"2015-04-25T14:15:51Z","closed_at":null,"body":"When using the simulator to run atmega128 it crashes.\r\nA gdb trace reveals that avr_adc_init() tries to register ADCSRB with avr_register_io_write().\r\nBecause only register A is available in this processor, address 0 is passed. Macro AVR_DATA_TO_IO(addr) produces an invalid output and abort() is called."}}