From 4331d4621d5724a0d2b9dcc48064559a914584a7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Alexis=20Laferri=C3=A8re?= Date: Sun, 15 Jun 2014 09:21:07 -0400 Subject: [PATCH] pep8analysis: fix format and encoding of some sample/test programs MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Alexis Laferrière --- contrib/pep8analysis/tests/micro/types.pep | 18 +++++++++--------- contrib/pep8analysis/tests/privat/02-fibo.pep | 2 +- .../pep8analysis/tests/privat/06-calc-non-pur.pep | 14 +++++++------- 3 files changed, 17 insertions(+), 17 deletions(-) diff --git a/contrib/pep8analysis/tests/micro/types.pep b/contrib/pep8analysis/tests/micro/types.pep index a20f7d1..8d69055 100644 --- a/contrib/pep8analysis/tests/micro/types.pep +++ b/contrib/pep8analysis/tests/micro/types.pep @@ -1,9 +1,9 @@ - ADDA 123,d ; use of unitialized data - LDBYTEA 12,d - ADDA 123,d ; use of partially uninitialized data - LDA 12,d - LDBYTEA 12,d - ADDA 123,d ; use of partial word partial byte - STOP - .WORD 1 - .END +ADDA 123,d ; use of unitialized data +LDBYTEA 12,d +ADDA 123,d ; use of partially uninitialized data +LDA 12,d +LDBYTEA 12,d +ADDA 123,d ; use of partial word partial byte +STOP +.WORD 1 +.END diff --git a/contrib/pep8analysis/tests/privat/02-fibo.pep b/contrib/pep8analysis/tests/privat/02-fibo.pep index 28470f7..b9abbfb 100644 --- a/contrib/pep8analysis/tests/privat/02-fibo.pep +++ b/contrib/pep8analysis/tests/privat/02-fibo.pep @@ -1,5 +1,5 @@ ; Trouve et imprime le premier terme de la suite de Fibonacci -; supérieur à 500. +; supérieur à 500. ; Ph. Gabrini septembre 2005 ; STA dernier,d 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 --- 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 -; 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 - 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() @@ -11,7 +11,7 @@ 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; } @@ -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 -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" -subad: SUBA 0,d ; code opération instruction - .END \ No newline at end of file +subad: SUBA 0,d ; code opération instruction + .END -- 1.7.9.5