Have you remembered to allow a byte for the sign?
i.e. Pic 9(6)v99 is really a 9 byte field if sign is separate
Also note that different compilers store signed numbers in different ways if sign is not separate, which is why you have to specify sign is separate
This sounds suspiciously like homework, but as you already have one reply, here's another idea: try using the Inspect instruction if you have covered this. I think this is what your teacher will be looking for, and may be easier for you to programme than having to do your own loops adding to a...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.