If you're using a Windows PC to do this, then try opening the MS calculator. It can usually be found amongst the MS accessories.
In the view menu, change to scientific mode, and you should find that you can work in hexadecimal, decimal, octal and binary.
In decimal mode input your number, let's say 12768, then click on "bin" and you'll have the entire bits you need to input.
Divide them up into groups of seven for setting the a's and b's etc.
That's what I do.
SysExJohn.