There's an introduction to HLSL:
http://www.ati.com/developer/ShaderX2_IntroductionToHLSL.pdf

See if that helps.