diff --git a/Etape_3.uvoptx b/Etape_3.uvoptx
index 5b7ac40..fb6a59e 100644
--- a/Etape_3.uvoptx
+++ b/Etape_3.uvoptx
@@ -75,7 +75,7 @@
1
0
- 0
+ 1
18
@@ -142,9 +142,57 @@
0
0
+ 65
+ 1
+ 134222852
+ 0
+ 0
+ 0
+ 0
+ 0
+ 1
+ .\FonctionEtape3.asm
+
+ \\Simu_Etape0\FonctionEtape3.asm\65
+
+
+ 1
+ 0
+ 64
+ 1
+ 134222850
+ 0
+ 0
+ 0
+ 0
+ 0
+ 1
+ .\FonctionEtape3.asm
+
+ \\Simu_Etape0\FonctionEtape3.asm\64
+
+
+ 2
+ 0
+ 63
+ 1
+ 134222848
+ 0
+ 0
+ 0
+ 0
+ 0
+ 1
+ .\FonctionEtape3.asm
+
+ \\Simu_Etape0\FonctionEtape3.asm\63
+
+
+ 3
+ 0
204
1
- 134222900
+ 134222764
0
0
0
@@ -156,27 +204,27 @@
\\Simu_Etape0\FonctionEtape2.asm\204
- 1
+ 4
0
51
1
- 134222440
+ 134222816
0
0
0
0
0
1
- .\Principale.asm
+ .\FonctionEtape3.asm
- \\Simu_Etape0\Principale.asm\51
+ \\Simu_Etape0\FonctionEtape3.asm\51
1
0
- 0x40010800
+ 0xE000ED08
0
@@ -198,7 +246,7 @@
0
1
- 0
+ 1
0
0
0
@@ -310,7 +358,7 @@
1
0
- 1
+ 0
18
@@ -382,6 +430,54 @@
0
0
+ 52
+ 1
+ 0
+ 0
+ 0
+ 0
+ 0
+ 0
+ 0
+ .\FonctionEtape3.asm
+
+
+
+
+ 1
+ 0
+ 51
+ 1
+ 0
+ 0
+ 0
+ 0
+ 0
+ 0
+ 0
+ .\FonctionEtape3.asm
+
+
+
+
+ 2
+ 0
+ 50
+ 1
+ 0
+ 0
+ 0
+ 0
+ 0
+ 0
+ 0
+ .\FonctionEtape3.asm
+
+
+
+
+ 3
+ 0
67
1
134222690
@@ -396,7 +492,7 @@
\\Reel_Etape0\Principale.asm\67
- 1
+ 4
0
60
1
@@ -524,7 +620,7 @@
1
4
2
- 0
+ 1
0
0
.\FonctionEtape3.asm
diff --git a/FonctionEtape3.asm b/FonctionEtape3.asm
index c1dab47..59c207b 100644
--- a/FonctionEtape3.asm
+++ b/FonctionEtape3.asm
@@ -12,6 +12,7 @@
;***************IMPORT/EXPORT**********************************************
IMPORT DataSend
+ EXPORT Init_TVI
;**************************************************************************
@@ -29,6 +30,12 @@
AREA MesDonnees, data, readwrite
;**************************************************************************
+Timer_Up_Reg EQU 25
+Timer_Cc_Reg EQU 27
+MAX_Interrupt EQU 256
+TVI_Flash EQU 0x0
+TVI_Pile EQU 0x20000200 ;9 bits de poids faible = 0
+
;**************************************************************************
@@ -37,5 +44,26 @@
AREA moncode, code, readonly
;**************************************************************************
+Init_TVI PROC
+ ;On copie toute la TVI dans la RAM (0x2....)
+ ;On modifie les interruptions Up et CC pour pointer sur nos fonctions rien qu'à nous
+ ;On fait pointer à SCB_VTOR l'adresse de la TVI que nous avons copié
+ LDR R0,=TVI_Flash ;On Lit le premier TVI
+ LDR R1,=TVI_Pile ;Nouvelle TVI
+ MOV R2,#0 ;i
+for_tvi ;for(int i=0;i on sort de la boucle
- ADD R7,R7,#1 ;i++
- CMP R7, #M ;i==M ?
- BNE Etape2 ;if i!=10 -> on continue la boucle (Au final : R7 == M || R6)
+; MOV R7,#0
+;Etape2 ;for(int=0;i on sort de la boucle
+; ADD R7,R7,#1 ;i++
+; CMP R7, #M ;i==M ?
+; BNE Etape2 ;if i!=10 -> on continue la boucle (Au final : R7 == M || R6)
;*******************************************************************************
; ETAPE 1
;*******************************************************************************
diff --git a/RTE/_Simul_/RTE_Components.h b/RTE/_Simul_/RTE_Components.h
index 1cbafa5..e52ddb9 100644
--- a/RTE/_Simul_/RTE_Components.h
+++ b/RTE/_Simul_/RTE_Components.h
@@ -3,7 +3,7 @@
* Auto generated Run-Time-Environment Configuration File
* *** Do not modify ! ***
*
- * Project: 'Etape_2'
+ * Project: 'Etape_3'
* Target: 'Simulé'
*/