fixed the ClockIrqHandler()
[fw/sdcc] / device / lib / ds390 / tinibios.c
index fef373975e9044b6e857e060a4cc4ab1c006dfa1..6be2f3671752a84271140ae3f306deeb756fd603 100755 (executable)
@@ -501,7 +501,7 @@ void ClockIrqHandler (void) interrupt 1 {
     mov _TH0,_timer0ReloadValue+1
     mov a,#0x01
     add a,_milliSeconds+0
-    mov _milliSeconds,a
+    mov _milliSeconds+0,a
     jnc _ClockIrqHandlerDone
     clr a
     addc a,_milliSeconds+1
@@ -509,11 +509,11 @@ void ClockIrqHandler (void) interrupt 1 {
     jnc _ClockIrqHandlerDone
     clr a
     addc a,_milliSeconds+2
-    mov _milliSeconds+1,a
+    mov _milliSeconds+2,a
     jnc _ClockIrqHandlerDone
     clr a
     addc a,_milliSeconds+3
-    mov _milliSeconds+1,a
+    mov _milliSeconds+3,a
    _ClockIrqHandlerDone:
   _endasm;
 }