This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

help me with my program in 89C52 mainboard

i use 3ff8h,3ff9h,3ffah,3ffbh,3ffch,3ffdh,3ffeh,3ffeh,3ff

the code for make clock is :
Start :
mov dptr,#3fffbh (hour)
clr a
mov a,@a+dptr
call phex
mov a,#':'
mov dptr,#3fffah (min)
clr a
mov a,@a+dptr
call phex
mov a,#':'
mov dptr,#3fff9h (sec)
clr a
mov a,@a+dptr
call phex
call newline
mov dptr,#3fffch (day)
clr a
mov a,@a+dptr
call phex
mov a,#'/'
mov dptr,#3fffch (date)
clr a
mov a,@a+dptr
call phex
mov a,#'/'
mov dptr,#3fffeh (month)
clr a
mov a,@a+dptr
call phex
mov a,#'/'
mov dptr,#3fffeh (year)
clr a
mov a,@a+dptr
call phex


the code is note full complete ,but it is enough to give me some advices..
the result is :
19:27:45
06/28/10/05

I want to change 06 to be fri (friday)
if somebody has some idea i will be very happy if help me ??

Parents Reply Children
No data