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
Bookmarks