Commit 6dcceb283852efb4772e7db7c1b6cbd166b189ae
Merge branch 'master' of archives.plil.fr:gbontoux/s6-mp-tutorat
Showing
2 changed files
with
112 additions
and
14 deletions
Show diff stats
principal.txt
... | ... | @@ -74,11 +74,7 @@ |
74 | 74 | |
75 | 75 | ; Tableaux de la mémoire du programme |
76 | 76 | |
77 | -afficheurNombres: | |
78 | - .DB 0x3F, 0x30, 0x6D, 0x79, 0x72, 0x5B, 0x5F, 0x31, 0x7F, 0x7B | |
79 | - ; 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 | |
80 | - | |
81 | -afficheurLettres: | |
77 | +afficheur: | |
82 | 78 | .DB 0x3F, 0x30, 0x6D, 0x79, 0x72, 0x5B, 0x5F, 0x31, 0x7F, 0x7B, 0x77, 0x40, 0x4c, 0xfc, 0xcf, 0xc7, 0x40, 0xf6, 0x04, 0x3c, 0x40, 0x0E, 0x37, 0x54, 0x5c, 0x40, 0x40, 0x44, 0x5b, 0x4e, 0x1c, 0x1c, 0x40, 0x40, 0x40, 0x40, 0x63 |
83 | 79 | ; 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z, ° |
84 | 80 | |
... | ... | @@ -163,14 +159,57 @@ afficherMinu: |
163 | 159 | |
164 | 160 | afficherJour: |
165 | 161 | ; Considère le registre compteur comme un jour et l'affiche |
166 | - ; TODO | |
162 | + d1 <- 0x00; | |
163 | + d0 <- 0x00; | |
164 | + si compteur = 0 saut afficherLu | |
165 | + si compteur = 1 saut afficherMa | |
166 | + si compteur = 2 saut afficherMe | |
167 | + si compteur = 3 saut afficherJe | |
168 | + si compteur = 4 saut afficherVe | |
169 | + si compteur = 5 saut afficherSa | |
170 | + si compteur = 6 saut afficherDi | |
171 | + | |
172 | +afficherLu: | |
173 | + d3 <- 0x0E | |
174 | + d2 <- 0x1c | |
175 | + ret | |
176 | + | |
177 | +afficherMa: | |
178 | + d3 <- 0x37 | |
179 | + d2 <- 0x77 | |
180 | + ret | |
181 | + | |
182 | +afficherMe: | |
183 | + d3 <- 0x37 | |
184 | + d2 <- 0xcf | |
185 | + ret | |
186 | + | |
187 | +afficherJe: | |
188 | + d3 <- 0x3c | |
189 | + d2 <- 0xcf | |
190 | + ret | |
191 | + | |
192 | +afficherVe: | |
193 | + d3 <- 0x1c | |
194 | + d2 <- 0xcf | |
195 | + ret | |
196 | + | |
197 | +afficherSa: | |
198 | + d3 <- 0x5b | |
199 | + d2 <- 0x77 | |
200 | + ret | |
201 | + | |
202 | +afficherDi: | |
203 | + d3 <- 0xfc | |
204 | + d2 <- 0x04 | |
167 | 205 | ret |
168 | 206 | |
169 | 207 | ; Logique |
170 | 208 | agir10s: |
171 | 209 | ; Initialise une lecture ADC |
210 | + | |
172 | 211 | ; Met à jour l'état de veille (si on est en état veille) |
173 | - ; TODO | |
212 | + | |
174 | 213 | ret |
175 | 214 | |
176 | 215 | agirHeur: |
... | ... | @@ -221,7 +260,10 @@ etatVeilleTemp: |
221 | 260 | |
222 | 261 | etatMenuAssoc: |
223 | 262 | etat <- 2 |
224 | - d <- "ASSO" | |
263 | + d3 <- 0x77 | |
264 | + d2 <- 0x5b | |
265 | + d1 <- 0x5b | |
266 | + d0 <- 0x5c | |
225 | 267 | reti |
226 | 268 | |
227 | 269 | etatMenuJours: |
... | ... | @@ -259,7 +301,10 @@ etatParaJoursS: ; Switch |
259 | 301 | |
260 | 302 | etatMenuTJour: |
261 | 303 | etat <- 17 |
262 | - d <- "JOUR" | |
304 | + d3 <- 0x3c | |
305 | + d2 <- 0x5c | |
306 | + d1 <- 0x1c | |
307 | + d0 <- 0x44 | |
263 | 308 | reti |
264 | 309 | |
265 | 310 | etatParaTJour: |
... | ... | @@ -276,7 +321,10 @@ etatParaTJourC: |
276 | 321 | |
277 | 322 | etatMenuTNuit: |
278 | 323 | etat <- 19 |
279 | - d <- "NUIT" | |
324 | + d3 <- 0x54 | |
325 | + d2 <- 0x1c | |
326 | + d1 <- 0x04 | |
327 | + d0 <- 0x4e | |
280 | 328 | reti |
281 | 329 | |
282 | 330 | etatParaTNuit: |
... | ... | @@ -293,22 +341,34 @@ etatParaTNuitC: |
293 | 341 | |
294 | 342 | etatMenuHorloge: |
295 | 343 | etat <- 21 |
296 | - d <- "HORL" | |
344 | + d3 <- 0xf6 | |
345 | + d2 <- 0x5c | |
346 | + d1 <- 0x44 | |
347 | + d0 <- 0x0E | |
297 | 348 | reti |
298 | 349 | |
299 | 350 | etatMenuHJour: |
300 | 351 | etat <- 22 |
301 | - d <- "JOUR" | |
352 | + d3 <- 0x3c | |
353 | + d2 <- 0x5c | |
354 | + d1 <- 0x1c | |
355 | + d0 <- 0x44 | |
302 | 356 | reti |
303 | 357 | |
304 | 358 | etatMenuHHeur: |
305 | 359 | etat <- 23 |
306 | - d <- "HEUR" | |
360 | + d3 <- 0xf6 | |
361 | + d2 <- 0xcf | |
362 | + d1 <- 0x1c | |
363 | + d0 <- 0x44 | |
307 | 364 | reti |
308 | 365 | |
309 | 366 | etatMenuHMinu: |
310 | 367 | etat <- 24 |
311 | - d <- "MINU" | |
368 | + d3 <- 0x37 | |
369 | + d2 <- 0x04 | |
370 | + d1 <- 0x54 | |
371 | + d0 <- 0x1c | |
312 | 372 | reti |
313 | 373 | |
314 | 374 | etatParaHJour: | ... | ... |
... | ... | @@ -0,0 +1,38 @@ |
1 | +0 0x3F | |
2 | +1 0x30 | |
3 | +2 0x6D | |
4 | +3 0x79 | |
5 | +4 0x72 | |
6 | +5 0x5B | |
7 | +6 0x5F | |
8 | +7 0x31 | |
9 | +8 0x7F | |
10 | +9 0x7B | |
11 | + | |
12 | +a 0x77 | |
13 | +b 0x40 | |
14 | +c 0x4c | |
15 | +d 0xfc | |
16 | +e 0xcf | |
17 | +f 0xc7 | |
18 | +g 0x40 | |
19 | +h 0xf6 | |
20 | +i 0x04 | |
21 | +j 0x3c | |
22 | +k 0x40 | |
23 | +l 0x0E | |
24 | +m 0x37 | |
25 | +n 0x54 | |
26 | +o 0x5c | |
27 | +p 0x40 | |
28 | +q 0x40 | |
29 | +r 0x44 | |
30 | +s 0x5b | |
31 | +t 0x4e | |
32 | +u 0x1c | |
33 | +v 0x1c | |
34 | +w 0x40 | |
35 | +x 0x40 | |
36 | +y 0x40 | |
37 | +z 0x40 | |
38 | +° 0x63 | ... | ... |