The $ sign indicates a hex number i.e $F would be the same as 15 in decimal and $F0 would be 240 in decimal.

I'm afraid I'm fuzzy myself about ncd and dcd.

>> is shifting to the right for example var>>1 would be the same as dividing var by two.