Instructions that can change the Z bit in the STATUS register

Does anyone know what operations can change the Z bit in the STATUS register, and in what ways? For example, how does the instruction "movf COUNTL, F" changes the Z bit to 1 if COUNTL is 0?

Views: 17

Reply to This

Replies to This Discussion

Any command in the instruction set (p7-61 or 7-69) with a Z in the last column, to see how it works look at this web page:http://technology.niagarac.on.ca/.../18F_Instruction_Set/

It changes the z-bit to 1 because W becomes 0, so the z bit gets set.

RSS

© 2024   Created by PML.   Powered by

Badges  |  Report an Issue  |  Terms of Service