git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@862
4a8a32a2-be11-0410-ad9d-
d568d2c75423
void _xdata * dst,
void _xdata * src,
int count
void _xdata * dst,
void _xdata * src,
int count
{
/* Shut compiler up about unused parameters. */
dst; src; count;
{
/* Shut compiler up about unused parameters. */
dst; src; count;
// This needs to be SUPER fast. What we really want is:
#if 0
// This needs to be SUPER fast. What we really want is:
#if 0
-void ClockIrqHandler (void) interrupt 1 {
+void junk_ClockIrqHandler (void) interrupt 10 {
TL0=timer0ReloadValue&0xff;
TH0=timer0ReloadValue>>8;
milliSeconds++;
}
#else
// but look at the code, and the pushes and pops, so:
TL0=timer0ReloadValue&0xff;
TH0=timer0ReloadValue>>8;
milliSeconds++;
}
#else
// but look at the code, and the pushes and pops, so:
-#pragma EXCLUDE b,dpl,dph,dpx
-void ClockIrqHandler (void) interrupt 1 {
+void ClockIrqHandler (void) interrupt 1 _naked
+{
mov _TL0,_timer0ReloadValue
mov _TH0,_timer0ReloadValue+1
clr a
mov _TL0,_timer0ReloadValue
mov _TH0,_timer0ReloadValue+1
clr a
inc _milliSeconds+2
cjne a,_milliSeconds+2,_ClockIrqHandlerDone
inc _milliSeconds+3
inc _milliSeconds+2
cjne a,_milliSeconds+2,_ClockIrqHandlerDone
inc _milliSeconds+3
- cjne a,_milliSeconds+3,_ClockIrqHandlerDone
#endif
// we can't just use milliSeconds
#endif
// we can't just use milliSeconds