annotate code_part1/OSTC_code_asm_part1/wait.asm @ 103:fe195f766014

Codesize optimized valconv.asm
author JeanDo
date Tue, 14 Dec 2010 11:14:32 +0100
parents 96a35aeda5f2
children 42acd9316f7a
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
96a35aeda5f2 Initial setup
heinrichsweikamp
parents:
diff changeset
1 ; OSTC - diving computer code
96a35aeda5f2 Initial setup
heinrichsweikamp
parents:
diff changeset
2 ; Copyright (C) 2008 HeinrichsWeikamp GbR
96a35aeda5f2 Initial setup
heinrichsweikamp
parents:
diff changeset
3 ; This program is free software: you can redistribute it and/or modify
96a35aeda5f2 Initial setup
heinrichsweikamp
parents:
diff changeset
4 ; it under the terms of the GNU General Public License as published by
96a35aeda5f2 Initial setup
heinrichsweikamp
parents:
diff changeset
5 ; the Free Software Foundation, either version 3 of the License, or
96a35aeda5f2 Initial setup
heinrichsweikamp
parents:
diff changeset
6 ; (at your option) any later version.
96a35aeda5f2 Initial setup
heinrichsweikamp
parents:
diff changeset
7 ; This program is distributed in the hope that it will be useful,
96a35aeda5f2 Initial setup
heinrichsweikamp
parents:
diff changeset
8 ; but WITHOUT ANY WARRANTY; without even the implied warranty of
96a35aeda5f2 Initial setup
heinrichsweikamp
parents:
diff changeset
9 ; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
96a35aeda5f2 Initial setup
heinrichsweikamp
parents:
diff changeset
10 ; GNU General Public License for more details.
96a35aeda5f2 Initial setup
heinrichsweikamp
parents:
diff changeset
11 ; You should have received a copy of the GNU General Public License
96a35aeda5f2 Initial setup
heinrichsweikamp
parents:
diff changeset
12 ; along with this program. If not, see <http://www.gnu.org/licenses/>.
96a35aeda5f2 Initial setup
heinrichsweikamp
parents:
diff changeset
13 ; Wait routines
96a35aeda5f2 Initial setup
heinrichsweikamp
parents:
diff changeset
14 ; written by: chsw, info@heinrichsweikamp.com
96a35aeda5f2 Initial setup
heinrichsweikamp
parents:
diff changeset
15 ; written: 01/31/04
96a35aeda5f2 Initial setup
heinrichsweikamp
parents:
diff changeset
16 ; last updated: 11/05/07
96a35aeda5f2 Initial setup
heinrichsweikamp
parents:
diff changeset
17 ; known bugs:
96a35aeda5f2 Initial setup
heinrichsweikamp
parents:
diff changeset
18 ; ToDo:
96a35aeda5f2 Initial setup
heinrichsweikamp
parents:
diff changeset
19
96a35aeda5f2 Initial setup
heinrichsweikamp
parents:
diff changeset
20 ; ==========================================================
96a35aeda5f2 Initial setup
heinrichsweikamp
parents:
diff changeset
21 ; WAIT 10 MICROSECONDS - 16 MHZ
96a35aeda5f2 Initial setup
heinrichsweikamp
parents:
diff changeset
22 ; ==========================================================
96a35aeda5f2 Initial setup
heinrichsweikamp
parents:
diff changeset
23 WAIT10US macro wait_temp
96a35aeda5f2 Initial setup
heinrichsweikamp
parents:
diff changeset
24 movlw wait_temp
96a35aeda5f2 Initial setup
heinrichsweikamp
parents:
diff changeset
25 call WAIT10USX
96a35aeda5f2 Initial setup
heinrichsweikamp
parents:
diff changeset
26 endm
96a35aeda5f2 Initial setup
heinrichsweikamp
parents:
diff changeset
27
96a35aeda5f2 Initial setup
heinrichsweikamp
parents:
diff changeset
28 WAIT10USX movwf wait_temp
96a35aeda5f2 Initial setup
heinrichsweikamp
parents:
diff changeset
29 goto JumpIn10us
96a35aeda5f2 Initial setup
heinrichsweikamp
parents:
diff changeset
30 WAIT10USX2 nop
96a35aeda5f2 Initial setup
heinrichsweikamp
parents:
diff changeset
31 nop
96a35aeda5f2 Initial setup
heinrichsweikamp
parents:
diff changeset
32 nop
96a35aeda5f2 Initial setup
heinrichsweikamp
parents:
diff changeset
33 nop
96a35aeda5f2 Initial setup
heinrichsweikamp
parents:
diff changeset
34 nop
96a35aeda5f2 Initial setup
heinrichsweikamp
parents:
diff changeset
35 nop
96a35aeda5f2 Initial setup
heinrichsweikamp
parents:
diff changeset
36 nop
96a35aeda5f2 Initial setup
heinrichsweikamp
parents:
diff changeset
37 nop
96a35aeda5f2 Initial setup
heinrichsweikamp
parents:
diff changeset
38 nop
96a35aeda5f2 Initial setup
heinrichsweikamp
parents:
diff changeset
39 JumpIn10us:
96a35aeda5f2 Initial setup
heinrichsweikamp
parents:
diff changeset
40 nop
96a35aeda5f2 Initial setup
heinrichsweikamp
parents:
diff changeset
41 nop
96a35aeda5f2 Initial setup
heinrichsweikamp
parents:
diff changeset
42 nop
96a35aeda5f2 Initial setup
heinrichsweikamp
parents:
diff changeset
43 nop
96a35aeda5f2 Initial setup
heinrichsweikamp
parents:
diff changeset
44 nop
96a35aeda5f2 Initial setup
heinrichsweikamp
parents:
diff changeset
45 nop
96a35aeda5f2 Initial setup
heinrichsweikamp
parents:
diff changeset
46 nop
96a35aeda5f2 Initial setup
heinrichsweikamp
parents:
diff changeset
47 nop
96a35aeda5f2 Initial setup
heinrichsweikamp
parents:
diff changeset
48 nop
96a35aeda5f2 Initial setup
heinrichsweikamp
parents:
diff changeset
49 nop
96a35aeda5f2 Initial setup
heinrichsweikamp
parents:
diff changeset
50 nop
96a35aeda5f2 Initial setup
heinrichsweikamp
parents:
diff changeset
51 nop
96a35aeda5f2 Initial setup
heinrichsweikamp
parents:
diff changeset
52 nop
96a35aeda5f2 Initial setup
heinrichsweikamp
parents:
diff changeset
53 nop
96a35aeda5f2 Initial setup
heinrichsweikamp
parents:
diff changeset
54 nop
96a35aeda5f2 Initial setup
heinrichsweikamp
parents:
diff changeset
55 nop
96a35aeda5f2 Initial setup
heinrichsweikamp
parents:
diff changeset
56 nop
96a35aeda5f2 Initial setup
heinrichsweikamp
parents:
diff changeset
57 nop
96a35aeda5f2 Initial setup
heinrichsweikamp
parents:
diff changeset
58 nop
96a35aeda5f2 Initial setup
heinrichsweikamp
parents:
diff changeset
59 nop
96a35aeda5f2 Initial setup
heinrichsweikamp
parents:
diff changeset
60 nop
96a35aeda5f2 Initial setup
heinrichsweikamp
parents:
diff changeset
61 nop
96a35aeda5f2 Initial setup
heinrichsweikamp
parents:
diff changeset
62 nop
96a35aeda5f2 Initial setup
heinrichsweikamp
parents:
diff changeset
63 nop
96a35aeda5f2 Initial setup
heinrichsweikamp
parents:
diff changeset
64 nop
96a35aeda5f2 Initial setup
heinrichsweikamp
parents:
diff changeset
65 nop
96a35aeda5f2 Initial setup
heinrichsweikamp
parents:
diff changeset
66 nop
96a35aeda5f2 Initial setup
heinrichsweikamp
parents:
diff changeset
67 nop
96a35aeda5f2 Initial setup
heinrichsweikamp
parents:
diff changeset
68 decfsz wait_temp,1
96a35aeda5f2 Initial setup
heinrichsweikamp
parents:
diff changeset
69 goto WAIT10USX2
96a35aeda5f2 Initial setup
heinrichsweikamp
parents:
diff changeset
70 return
96a35aeda5f2 Initial setup
heinrichsweikamp
parents:
diff changeset
71 ; ==========================================================
96a35aeda5f2 Initial setup
heinrichsweikamp
parents:
diff changeset
72 ; WAIT 1 MILLISECOND - 16 MHZ
96a35aeda5f2 Initial setup
heinrichsweikamp
parents:
diff changeset
73 ; ==========================================================
96a35aeda5f2 Initial setup
heinrichsweikamp
parents:
diff changeset
74 WAITMS macro waitms_temp
96a35aeda5f2 Initial setup
heinrichsweikamp
parents:
diff changeset
75 movlw waitms_temp
96a35aeda5f2 Initial setup
heinrichsweikamp
parents:
diff changeset
76 call WAITMSX
96a35aeda5f2 Initial setup
heinrichsweikamp
parents:
diff changeset
77 endm
96a35aeda5f2 Initial setup
heinrichsweikamp
parents:
diff changeset
78 WAITMSX movwf waitms_temp
96a35aeda5f2 Initial setup
heinrichsweikamp
parents:
diff changeset
79 goto JumpInMSX
96a35aeda5f2 Initial setup
heinrichsweikamp
parents:
diff changeset
80 WAITMSX2 nop
96a35aeda5f2 Initial setup
heinrichsweikamp
parents:
diff changeset
81 nop
96a35aeda5f2 Initial setup
heinrichsweikamp
parents:
diff changeset
82 nop
96a35aeda5f2 Initial setup
heinrichsweikamp
parents:
diff changeset
83 nop
96a35aeda5f2 Initial setup
heinrichsweikamp
parents:
diff changeset
84 nop
96a35aeda5f2 Initial setup
heinrichsweikamp
parents:
diff changeset
85 nop
96a35aeda5f2 Initial setup
heinrichsweikamp
parents:
diff changeset
86 nop
96a35aeda5f2 Initial setup
heinrichsweikamp
parents:
diff changeset
87 nop
96a35aeda5f2 Initial setup
heinrichsweikamp
parents:
diff changeset
88 nop
96a35aeda5f2 Initial setup
heinrichsweikamp
parents:
diff changeset
89 JumpInMSX:
96a35aeda5f2 Initial setup
heinrichsweikamp
parents:
diff changeset
90 nop
96a35aeda5f2 Initial setup
heinrichsweikamp
parents:
diff changeset
91 nop
96a35aeda5f2 Initial setup
heinrichsweikamp
parents:
diff changeset
92 nop
96a35aeda5f2 Initial setup
heinrichsweikamp
parents:
diff changeset
93 nop
96a35aeda5f2 Initial setup
heinrichsweikamp
parents:
diff changeset
94 nop
96a35aeda5f2 Initial setup
heinrichsweikamp
parents:
diff changeset
95 nop
96a35aeda5f2 Initial setup
heinrichsweikamp
parents:
diff changeset
96 nop
96a35aeda5f2 Initial setup
heinrichsweikamp
parents:
diff changeset
97 nop
96a35aeda5f2 Initial setup
heinrichsweikamp
parents:
diff changeset
98 nop
96a35aeda5f2 Initial setup
heinrichsweikamp
parents:
diff changeset
99 nop
96a35aeda5f2 Initial setup
heinrichsweikamp
parents:
diff changeset
100 nop
96a35aeda5f2 Initial setup
heinrichsweikamp
parents:
diff changeset
101 nop
96a35aeda5f2 Initial setup
heinrichsweikamp
parents:
diff changeset
102 nop
96a35aeda5f2 Initial setup
heinrichsweikamp
parents:
diff changeset
103 nop
96a35aeda5f2 Initial setup
heinrichsweikamp
parents:
diff changeset
104 nop
96a35aeda5f2 Initial setup
heinrichsweikamp
parents:
diff changeset
105 nop
96a35aeda5f2 Initial setup
heinrichsweikamp
parents:
diff changeset
106 nop
96a35aeda5f2 Initial setup
heinrichsweikamp
parents:
diff changeset
107 nop
96a35aeda5f2 Initial setup
heinrichsweikamp
parents:
diff changeset
108 nop
96a35aeda5f2 Initial setup
heinrichsweikamp
parents:
diff changeset
109 nop
96a35aeda5f2 Initial setup
heinrichsweikamp
parents:
diff changeset
110 nop
96a35aeda5f2 Initial setup
heinrichsweikamp
parents:
diff changeset
111 nop
96a35aeda5f2 Initial setup
heinrichsweikamp
parents:
diff changeset
112 nop
96a35aeda5f2 Initial setup
heinrichsweikamp
parents:
diff changeset
113 nop
96a35aeda5f2 Initial setup
heinrichsweikamp
parents:
diff changeset
114 nop
96a35aeda5f2 Initial setup
heinrichsweikamp
parents:
diff changeset
115 nop
96a35aeda5f2 Initial setup
heinrichsweikamp
parents:
diff changeset
116 nop
96a35aeda5f2 Initial setup
heinrichsweikamp
parents:
diff changeset
117 nop
96a35aeda5f2 Initial setup
heinrichsweikamp
parents:
diff changeset
118 nop
96a35aeda5f2 Initial setup
heinrichsweikamp
parents:
diff changeset
119 WAIT10US d'99'
96a35aeda5f2 Initial setup
heinrichsweikamp
parents:
diff changeset
120 decfsz waitms_temp,1
96a35aeda5f2 Initial setup
heinrichsweikamp
parents:
diff changeset
121 goto WAITMSX2
96a35aeda5f2 Initial setup
heinrichsweikamp
parents:
diff changeset
122 return