Input loop: Difference between revisions

Content added Content deleted
(Add task to ARM assembly Raspberry pi)
Line 154: Line 154:
.data
.data
szMessErreur: .asciz "Erreur ouverture fichier input.\n"
szMessErreur: .asciz "Erreur ouverture fichier input.\n"
szMessErreur4: .asciz "Erreur création fichier output.\n"
szMessErreur1: .asciz "Erreur fermeture fichier.\n"
szMessErreur1: .asciz "Erreur fermeture fichier.\n"
szMessErreur2: .asciz "Erreur lecture fichier.\n"
szMessErreur2: .asciz "Erreur lecture fichier.\n"
szMessErreur3: .asciz "Erreur d'écriture dans fichier de sortie.\n"
szCarriageReturn: .asciz "\n"
szCarriageReturn: .asciz "\n"
szMessEndLine: .asciz "<<<<<< End line.\n"
szMessEndLine: .asciz "<<<<<< End line.\n"
Line 259: Line 257:


100: @ end program
100: @ end program
mov r7, #EXIT
pop {fp,lr} /* restaur des 2 registres */
mov r7, #EXIT /* appel fonction systeme pour terminer */
svc 0
svc 0
iAdrszNameFileInput: .int szNameFileInput
iAdrszNameFileInput: .int szNameFileInput
Line 291: Line 288:


</pre>
</pre>

=={{header|AutoHotkey}}==
=={{header|AutoHotkey}}==
This example reads the text of a source file line by line
This example reads the text of a source file line by line