Beginnings of info flash support. It isn't very good.
[goodfet] / firmware / apps / chipcon / chipconasm.S
1 .globl ccdebuginit
2 .type ccdebuginit,@function //for linking
3
4 #define _GNU_ASSEMBLER_
5 #include "gfports.h"
6
7         
8 //In assembly for cycle-counting, not for efficiency.
9 //
10 ccdebuginit:
11         nop                     ;1 cycle
12         nop                     ;1 cycle
13         nop                     ;1 cycle
14         nop                     ;1 cycle
15         nop                     ;1 cycle
16         nop                     ;1 cycle
17         nop                     ;1 cycle
18         nop                     ;1 cycle
19         nop                     ;1 cycle
20         nop                     ;1 cycle
21         nop                     ;1 cycle
22         nop                     ;1 cycle
23         nop                     ;1 cycle
24         nop                     ;1 cycle
25         nop                     ;1 cycle
26         nop                     ;1 cycle
27         nop                     ;1 cycle
28         nop                     ;1 cycle
29         nop                     ;1 cycle
30         nop                     ;1 cycle
31         nop                     ;1 cycle
32         nop                     ;1 cycle
33         nop                     ;1 cycle
34         nop                     ;1 cycle
35         nop                     ;1 cycle
36         nop                     ;1 cycle
37         nop                     ;1 cycle
38         nop                     ;1 cycle
39         nop                     ;1 cycle
40         nop                     ;1 cycle
41         nop                     ;1 cycle
42         nop                     ;1 cycle
43         nop                     ;1 cycle
44         nop                     ;1 cycle
45         nop                     ;1 cycle
46         nop                     ;1 cycle
47         
48         bis.b   #13,    &0x0031 ;5 cycles
49         bic.b   #8,     &0x0031 ;4 cycles
50         bic.b   #1,     &0x0031 ;4
51         xor.b   #8,     &0x0031 ;4
52         xor.b   #8,     &0x0031 ;4
53         xor.b   #8,     &0x0031 ;4
54 ;;      xor.b   #8,     &0x0031 ;4
55         bis.b   #1,     &0x0031 ;4
56         ret