does anyone have any ideas?
when the seconds register is equal to 40, the "tens" of the hours register becomes 4 (e.g 09 then changed to 49 when seconds becomes 40) the hours "tens" then returns to its correct value once seconds is smaller than 40 again.
here is an example, i am debugging using hyperterminal:
hours:minutes:seconds
9(9):22(22):38(38)
9(9):22(22):39(39)
49(49):22(22):40(40)
the values in the brackets are the bcd values straight from the registers without being ran through any conversion routines, i then output them using the HEX modifier.




Bookmarks