projects
/
goodfet
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
09e868302cc7bdbb6f7ba169ba854d2c44d1f25f
[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
24
bis.b #13, &0x0031 ;5 cycles
25
bic.b #8, &0x0031 ;4 cycles
26
bic.b #1, &0x0031 ;4
27
xor.b #8, &0x0031 ;4
28
xor.b #8, &0x0031 ;4
29
xor.b #8, &0x0031 ;4
30
;; xor.b #8, &0x0031 ;4
31
bis.b #1, &0x0031 ;4
32
ret