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 ??
"I want to change 06 to be fri (friday)" and, presumably, 07 to be Saturday, 01 to be Sunday, 05 to be Thursday, etc...? You need a Lookup Table to look-up the appropriate text according to the day number.
can you help me with this Lookup Table ?