4 __sfr __at
0x00 Exec_port
;
5 __sfr __at
0x01 StorOpc_port
;
7 volatile unsigned long ticks
;
11 // Setup tick interrupt.
12 StorOpc_port
= 0x0f; // Set tick opcode
13 Exec_port
= 10; // Once every 10 ms.
15 StorOpc_port
= 0x0e; // Set interrupt opcode
16 Exec_port
= 0x02; // Tick interrupt only.
29 unsigned long clock(void)
38 #if defined(__SDCC) && __SDCC_REVISION < 9624 // Old SDCC weirdness