How are the variables "Hours", "Minutes", "HoursL1", and "MinutesL1" declared? If they are just 8bit variables, then just compare the "Hours" and "HoursL1" first. If they don't match then return from subroutine. If they match, then compare "Minutes" and "MinutesL1". If the minutes match then sound the alarm; otherwise return from subroutine.
Do you realise that the subwf HOURS is placing the result back in HOURS? Hours will therefore be changing rapidly and inadvertently matching hoursl1. Change it to subwf HOURS,W to keep the result in W.
Do you realise that the subwf HOURS is placing the result back in HOURS? Hours will therefore be changing rapidly and inadvertently matching hoursl1. Change it to subwf HOURS,W to keep the result in W.
I changed it so that it would keep the result in W but its made no different when I watch the STATUS reg the Z flag is perminently set(1) so RD1 is alwasys on.
No I never realised that,
I changed it so that it would keep the result in W but its made no different when I watch the STATUS reg the Z flag is perminently set(1) so RD1 is alwasys on.