Commit 03b53f28c2ba361b234da51673dfe50e62c87456
1 parent
2a7e746a
Nom différent pour afficheur le registre et le tableau
Showing
1 changed file
with
9 additions
and
9 deletions
Show diff stats
principal.txt
@@ -41,7 +41,7 @@ | @@ -41,7 +41,7 @@ | ||
41 | .def t2 = r8 ; Jour (3 premiers bits) et Heure (5 derniers bits) | 41 | .def t2 = r8 ; Jour (3 premiers bits) et Heure (5 derniers bits) |
42 | .def t1 = r9 ; Minutes | 42 | .def t1 = r9 ; Minutes |
43 | .def t0 = r10 ; Secondes / 2 | 43 | .def t0 = r10 ; Secondes / 2 |
44 | -.def afficheur = r11 ; Digit en cours d'affichage | 44 | +.def selaff = r11 ; Digit en cours d'affichage |
45 | 45 | ||
46 | ; Vecteurs d'interruptions | 46 | ; Vecteurs d'interruptions |
47 | 47 | ||
@@ -111,7 +111,7 @@ debut: | @@ -111,7 +111,7 @@ debut: | ||
111 | t1 <- 34 | 111 | t1 <- 34 |
112 | t0 <- 28 | 112 | t0 <- 28 |
113 | 113 | ||
114 | - afficheur <- 0b00000001 | 114 | + selaff <- 0b00000001 |
115 | etat <- 0 | 115 | etat <- 0 |
116 | call afficherHorloge | 116 | call afficherHorloge |
117 | 117 | ||
@@ -518,12 +518,12 @@ eteindreChaudiere: | @@ -518,12 +518,12 @@ eteindreChaudiere: | ||
518 | ; Interruption timer | 518 | ; Interruption timer |
519 | timer: | 519 | timer: |
520 | ; Affiche le digit suivant sur l'afficheur 7seg | 520 | ; Affiche le digit suivant sur l'afficheur 7seg |
521 | - lsl afficheur | ||
522 | - si afficheur > 0b00001000 alors selafficheur <- 0b00000001 | ||
523 | - PORTC@IO <- 0xff - afficheur | ||
524 | - si afficheur = 0b00000001 alors PORTA@IO <- d0 | ||
525 | - si afficheur = 0b00000010 alors PORTA@IO <- d1 | ||
526 | - si afficheur = 0b00000100 alors PORTA@IO <- d2 | ||
527 | - si afficheur = 0b00001000 alors PORTA@IO <- d3 | 521 | + lsl selaff |
522 | + si selaff > 0b00001000 alors selaff <- 0b00000001 | ||
523 | + PORTC@IO <- 0xff - selaff | ||
524 | + si selaff = 0b00000001 alors PORTA@IO <- d0 | ||
525 | + si selaff = 0b00000010 alors PORTA@IO <- d1 | ||
526 | + si selaff = 0b00000100 alors PORTA@IO <- d2 | ||
527 | + si selaff = 0b00001000 alors PORTA@IO <- d3 | ||
528 | reti | 528 | reti |
529 | 529 |