2 ; Programme qui affiche un menu
4 menu: STRO menuTxt,d ; print(menu)
5 DECI opt,d ; opt = readNumber()
10 BRGT err ; if (opt<1 || opt>5) throws new Error();
13 BR case,x ; switch(opt) { // X = (opt-1)*2
18 cas1: STRO cas1Msg,d ; case 1: ...
20 cas2: STRO cas2Msg,d ; case 2: ...
22 cas3: STRO cas3Msg,d ; case 3: ...
24 cas4: STOP ; case 4: ...
27 menuTxt: .ASCII "******************\n"
28 .ASCII "* M E N U *\n"
29 .ASCII "* [1]-raz *\n"
30 .ASCII "* [2]-ajouter *\n"
31 .ASCII "* [3]-soustraire *\n"
32 .ASCII "* [4]-quitter *\n"
33 .ASCII "******************\n"
34 .ASCII "Votre choix : \x00"
36 errMsg: .ASCII "Erreur: Option invalide\n\x00"
37 cas1Msg: .ASCII "RAZ\n\x00"
38 cas2Msg: .ASCII "...\n\x00"
39 cas3Msg: .ASCII "...\n\x00"