What are the data types? It is possible that bin.maskFxAxE is of type MRI_byte (making the output the same type), which cannot represent negative numbers. The output type can be set to short with the option 'datum short', which would fix the problem.
Tom