Commit 03b53f28c2ba361b234da51673dfe50e62c87456

Authored by Geoffrey PREUD'HOMME
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 41 .def t2 = r8 ; Jour (3 premiers bits) et Heure (5 derniers bits)
42 42 .def t1 = r9 ; Minutes
43 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 46 ; Vecteurs d'interruptions
47 47  
... ... @@ -111,7 +111,7 @@ debut:
111 111 t1 <- 34
112 112 t0 <- 28
113 113  
114   - afficheur <- 0b00000001
  114 + selaff <- 0b00000001
115 115 etat <- 0
116 116 call afficherHorloge
117 117  
... ... @@ -518,12 +518,12 @@ eteindreChaudiere:
518 518 ; Interruption timer
519 519 timer:
520 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 528 reti
529 529  
... ...