{"action":"opened","issue":{"url":"https://api.github.com/repos/mikeakohn/naken_asm/issues/6","labels_url":"https://api.github.com/repos/mikeakohn/naken_asm/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/mikeakohn/naken_asm/issues/6/comments","events_url":"https://api.github.com/repos/mikeakohn/naken_asm/issues/6/events","html_url":"https://github.com/mikeakohn/naken_asm/issues/6","id":71186701,"number":6,"title":"Endianess directives not recognized (and default wrong on STM8)","user":{"login":"abe-k","id":4240556,"avatar_url":"https://avatars.githubusercontent.com/u/4240556?v=3","gravatar_id":"","url":"https://api.github.com/users/abe-k","html_url":"https://github.com/abe-k","followers_url":"https://api.github.com/users/abe-k/followers","following_url":"https://api.github.com/users/abe-k/following{/other_user}","gists_url":"https://api.github.com/users/abe-k/gists{/gist_id}","starred_url":"https://api.github.com/users/abe-k/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abe-k/subscriptions","organizations_url":"https://api.github.com/users/abe-k/orgs","repos_url":"https://api.github.com/users/abe-k/repos","events_url":"https://api.github.com/users/abe-k/events{/privacy}","received_events_url":"https://api.github.com/users/abe-k/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-04-27T05:50:39Z","updated_at":"2015-04-27T05:50:39Z","closed_at":null,"body":"When issuing one of the directives `.big_endian` or `.little_endian`, the assembler fails with, for example,\r\n````\r\nError: Unknown directive 'big_endian' at filename:lineno.\r\n````\r\nThis is because the conditionals in `check_for_directive` for these two directives do not return 1, but fall through to return 0, indicating no directive matched.\r\n\r\nI also note that the default endianness specified for STM8 is incorrect: it is actually a big-endian processor.\r\n\r\nThis is a serious problem, as it means any word-length data or addresses stored will be loaded in backwards."}}