In SX Microcontrollers, SX/B Compiler and SX-Key Tool, peterverkaik wrote: In this section mov w, #10 ;was 10 mov w, MSec-w ;Z if MSec = 10 snz clr Msec SNZ you use clr Msec, but CLR FR sets the Z flag, so the following SNZ does not work. Change it to: mov w, #10 ;was 10 mov w, MSec-w ;Z if MSec = 10 snz mov Msec,w ;clear Msec SNZ regards peter ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=367347#m367402 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2009 (http://www.dotNetBB.com)