-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtiming.i
118 lines (114 loc) · 3.05 KB
/
timing.i
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
;**************************************************************************
;** timing.i
;** Copyright (c) 1996 Daniel Kahlin <[email protected]>
;**
;** timing macros for 6502
;**
;******
;**************************************************************************
;**
;** DELAY x cycles
;**
;******
MAC DELAY
IF [{1}]>23
echo "WARNING! DELAY to big!"
ENDIF
IF [{1}]==1
echo "WARNING! One cycle DELAY not possible!"
ENDIF
IF [{1}]<0
echo "WARNING! DELAY negative!"
ENDIF
IF [{1}]==23
jsr Twentythree ;23
ENDIF
IF [{1}]==22
jsr Twentytwo ;22
ENDIF
IF [{1}]==21
jsr Twentyone ;21
ENDIF
IF [{1}]==20
jsr Twenty ;20
ENDIF
IF [{1}]==19
jsr Nineteen ;19
ENDIF
IF [{1}]==18
jsr Eighteen ;18
ENDIF
IF [{1}]==17
jsr Seventeen ;17
ENDIF
IF [{1}]==16
jsr Sixteen ;16
ENDIF
IF [{1}]==15
jsr Fifteen ;15
ENDIF
IF [{1}]==14
jsr Fourteen ;14
ENDIF
IF [{1}]==13
nop ;2
nop ;2
nop ;2
nop ;2
nop ;2
sta slaskzp ;3
ENDIF
IF [{1}]==12
jsr Twelve ;12
ENDIF
IF [{1}]==11
nop ;2
nop ;2
nop ;2
nop ;2
sta slaskzp ;3
ENDIF
IF [{1}]==10
nop ;2
nop ;2
nop ;2
nop ;2
nop ;2
ENDIF
IF [{1}]==9
nop ;2
nop ;2
nop ;2
sta slaskzp ;3
ENDIF
IF [{1}]==8
nop ;2
nop ;2
nop ;2
nop ;2
ENDIF
IF [{1}]==7
nop ;2
nop ;2
sta slaskzp ;3
ENDIF
IF [{1}]==6
nop ;2
nop ;2
nop ;2
ENDIF
IF [{1}]==5
nop ;2
sta slaskzp ;3
ENDIF
IF [{1}]==4
nop ;2
nop ;2
ENDIF
IF [{1}]==3
sta slaskzp ;3
ENDIF
IF [{1}]==2
nop ;2
ENDIF
ENDM