{"action":"created","issue":{"url":"https://api.github.com/repos/yegord/snowman/issues/56","labels_url":"https://api.github.com/repos/yegord/snowman/issues/56/labels{/name}","comments_url":"https://api.github.com/repos/yegord/snowman/issues/56/comments","events_url":"https://api.github.com/repos/yegord/snowman/issues/56/events","html_url":"https://github.com/yegord/snowman/issues/56","id":107326324,"number":56,"title":"what are those \"void**\" for argument and return register of a function? ","user":{"login":"hlide","id":56785,"avatar_url":"https://avatars.githubusercontent.com/u/56785?v=3","gravatar_id":"","url":"https://api.github.com/users/hlide","html_url":"https://github.com/hlide","followers_url":"https://api.github.com/users/hlide/followers","following_url":"https://api.github.com/users/hlide/following{/other_user}","gists_url":"https://api.github.com/users/hlide/gists{/gist_id}","starred_url":"https://api.github.com/users/hlide/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hlide/subscriptions","organizations_url":"https://api.github.com/users/hlide/orgs","repos_url":"https://api.github.com/users/hlide/repos","events_url":"https://api.github.com/users/hlide/events{/privacy}","received_events_url":"https://api.github.com/users/hlide/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-09-19T11:15:43Z","updated_at":"2015-09-20T00:28:14Z","closed_at":null,"body":"This simple *strlen* implementation for Allegrex:\r\n```\r\n89014c4:\tmove       $v1, $a0\r\n89014c8:\tlb         $v0, 0($v1)\r\n89014cc:\tbnez       $v0, 0x089014C8\r\n89014d0:\taddiu      $v1, $v1, 1\r\n89014d4:\tnor        $v0, $zr, $a0\r\n89014d8:\tjr         $ra\r\n89014dc:\taddu       $v0, $v1, $v0\r\n```\r\nwhere only registers *a0*, *v1* and *v0* are used, gave me that strange c++ output:\r\n```c++\r\nvoid** strlen(unsigned char* a0, void** a1, void** a2, void** a3, void** t0, void** t1, void* t2) {\r\n    unsigned char* v1_8;\r\n\r\n    v1_8 = a0;\r\n    while (*v1_8) {\r\n        ++v1_8;\r\n    }\r\n    return (uint32_t)(v1_8 + 1) + ~(uint32_t)a0;\r\n}\r\n```\r\nNote: Allegrex can have up to 8 argument as registers (*a0-a3, t0-t3*).\r\n"},"comment":{"url":"https://api.github.com/repos/yegord/snowman/issues/comments/141721981","html_url":"https://github.com/yegord/snowman/issues/56#issuecomment-141721981","issue_url":"https://api.github.com/repos/yegord/snowman/issues/56","id":141721981,"user":{"login":"nihilus","id":544596,"avatar_url":"https://avatars.githubusercontent.com/u/544596?v=3","gravatar_id":"","url":"https://api.github.com/users/nihilus","html_url":"https://github.com/nihilus","followers_url":"https://api.github.com/users/nihilus/followers","following_url":"https://api.github.com/users/nihilus/following{/other_user}","gists_url":"https://api.github.com/users/nihilus/gists{/gist_id}","starred_url":"https://api.github.com/users/nihilus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nihilus/subscriptions","organizations_url":"https://api.github.com/users/nihilus/orgs","repos_url":"https://api.github.com/users/nihilus/repos","events_url":"https://api.github.com/users/nihilus/events{/privacy}","received_events_url":"https://api.github.com/users/nihilus/received_events","type":"User","site_admin":false},"created_at":"2015-09-20T00:28:14Z","updated_at":"2015-09-20T00:28:14Z","body":"The HPPA and MIPS ELF ABI is kinda obscure when it comes to loading external functions but for an internal function it should work."}}