The procedure sets the nr th byte in the array bm to the value val. Valid values of val are from 0 to 255.