If you don't calculate it at run time then you have to use a lookup table.
It would be a very good idea to add range checking to this code.
#include <htc.h>
#define VMIN 156
#define VMAX 217
const unsigned char p_table[62] = { 0, 2, 3, 5, 7, 8, 10, 11,
13, 15, 16, 18, 20, 21, 23, 25,
26, 28, 30, 31, 33, 34, 36, 38,
39, 41, 43, 44, 46, 48, 49, 51,
52, 54, 56, 57, 59, 61, 62, 64,
66, 67, 69, 70, 72, 74, 75, 77,
79, 80, 82, 84, 85, 87, 89, 90,
92, 93, 95, 97, 98, 100};
main() {
unsigned char adval, percent;
adval = 200;
percent = p_table[adval - VMIN];
}