android & benitlux: use NitObject in clients
[nit.git] / contrib / pep8analysis / tests / terrasa / if_else.pep
1 ; Branchements
2 ; Programme qui affiche si le nombre saisi par l'utilisateur est égal à 0 ou non
3 ;
4 ; Alexandre Terrasa (c) 2013
5
6          DECI    nb,d        ; nb = deci()
7          LDA     nb,d        ; A = nb
8          BREQ    eq0         ; if( A != 0 ) {
9          STRO    strNot0,d   ;    print(strNot0)
10          STOP                ; } else {
11 eq0:     STRO    strEq0,d    ;    print(strEq0)
12          STOP                ; }
13 ; variables
14 nb:      .BLOCK  2           ; on reserve 2 block pour l'entier saisi
15 strNot0: .ASCII  "Different de 0\x00"
16 strEq0:  .ASCII  "Egal a 0\x00"
17          .END