Mercurial > repos > blastem
comparison 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 |
comparison
equal
deleted
inserted
replaced
630:47123183c336 | 631:de6f00204fa2 |
---|---|
120 tern_val val; | 120 tern_val val; |
121 val.ptrval = value; | 121 val.ptrval = value; |
122 return tern_insert(head, key, val); | 122 return tern_insert(head, key, val); |
123 } | 123 } |
124 | 124 |
125 | 125 char * tern_int_key(uint32_t key, char * buf) |
126 { | |
127 char * cur = buf; | |
128 while (key) | |
129 { | |
130 *(cur++) = (key & 0x7F) + 1; | |
131 key >>= 7; | |
132 } | |
133 *cur = 0; | |
134 return buf; | |
135 } |