<?xml version="1.0" encoding="UTF-8" ?>
<!-- RSS generated by PHPBoost on Wed, 10 Jun 2026 04:17:04 +0200 -->

<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Wiki MSX Village]]></title>
		<atom:link href="https://msxvillage.fr/syndication/rss/wiki/9" rel="self" type="application/rss+xml"/>
		<link>https://msxvillage.fr</link>
		<description><![CDATA[Derniers articles de la catégorie E]]></description>
		<copyright>(C) 2005-2026 PHPBoost</copyright>
		<language>fr</language>
		<generator>PHPBoost</generator>
		
		
		<item>
			<title><![CDATA[ERL]]></title>
			<link>https://msxvillage.fr/wiki/erl</link>
			<guid>https://msxvillage.fr/wiki/erl</guid>
			<description><![CDATA[<fieldset class="formatter-container formatter-fieldset" style=""><legend><strong><span style="font-size: 20px;">ERL</span></strong></legend><div class="formatter-content">Fonction qui renvoie le numéro de la ligne où s'est produite une erreur.<br />
<br />
<table class="formatter-table">
    <tr class="formatter-table-row">
        <th class="formatter-table-head">Syntaxe</th>
    </tr>
    <tr class="formatter-table-row">
        <td class="formatter-table-col"><a href="https://msxvillage.fr/wiki/erl">ERL</a></td>
     </tr>
</table><br />
<br />
<table class="formatter-table">
    <tr class="formatter-table-row">
        <th class="formatter-table-head">Exemple</th>
    </tr>
    <tr class="formatter-table-row">
        <td class="formatter-table-col">10 <a href="https://msxvillage.fr/wiki/on">ON</a> <a href="https://msxvillage.fr/wiki/error">ERROR</a> <a href="https://msxvillage.fr/wiki/goto">GOTO</a> 30<br />
                        20 A$=3<br />
                        30 <a href="https://msxvillage.fr/wiki/print">PRINT</a> "Erreur de code à la ligne ";<a href="https://msxvillage.fr/wiki/erl">ERL</a> : <a href="https://msxvillage.fr/wiki/resume">RESUME</a> 40<br />
                        40 <a href="https://msxvillage.fr/wiki/end">END</a></td>
     </tr>
</table><br />
<br />
<table class="formatter-table">
    <tr class="formatter-table-row">
        <th class="formatter-table-head">Résultat</th>
    </tr>
    <tr class="formatter-table-row">
                      <td class="formatter-table-col">La ligne 20 du programme comportant (volontairement pour l'exemple) une erreur de type, on aura un message qui indiquera à quelle ligne l'erreur s'est produite.</td>
    </tr>
</table><br />
<br />
</div></fieldset>]]></description>
			<pubDate>Wed, 28 Oct 2009 10:23:21 +0100</pubDate>
			
		</item>
		
		<item>
			<title><![CDATA[ERR]]></title>
			<link>https://msxvillage.fr/wiki/err</link>
			<guid>https://msxvillage.fr/wiki/err</guid>
			<description><![CDATA[<fieldset class="formatter-container formatter-fieldset" style=""><legend><strong><span style="font-size: 20px;">ERR</span></strong></legend><div class="formatter-content">Fonction qui renvoie le code d'erreur quand il y en a une.<br />
<br />
<table class="formatter-table">
    <tr class="formatter-table-row">
        <th class="formatter-table-head">Syntaxe</th>
    </tr>
    <tr class="formatter-table-row">
        <td class="formatter-table-col"><a href="https://msxvillage.fr/wiki/err">ERR</a></td>
     </tr>
</table><br />
<br />
<table class="formatter-table">
    <tr class="formatter-table-row">
        <th class="formatter-table-head">Exemple</th>
    </tr>
    <tr class="formatter-table-row">
        <td class="formatter-table-col">10 <a href="https://msxvillage.fr/wiki/on">ON</a> <a href="https://msxvillage.fr/wiki/error">ERROR</a> <a href="https://msxvillage.fr/wiki/goto">GOTO</a> 30<br />
                        20 A$=3<br />
                        30 <a href="https://msxvillage.fr/wiki/print">PRINT</a> "Il y a une erreur de code ";<a href="https://msxvillage.fr/wiki/err">ERR</a>;" ici" : <a href="https://msxvillage.fr/wiki/resume">RESUME</a> 40<br />
                        40 <a href="https://msxvillage.fr/wiki/end">END</a></td>
     </tr>
</table><br />
<br />
<table class="formatter-table">
    <tr class="formatter-table-row">
        <th class="formatter-table-head">Résultat</th>
    </tr>
    <tr class="formatter-table-row">
                      <td class="formatter-table-col">La ligne 20 du programme comportant (volontairement pour l'exemple) une erreur de type, on aura un message qui indiquera le code de l'erreur rencontrée.</td>
    </tr>
</table><br />
<br />
</div></fieldset>]]></description>
			<pubDate>Wed, 28 Oct 2009 10:19:52 +0100</pubDate>
			
		</item>
		
		<item>
			<title><![CDATA[ERASE]]></title>
			<link>https://msxvillage.fr/wiki/erase</link>
			<guid>https://msxvillage.fr/wiki/erase</guid>
			<description><![CDATA[<fieldset class="formatter-container formatter-fieldset" style=""><legend><strong><span style="font-size: 20px;">ERASE</span></strong></legend><div class="formatter-content">Instruction qui permet d'effacer un ou plusieurs tableaux de variables de la mémoire.<br />
<br />
<table class="formatter-table">
    <tr class="formatter-table-row">
        <th class="formatter-table-head">Syntaxe</th>
    </tr>
    <tr class="formatter-table-row">
        <td class="formatter-table-col"><a href="https://msxvillage.fr/wiki/erase">ERASE</a> nom de tableau[, nom de tableau][, nom de tableau][...]</td>
     </tr>
</table><br />
<br />
Les crochets indiquent un contenu optionnel.<br />
<br />
<table class="formatter-table">
    <tr class="formatter-table-row">
        <th class="formatter-table-head">Exemple</th>
    </tr>
    <tr class="formatter-table-row">
        <td class="formatter-table-col">10 <a href="https://msxvillage.fr/wiki/dim">DIM</a> A(3)<br />
                               20 <a href="https://msxvillage.fr/wiki/for">FOR</a> I = 0 <a href="https://msxvillage.fr/wiki/to">TO</a> 3<br />
                               30 A(I)=I+1<br />
                               40 <a href="https://msxvillage.fr/wiki/next">NEXT</a> I<br />
                               50 <a href="https://msxvillage.fr/wiki/erase">ERASE</a> A<br />
                               60 <a href="https://msxvillage.fr/wiki/print">PRINT</a> A(0)<br />
                               70 <a href="https://msxvillage.fr/wiki/end">END</a></td>
             </tr>
</table><br />
<br />
<table class="formatter-table">
    <tr class="formatter-table-row">
        <th class="formatter-table-head">Résultat</th>
    </tr>
    <tr class="formatter-table-row">
        <td class="formatter-table-col">Le programme va créer un tableau et le remplir avec les valeurs 1, 2, 3 et 4. Puis il va l'effacer. Le <a href="https://msxvillage.fr/wiki/print">PRINT</a> de la ligne 60 nous montre bien qu'à la place de la valeur initiale d'A(0) qui aurait dû être 1, on a 0 : le tableau est bien effacé. </td>
    </tr>
</table><br />
<br />
</div></fieldset>]]></description>
			<pubDate>Tue, 27 Oct 2009 08:50:30 +0100</pubDate>
			
		</item>
		
		<item>
			<title><![CDATA[EOF]]></title>
			<link>https://msxvillage.fr/wiki/eof</link>
			<guid>https://msxvillage.fr/wiki/eof</guid>
			<description><![CDATA[<fieldset class="formatter-container formatter-fieldset" style=""><legend><strong><span style="font-size: 20px;">EOF</span></strong></legend><div class="formatter-content">Fonction qui permet de tester la fin d'un fichier.<br />
<br />
<table class="formatter-table">
    <tr class="formatter-table-row">
        <th class="formatter-table-head">Syntaxe</th>
    </tr>
    <tr class="formatter-table-row">
        <td class="formatter-table-col"><a href="https://msxvillage.fr/wiki/eof">EOF</a> (numéro de fichier)</td>
     </tr>
</table><br />
<br />
<table class="formatter-table">
    <tr class="formatter-table-row">
        <th class="formatter-table-head">Exemple</th>
    </tr>
    <tr class="formatter-table-row">
        <td class="formatter-table-col"><a href="https://msxvillage.fr/wiki/if">IF</a> <a href="https://msxvillage.fr/wiki/eof">EOF</a>(1) <a href="https://msxvillage.fr/wiki/then">THEN</a> <a href="https://msxvillage.fr/wiki/close">CLOSE</a>#1</td>
             </tr>
</table><br />
<br />
<table class="formatter-table">
    <tr class="formatter-table-row">
        <th class="formatter-table-head">Résultat</th>
    </tr>
    <tr class="formatter-table-row">
        <td class="formatter-table-col">Cette ligne fermera le fichier numéro 1 si on est arrivé à sa fin.</td>
    </tr>
</table><br />
<br />
</div></fieldset>]]></description>
			<pubDate>Tue, 27 Oct 2009 08:39:03 +0100</pubDate>
			
		</item>
		
		<item>
			<title><![CDATA[ELSE]]></title>
			<link>https://msxvillage.fr/wiki/else</link>
			<guid>https://msxvillage.fr/wiki/else</guid>
			<description><![CDATA[<fieldset class="formatter-container formatter-fieldset" style=""><legend><strong><span style="font-size: 20px;">ELSE</span></strong></legend><div class="formatter-content">Voir <a href="https://msxvillage.fr/wiki/if">IF</a>.<br />
</div></fieldset>]]></description>
			<pubDate>Tue, 20 Oct 2009 13:01:21 +0200</pubDate>
			
		</item>
		
		<item>
			<title><![CDATA[EQV]]></title>
			<link>https://msxvillage.fr/wiki/eqv</link>
			<guid>https://msxvillage.fr/wiki/eqv</guid>
			<description><![CDATA[<fieldset class="formatter-container formatter-fieldset" style=""><legend><strong><span style="font-size: 20px;">EQV</span></strong></legend><div class="formatter-content">Opérateur logique permettant soit de tester l'équivalence de deux conditions, soit d'appliquer des modifications sur la représentation binaire de deux nombres.<br />
<br />
<table class="formatter-table">
    <tr class="formatter-table-row">
        <th class="formatter-table-head">Syntaxe</th>
    </tr>
    <tr class="formatter-table-row">
        <td class="formatter-table-col">Les opérateurs logiques peuvent agir aussi bien sur des conditions que sur des nombres. Pour des conditions, le résultat en MSX-Basic est -1 pour vrai, 0 pour faux. Pour les nombres, le résultat dépend de la représentation binaire de ceux-ci. Les différents résultats peuvent être placés dans des variables.<br />
<br />
                 La syntaxe est la suivante :<br />
<br />
                operateur1 <a href="https://msxvillage.fr/wiki/eqv">EQV</a> operateur2<br />
</td>
    </tr>
</table><br />
<br />
<table class="formatter-table">
    <tr class="formatter-table-row">
        <th class="formatter-table-head">Exemple de la vie courante</th>
    </tr>
    <tr class="formatter-table-row">
        <td class="formatter-table-col">C'est un cas assez difficile à illustrer dans la vie de tous les jours, sans passer par des formules mathématiques, mais il y a moyen de contourner ce petit tracas en utilisant des postulats pour le moins fantaisistes. Imaginons que nous vivons dans un monde où être grand est synonyme d'être bon, et où être petit implique d'être méchant. Un alien arrive, se mêle à la population et tente de se faire passer pour un individu lambda. Le fait qu'être grand équivaut à la bonté ne lui est pas forcément connu... </td>
     </tr>
</table><br />
<br />
<br />
Voici le tableau de vérité de l'opérateur (C1 : condition 1, C2 : condition 2,  0 : faux, 1 : vrai)<br />
<br />
<br />
<table class="formatter-table">
           <tr class="formatter-table-row">
        <td class="formatter-table-col"><p style="text-align: center;">C1</p></td>
                    <td class="formatter-table-col"><p style="text-align: center;">C2</p></td>
                <td class="formatter-table-col"><p style="text-align: center;">C1 EQV C2</p></td>
    </tr>
         <tr class="formatter-table-row">
        <td class="formatter-table-col"><p style="text-align: center;">0</p></td>
        <td class="formatter-table-col"><p style="text-align: center;">0</p></td>
                        <td class="formatter-table-col"><p style="text-align: center;">1</p></td>
    </tr>
            <tr class="formatter-table-row">
        <td class="formatter-table-col"><p style="text-align: center;">0</p></td>
        <td class="formatter-table-col"><p style="text-align: center;">1</p></td>
                        <td class="formatter-table-col"><p style="text-align: center;">0</p></td>
    </tr>
    <tr class="formatter-table-row">
        <td class="formatter-table-col"><p style="text-align: center;">1</p></td>
        <td class="formatter-table-col"><p style="text-align: center;">0</p></td>
                        <td class="formatter-table-col"><p style="text-align: center;">0</p></td>
    </tr>
    <tr class="formatter-table-row">
        <td class="formatter-table-col"><p style="text-align: center;">1</p></td>
        <td class="formatter-table-col"><p style="text-align: center;">1</p></td>
                        <td class="formatter-table-col"><p style="text-align: center;">1</p></td>
    </tr>
 </table><br />
<br />
<table class="formatter-table">
    <tr class="formatter-table-row">
        <th class="formatter-table-head">Exemple</th>
    </tr>
    <tr class="formatter-table-row">
        <td class="formatter-table-col">10 <a href="https://msxvillage.fr/wiki/input">INPUT</a> "Etes-vous grand (O/N)" ;A$<br />
                        20 <a href="https://msxvillage.fr/wiki/input">INPUT</a>"Etes-vous bon (O/N)" ;B$<br />
                        30 <a href="https://msxvillage.fr/wiki/if">IF</a> A$="O" <a href="https://msxvillage.fr/wiki/eqv">EQV</a> B$="O" <a href="https://msxvillage.fr/wiki/then">THEN</a> <a href="https://msxvillage.fr/wiki/print">PRINT</a> "Tout ce qu'il y a de plus normal..." <a href="https://msxvillage.fr/wiki/else">ELSE</a> <a href="https://msxvillage.fr/wiki/print">PRINT</a> "Argh ! Un alien !"<br />
                        40 <a href="https://msxvillage.fr/wiki/end">END</a></td>
     </tr>
</table><br />
<br />
<table class="formatter-table">
    <tr class="formatter-table-row">
        <th class="formatter-table-head">Résultat</th>
    </tr>
    <tr class="formatter-table-row">
        <td class="formatter-table-col">Seul le fait d'être grand et bon ou petit et méchant prouve l'appartenance à notre monde. Les autres cas prouvent que l'alien n'est pas de notre monde (petit et bon, grand et méchant).<br />
</td>
    </tr>
</table><br />
<br />
</div></fieldset>]]></description>
			<pubDate>Sun, 18 Oct 2009 00:17:15 +0200</pubDate>
			
		</item>
		
		<item>
			<title><![CDATA[E]]></title>
			<link>https://msxvillage.fr/wiki/e</link>
			<guid>https://msxvillage.fr/wiki/e</guid>
			<description><![CDATA[Instructions commençant par E]]></description>
			<pubDate>Sat, 17 Oct 2009 23:22:27 +0200</pubDate>
			
		</item>
		
		<item>
			<title><![CDATA[EXP]]></title>
			<link>https://msxvillage.fr/wiki/exp</link>
			<guid>https://msxvillage.fr/wiki/exp</guid>
			<description><![CDATA[<fieldset class="formatter-container formatter-fieldset" style=""><legend><strong><span style="font-size: 20px;">EXP</span></strong></legend><div class="formatter-content">Fonction qui calcule l'exponentielle d'un nombre donné.<br />
<br />
<table class="formatter-table">
    <tr class="formatter-table-row">
        <th class="formatter-table-head">Syntaxe</th>
    </tr>
    <tr class="formatter-table-row">
        <td class="formatter-table-col"><a href="https://msxvillage.fr/wiki/exp">EXP</a>(nombre)</td>
    </tr>
</table><br />
<br />
<table class="formatter-table">
    <tr class="formatter-table-row">
        <th class="formatter-table-head">Exemple</th>
    </tr>
    <tr class="formatter-table-row">
        <td class="formatter-table-col">10 <a href="https://msxvillage.fr/wiki/print">PRINT</a> <a href="https://msxvillage.fr/wiki/exp">EXP</a>(0)<br />
                               20 <a href="https://msxvillage.fr/wiki/print">PRINT</a> <a href="https://msxvillage.fr/wiki/exp">EXP</a>(1)<br />
                               30 <a href="https://msxvillage.fr/wiki/end">END</a></td>
             </tr>
</table><br />
<br />
<table class="formatter-table">
    <tr class="formatter-table-row">
        <th class="formatter-table-head">Résultat</th>
    </tr>
    <tr class="formatter-table-row">
        <td class="formatter-table-col">Le programme m'affichera successivement <a href="https://msxvillage.fr/wiki/exp">EXP</a>(0) soit 1 et <a href="https://msxvillage.fr/wiki/exp">EXP</a>(1) soit 2,7182818284588.</td>
    </tr>
</table><br />
<br />
</div></fieldset>]]></description>
			<pubDate>Fri, 16 Oct 2009 14:51:46 +0200</pubDate>
			
		</item>
		
		<item>
			<title><![CDATA[END]]></title>
			<link>https://msxvillage.fr/wiki/end</link>
			<guid>https://msxvillage.fr/wiki/end</guid>
			<description><![CDATA[<fieldset class="formatter-container formatter-fieldset" style=""><legend><strong><span style="font-size: 20px;">END</span></strong></legend><div class="formatter-content">Instruction utilisée pour terminer un programme.<br />
<br />
<table class="formatter-table">
    <tr class="formatter-table-row">
        <th class="formatter-table-head">Syntaxe</th>
    </tr>
    <tr class="formatter-table-row">
        <td class="formatter-table-col"><a href="https://msxvillage.fr/wiki/end">END</a></td>
    </tr>
</table><br />
<br />
<table class="formatter-table">
    <tr class="formatter-table-row">
        <th class="formatter-table-head">Exemple</th>
    </tr>
    <tr class="formatter-table-row">
        <td class="formatter-table-col">10 <a href="https://msxvillage.fr/wiki/cls">CLS</a><br />
                        20 <a href="https://msxvillage.fr/wiki/print">PRINT</a> "MSX-VILLAGE"<br />
                        30 <a href="https://msxvillage.fr/wiki/end">END</a></td>
     </tr>
</table><br />
<br />
<table class="formatter-table">
    <tr class="formatter-table-row">
        <th class="formatter-table-head">Résultat</th>
    </tr>
    <tr class="formatter-table-row">
        <td class="formatter-table-col">L'écran s'efface et MSX-VILLAGE est inscrit en haut à gauche de l'écran. Le programme se termine après avoir affiché MSX-VILLAGE.</td>
    </tr>
</table><br />
<br />
<h3 class="formatter-title">Remarques :</h3><br />
Un <a href="https://msxvillage.fr/wiki/end">END</a> permet de fermer tous les fichiers ouverts au cours du programme.<br />
<br />
<a href="https://msxvillage.fr/wiki/end">END</a> reste cependant une instruction optionnelle, surtout dans les petits programmes comme celui donné en exemple. Ici, on peut éliminer la ligne 30 sans interférer avec le bon fonctionnement  du programme. Malgré tout si on veut être absolument rigoureux, il convient de ne pas l'oublier, d'autant qu'une ligne contenant un <a href="https://msxvillage.fr/wiki/end">END</a> peut être une porte de sortie intéressante selon le codage employé.<br />
</div></fieldset>]]></description>
			<pubDate>Thu, 15 Oct 2009 08:52:33 +0200</pubDate>
			
		</item>
		
	</channel>
</rss>
