I think that would depends on how you define negative numbers. You can have a look on this thread for some ideas.I can use Subb command only to determine result is positive or negative? for positive, carry=0, for negative, carry=1
or it also tell us whether number is greater or less than other.
Subb A,11 ; carry=1 if A<11
http://forum.allaboutcircuits.com/threads/help-on-the-nature-of-negative-binary-numbers.108690/
I am not too sure about this. Been too long not using 8051. Have to dig out my notes to find out.Second problem i am facing is:
for 5ms delay using timer and mode 1, i use the procedure as explained in last two lines of post#15, but for 200ms or 400ms, the value is much greater than that for 16 bit as mode 1 is for 16 bit.Now, i am confused how to calculate the delay? whether i should have to use nested loop without timer or there is anyother technique to resolve this using timer and mode?
May be @cmartinez can help here ........
Allen