Commit 6591a8e774427075e6a924634a74099935bc4143
1 parent
d0fd7202
selaff directement envoyé dans le Port C
Showing
1 changed file
with
12 additions
and
12 deletions
Show diff stats
principal.txt
... | ... | @@ -110,7 +110,7 @@ debut: |
110 | 110 | t1 <- 34 |
111 | 111 | t0 <- 28 |
112 | 112 | |
113 | - selaff <- 0b00000001 | |
113 | + selaff <- 0b11110111 | |
114 | 114 | etat <- 0 |
115 | 115 | call afficherHorloge |
116 | 116 | |
... | ... | @@ -345,7 +345,7 @@ etatParaTNuitC: |
345 | 345 | |
346 | 346 | etatMenuHorloge: |
347 | 347 | etat <- 21 |
348 | - d3 <- 0xf6 | |
348 | + d3 <- 0x76 ; "HORL" | |
349 | 349 | d2 <- 0x5c |
350 | 350 | d1 <- 0x44 |
351 | 351 | d0 <- 0x0E |
... | ... | @@ -353,7 +353,7 @@ etatMenuHorloge: |
353 | 353 | |
354 | 354 | etatMenuHJour: |
355 | 355 | etat <- 22 |
356 | - d3 <- 0x3c | |
356 | + d3 <- 0x3c ; "JOUR" | |
357 | 357 | d2 <- 0x5c |
358 | 358 | d1 <- 0x1c |
359 | 359 | d0 <- 0x44 |
... | ... | @@ -361,7 +361,7 @@ etatMenuHJour: |
361 | 361 | |
362 | 362 | etatMenuHHeur: |
363 | 363 | etat <- 23 |
364 | - d3 <- 0x76 | |
364 | + d3 <- 0x76 ; "HEUR" | |
365 | 365 | d2 <- 0xcf |
366 | 366 | d1 <- 0x1c |
367 | 367 | d0 <- 0x44 |
... | ... | @@ -369,7 +369,7 @@ etatMenuHHeur: |
369 | 369 | |
370 | 370 | etatMenuHMinu: |
371 | 371 | etat <- 24 |
372 | - d3 <- 0x37 | |
372 | + d3 <- 0x37 ; "MINU" | |
373 | 373 | d2 <- 0x04 |
374 | 374 | d1 <- 0x54 |
375 | 375 | d0 <- 0x1c |
... | ... | @@ -522,12 +522,12 @@ eteindreChaudiere: |
522 | 522 | ; Interruption timer |
523 | 523 | timer: |
524 | 524 | ; Affiche le digit suivant sur l'afficheur 7seg |
525 | - lsl selaff | |
526 | - si selaff > 0b00001000 alors selaff <- 0b00000001 | |
527 | - PORTC@IO <- 0xff - selaff | |
528 | - si selaff = 0b00000001 alors PORTA@IO <- d0 | |
529 | - si selaff = 0b00000010 alors PORTA@IO <- d1 | |
530 | - si selaff = 0b00000100 alors PORTA@IO <- d2 | |
531 | - si selaff = 0b00001000 alors PORTA@IO <- d3 | |
525 | + lsr selaff | |
526 | + si selaff < 0b00001111 alors selaff <- 0b11110111 | |
527 | + PORTC@IO <- selaff | |
528 | + si selaff = 0b11110111 alors PORTA@IO <- d3 | |
529 | + si selaff = 0b01111011 alors PORTA@IO <- d2 | |
530 | + si selaff = 0b00111101 alors PORTA@IO <- d1 | |
531 | + si selaff = 0b00011110 alors PORTA@IO <- d0 | |
532 | 532 | reti |
533 | 533 | ... | ... |