Working clock example using 32K watch crystal


Results 1 to 20 of 20

Threaded View

  1. #17
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,133


    Did you find this post helpful? Yes | No

    Default Re: Working clock example using 32K watch crystal

    I think you have to change the <>0 to =0 when you test for the modulo 4.

    A better solution to cover more years (you code will not cover year 2100) is to use mod 400, mod 100 and mod 4 to test for leap year (mod 100 is NOT leap year, while 400 and 4 ARE leap years).

    Of course we may not live in year 2100, but just in case...

    Now about the @ commands, just be sure you are on page 0. Else you have to check the page bits. Or put this subroutine on top of your code.

    Ioannis
    Last edited by Ioannis; - 30th May 2011 at 11:13.

Members who have read this thread : 0

You do not have permission to view the list of names.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts