question how can i test to see if bits[7:0] in a 16 bit number is positive or negative? (i.e.- x00F6 ... ignoring the first half x00, xF6 is a negative number, but how can i check that in a branch statement ?
basically after I extract the first eight bits [7:0] out of lets say x06F6 using an AND i get x00F6
but xF6 is a negative number
so I need to append xFF to it to get xFFF6
anyhow, I know howt to append
but how can i check in the first place to see if its negative or positve
so i know wether to append or not