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 End
:End
:Repeat K=XX //lettre B
:¦ DelVar KgetKey→K
:¦ If K≠0
:¦ Then
:¦ ¦ A+1→A
:¦ ¦ Output(2,A,"*
:¦ ¦ If A=4
:¦ ¦ Then
:¦ ¦ ¦ Asm(prgmSHUTDOWN
:¦ ¦ ¦ Goto 1
:¦ ¦ End
:¦ End
:End
:Repeat K=XX //lettre C
:¦ DelVar KgetKey→K
:¦ If K≠0
:¦ Then
:¦ ¦ A+1→A
:¦ ¦ Output(2,A,"*
:¦ ¦ If A=4
:¦ ¦ Then
:¦ ¦ ¦ Asm(prgmSHUTDOWN
:¦ ¦ ¦ Goto 1
:¦ ¦ End
:¦ End
:End
:DelVar ARepeat K=XX //lettre D
:¦ getKey→K
:¦ If K=65
:¦ Then
:¦ ¦ Repeat A=4
:¦ ¦ ¦ A+1→A
:¦ ¦ ¦ ClrHome
:¦ ¦ ¦ randBin(5,0
:¦ ¦ ¦ Output(2,1,"****
:¦ ¦ ¦ randBin(5,0
:¦ ¦ End
:¦ End
:End
:Asm(prgmZBATTCHK
:ClrHome
:If X=0
:Then
:¦ Output(1,1,"BATTERIE : MAUVAISE
:¦ Pause
:End
:1:Asm(prgmONBLOCK
:Output(4,5,"HEY BOSS
:For(Y,1,1,1
:¦ For(X,1,63,1
:¦ ¦ Asm(prgmSHIFT
:¦ End
:End
Voilà cela n'est pas grand chose pour l'instant mais donnez vos commentaires, d'éventuelles optimisation, ...etc
PS : pour faire fonctionner ce programme, remplacer les lettres XX pars les differentes touche que vous preferer et il est necessaire d'avoir les programmes SHUTDOWN, SHIFT, ZBATTCHK de BASIC Tools utility disponibles ici http://www.ticalc.org/pub/83plus/asm/pr ... index.html
ainsi que le programme ONBLOCK que vous pouvez creer vous même avec ce tuto ici http://ti83-84.skyrock.com/1724070332-B ... BASIC.html