dak246
Member
I'm just checking to see if theres an easier way to test the values of entire registers. What I do now is this; If im looking for an entire register to be zero, I simply move it to w, add 255, and check the carry bit. If I'm looking for a value to be within a range of some sort, say less than or equal to 45, I simply subtract w from 45 and check the carry bit. Is this a correct way of doing things? I notice some code uses the "tstf" and various other functions, but I'm wondering if these just filter down into what Im already doing. Also, when testing more than bit, but less than the entire register, I just use and/or functions and then the method I described above.