Mercurial > repos > blastem
diff tern.c @ 631:de6f00204fa2
Add support for disassembling VOS program modules
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Sat, 11 Oct 2014 20:32:17 -0700 |
parents | 51bf87f76d15 |
children | 1b2f8280ba81 |
line wrap: on
line diff
--- a/tern.c Wed Oct 08 22:18:34 2014 -0700 +++ b/tern.c Sat Oct 11 20:32:17 2014 -0700 @@ -122,4 +122,14 @@ return tern_insert(head, key, val); } - +char * tern_int_key(uint32_t key, char * buf) +{ + char * cur = buf; + while (key) + { + *(cur++) = (key & 0x7F) + 1; + key >>= 7; + } + *cur = 0; + return buf; +}