>> I just wanted to convert between #4 and %1000 with a single line of code.

B0 = DCD 3 ‘ Sets B0 to %00001000

(see PBP manual for full details)