In a PIC uC, TRISX means Tristate-Port.
When a TRIS bit is set to 0 it's port pin is set to be an output, when 1 it is set to be an input.
So if you have for example portB which has pins RB0:RB7 you can set the individual pins as inputs or outputs by either writing a complete value to the corresponding TRIS, in this case TRISB or individually setting the bits to 1 or 0 by using BSET or BCLR e.g.
BSET TRISB, 0
.
The rest is straight forward binary to Hex. A byte (8 bits) can be split evenly into two halves of 4 bits (2 nibbles) - this can be represented by a 2 character hexadecimal number. Each nibble looks like this:
Binary Hex
MSn LSn
00000000 0x00
00000001 0x01
00000010 0x02
00000011 0x03
00000100 0x04
00000101 0x05
00000110 0x06
00000111 0x07
00001000 0x08
00001001 0x09
00001010 0x0A
00001011 0x0B
00001100 0x0C
00001101 0x0D
00001110 0x0E
00001111 0x0F
00010000 0x10
-------------
11111111 0xFF
The rightmost bit in our example is RB0 and the leftmost is RB7