:: How do i change this so that on 99 it activates an output :: (preferably a buzzer). OK a hint - you will need to come up with some code that requires you to check the STATUS registers - possibly the Z or C. Look at which instructions cause these one of these two flags to be set. You are looking for one of three instructions that you can use, think about which instructions can be used as a "compare". Think about how you were taught at primary school to check the results of additions and subtractions to make sure you came up with the correct answer . There is a clue in that sentence. It might be that some people here may be willing to go further once you've put some of your ideas down, and posted them here. Colin -- cdb, colin@btech-online.co.uk on 8/02/2009 Web presence: www.btech-online.co.uk Hosted by: www.1and1.co.uk/?k_id=7988359 -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist