<?xml version="1.0" encoding="UTF-8" ?>
<!-- RSS generated by PHPBoost on Sun, 05 Apr 2026 03:50:45 +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/10" rel="self" type="application/rss+xml"/>
		<link>https://www.msxvillage.fr</link>
		<description><![CDATA[Derniers articles de la catégorie F]]></description>
		<copyright>(C) 2005-2026 PHPBoost</copyright>
		<language>fr</language>
		<generator>PHPBoost</generator>
		
		
		<item>
			<title><![CDATA[FN]]></title>
			<link>https://msxvillage.fr/wiki/fn</link>
			<guid>https://msxvillage.fr/wiki/fn</guid>
			<description><![CDATA[<fieldset class="formatter-container formatter-fieldset" style=""><legend><strong><span style="font-size: 20px;">FN</span></strong></legend><div class="formatter-content">Fonction qui permet l'exécution d'une fonction créée par l'utilisateur.<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/fn">FN</a> nom de la fonction [(variable)]</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/deffn">DEFFN</a> A(X) = X^2 + 2<br />
                               20 <a href="https://msxvillage.fr/wiki/print">PRINT</a> <a href="https://msxvillage.fr/wiki/fn">FN</a>A(0)<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 va afficher le résultat de l'application de la fonction A au nombre 0, soit ici 2. </td>
    </tr>
</table><br />
<br />
</div></fieldset>]]></description>
			<pubDate>Tue, 27 Oct 2009 09:56:25 +0100</pubDate>
			
		</item>
		
		<item>
			<title><![CDATA[FRE]]></title>
			<link>https://msxvillage.fr/wiki/fre</link>
			<guid>https://msxvillage.fr/wiki/fre</guid>
			<description><![CDATA[<fieldset class="formatter-container formatter-fieldset" style=""><legend><strong><span style="font-size: 20px;">FRE</span></strong></legend><div class="formatter-content">Fonction qui permet de vérifier la place libre en RAM.<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/fre">FRE</a> (variable)</td>
     </tr>
</table><br />
<br />
Si la variable est de type chaîne, la fonction renvoie l'espace disponible alloué pour les chaînes de caractères (voir <a href="https://msxvillage.fr/wiki/clear">CLEAR</a>).<br />
<br />
Sinon, elle renvoie l'espace de RAM disponible.<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/print">PRINT</a> <a href="https://msxvillage.fr/wiki/fre">FRE</a> (0)</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 de programme va renvoyer la quantité de RAM encore disponible. </td>
    </tr>
</table><br />
<br />
</div></fieldset>]]></description>
			<pubDate>Tue, 27 Oct 2009 09:45:40 +0100</pubDate>
			
		</item>
		
		<item>
			<title><![CDATA[FOR]]></title>
			<link>https://msxvillage.fr/wiki/for</link>
			<guid>https://msxvillage.fr/wiki/for</guid>
			<description><![CDATA[<fieldset class="formatter-container formatter-fieldset" style=""><legend><strong><span style="font-size: 20px;">FOR...TO...STEP...NEXT</span></strong></legend><div class="formatter-content">Instructions qui permettent de réaliser une boucle à l'intérieur d'un programme (répétition d'une suite d'instructions).<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/for">FOR</a> variable=nombre1 <a href="https://msxvillage.fr/wiki/to">TO</a> nombre2 [<a href="https://msxvillage.fr/wiki/step">STEP</a> nombre3]<br />
                        instructions<br />
                        instructions...<br />
                        <a href="https://msxvillage.fr/wiki/next">NEXT</a> [variable][,variable2...]</td>
    </tr>
</table><br />
<br />
Les crochets indiquent un contenu optionnel.<br />
<br />
Avec cette syntaxe, la boucle sera répétée nombre2-nombre+1 fois toutes les nombre3 fois. Par défaut, si <a href="https://msxvillage.fr/wiki/step">STEP</a> est omis, nombre3 est égal à 1.<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">Simulons un remplissage de grille d'Euromillions, via un tableau de 7 chiffres :<br />
<br />
                       10 <a href="https://msxvillage.fr/wiki/print">PRINT</a> "EUROMILLIONS : chiffres entre 1 et 50, etoiles entre 1 et 9"<br />
                       20 <a href="https://msxvillage.fr/wiki/dim">DIM</a> A(7)<br />
                       30 <a href="https://msxvillage.fr/wiki/for">FOR</a> I=1 <a href="https://msxvillage.fr/wiki/to">TO</a> 5<br />
                       40 <a href="https://msxvillage.fr/wiki/print">PRINT</a> "Entrez le chiffre ";I : <a href="https://msxvillage.fr/wiki/input">INPUT</a> A(I)<br />
                       50 <a href="https://msxvillage.fr/wiki/if">IF</a> A(I)<1 <a href="https://msxvillage.fr/wiki/or">OR</a> A(I)>50 <a href="https://msxvillage.fr/wiki/then">THEN</a> <a href="https://msxvillage.fr/wiki/goto">GOTO</a> 40<br />
                       60 <a href="https://msxvillage.fr/wiki/next">NEXT</a> I<br />
                       70 <a href="https://msxvillage.fr/wiki/for">FOR</a> J=6 <a href="https://msxvillage.fr/wiki/to">TO</a> 7<br />
                       80 <a href="https://msxvillage.fr/wiki/print">PRINT</a> "Entrez l'etoile ";J-5 : <a href="https://msxvillage.fr/wiki/input">INPUT</a> A(J)<br />
                       90 <a href="https://msxvillage.fr/wiki/if">IF</a> A(J)<1 <a href="https://msxvillage.fr/wiki/or">OR</a> A(J)>9 <a href="https://msxvillage.fr/wiki/then">THEN</a> <a href="https://msxvillage.fr/wiki/goto">GOTO</a> 80<br />
                       100 <a href="https://msxvillage.fr/wiki/next">NEXT</a> J<br />
                       110 <a href="https://msxvillage.fr/wiki/end">END</a></td>
             </tr>
</table><br />
<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">On aura au final un tableau qui contiendra les chiffres entrés au clavier. La première boucle sert à remplir le tableau pour les chiffres, la deuxième pour les 2 nombres "étoiles".</td>
             </tr>
</table><br />
<br />
<h3 class="formatter-title">Remarques :</h3><br />
Attention lors de l'utilisation de boucles imbriquées (boucle à l'intérieur d'une boucle) : le premier <a href="https://msxvillage.fr/wiki/next">NEXT</a> rencontré doit correspondre au dernier <a href="https://msxvillage.fr/wiki/for">FOR</a> déclaré.<br />
A chaque <a href="https://msxvillage.fr/wiki/for">FOR</a> doit correspondre son <a href="https://msxvillage.fr/wiki/next">NEXT</a> !<br />
<br />
Le nom de variable peut être omis pour le <a href="https://msxvillage.fr/wiki/next">NEXT</a> dans certains cas, mais pour des raisons de lisibilité, il est conseillé de le laisser figurer.<br />
<br />
De même, il est possible de faire figurer 2 variables, séparées par une virgule, dans le <a href="https://msxvillage.fr/wiki/next">NEXT</a>. Comme dit précédemment, le premier nom de variable doit correspondre au dernier <a href="https://msxvillage.fr/wiki/for">FOR</a> du programme.<br />
<br />
<a href="https://msxvillage.fr/wiki/for">FOR</a>  est aussi employé dans la gestion de fichiers séquentiels, dans un cadre totalement différent de celui des boucles (voir <a href="https://msxvillage.fr/wiki/open">OPEN</a>).<br />
</div></fieldset>]]></description>
			<pubDate>Wed, 21 Oct 2009 12:38:39 +0200</pubDate>
			
		</item>
		
		<item>
			<title><![CDATA[F]]></title>
			<link>https://msxvillage.fr/wiki/f</link>
			<guid>https://msxvillage.fr/wiki/f</guid>
			<description><![CDATA[Instructions commençant par F]]></description>
			<pubDate>Sat, 17 Oct 2009 23:22:40 +0200</pubDate>
			
		</item>
		
		<item>
			<title><![CDATA[FIX]]></title>
			<link>https://msxvillage.fr/wiki/fix</link>
			<guid>https://msxvillage.fr/wiki/fix</guid>
			<description><![CDATA[<fieldset class="formatter-container formatter-fieldset" style=""><legend><strong><span style="font-size: 20px;">FIX</span></strong></legend><div class="formatter-content">Fonction qui donne la partie entière d'un nombre (par défaut).<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/fix">FIX</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 PI=3.14159<br />
                        20 <a href="https://msxvillage.fr/wiki/print">PRINT</a> <a href="https://msxvillage.fr/wiki/fix">FIX</a>(PI)<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">Sur l'écran du MSX, vous verrez la partie entière de PI, soit 3, s'afficher à l'écran.</td>
             </tr>
</table><br />
<br />
</div></fieldset>]]></description>
			<pubDate>Thu, 15 Oct 2009 14:12:05 +0200</pubDate>
			
		</item>
		
		<item>
			<title><![CDATA[FILES]]></title>
			<link>https://msxvillage.fr/wiki/files</link>
			<guid>https://msxvillage.fr/wiki/files</guid>
			<description><![CDATA[<fieldset class="formatter-container formatter-fieldset" style=""><legend><strong><span style="font-size: 20px;">FILES</span></strong></legend><div class="formatter-content">Commande qui affiche une liste de fichiers se trouvant sur un disque.<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/files">FILES</a>["nom de lecteur : [nom de fichier]"]</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">Pour afficher le contenu d'une disquette dans le lecteur A :<br />
                               <a href="https://msxvillage.fr/wiki/files">FILES</a><br />
                               Pour afficher les fichiers d'extension .BAS situés sur le lecteur B :<br />
                               <a href="https://msxvillage.fr/wiki/files">FILES</a>"B :*.BAS"</td>
             </tr>
</table><br />
<br />
<h3 class="formatter-title">Remarque :</h3><br />
Cette commande n'est disponible qu'en Disk-Basic. Il est inutile de la tester sur un MSX1 dépourvu de lecteur de disquettes !<br />
</div></fieldset>]]></description>
			<pubDate>Thu, 15 Oct 2009 14:05:20 +0200</pubDate>
			
		</item>
		
	</channel>
</rss>
