nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
pep8analysis: fix format and encoding of some sample/test programs
[nit.git]
/
contrib
/
pep8analysis
/
tests
/
privat
/
06-calc-non-pur.pep
diff --git
a/contrib/pep8analysis/tests/privat/06-calc-non-pur.pep
b/contrib/pep8analysis/tests/privat/06-calc-non-pur.pep
index
8ab5a39
..
0d5c8a9
100644
(file)
--- a/
contrib/pep8analysis/tests/privat/06-calc-non-pur.pep
+++ b/
contrib/pep8analysis/tests/privat/06-calc-non-pur.pep
@@
-1,8
+1,8
@@
; Semaine 6
; Semaine 6
-; Programme non pur qui fait des opérations multiples
+; Programme non pur qui fait des opérations multiples
; Jean Privat (C) 2010
DECI num,d
; Jean Privat (C) 2010
DECI num,d
- LDX num,d ; X = nombre opération = getNombre();
+ LDX num,d ; X = nombre opération = getNombre();
CHARI op,d
LDA 0,i
LDBYTEA op,d ; A = op = getChar()
CHARI op,d
LDA 0,i
LDBYTEA op,d ; A = op = getChar()
@@
-11,7
+11,7
@@
CPA '-',i
BRNE error ; else if (A == '-') {
LDBYTEA subad,d
CPA '-',i
BRNE error ; else if (A == '-') {
LDBYTEA subad,d
- STBYTEA instr,d ; remplace l'instruction à instr par SUBA
+ STBYTEA instr,d ; remplace l'instruction à instr par SUBA
BR loop ; } else {
error: STRO errMsg,d ; print error;
STOP ; exit; }
BR loop ; } else {
error: STRO errMsg,d ; print error;
STOP ; exit; }
@@
-26,8
+26,8
@@
instr: ADDA num,d ; num = getInt() + getInt() // ou - si remplassag
CHARO '\n',i ; print(num, "\n")
BR loop ; } // fin while
fin: STOP
CHARO '\n',i ; print(num, "\n")
BR loop ; } // fin while
fin: STOP
-op: .BLOCK 1 ; #1c symbole de l'opération
-num: .BLOCK 2 ; nombre entrée, calculé et affiché
+op: .BLOCK 1 ; #1c symbole de l'opération
+num: .BLOCK 2 ; nombre entrée, calculé et affiché
errMsg: .ASCII "Attendu '+' ou '-'\x00"
errMsg: .ASCII "Attendu '+' ou '-'\x00"
-subad: SUBA 0,d ; code opération instruction
- .END
\ No newline at end of file
+subad: SUBA 0,d ; code opération instruction
+ .END