<?xml version="1.0" encoding="UTF-8" ?>
<!-- RSS generated by PHPBoost on Thu, 16 Apr 2026 04:22:06 +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/20" rel="self" type="application/rss+xml"/>
		<link>https://msxvillage.fr</link>
		<description><![CDATA[Derniers articles de la catégorie R]]></description>
		<copyright>(C) 2005-2026 PHPBoost</copyright>
		<language>fr</language>
		<generator>PHPBoost</generator>
		
		
		<item>
			<title><![CDATA[RESUME]]></title>
			<link>https://msxvillage.fr/wiki/resume</link>
			<guid>https://msxvillage.fr/wiki/resume</guid>
			<description><![CDATA[<fieldset class="formatter-container formatter-fieldset" style=""><legend><strong><span style="font-size: 20px;">RESUME</span></strong></legend><div class="formatter-content">Instruction qui permet de reprendre le programme à une ligne après un message d'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/resume">RESUME</a> numéro de ligne</td>
     </tr>
</table><br />
<br />
Voir <a href="https://msxvillage.fr/wiki/error">ERROR</a>.<br />
<br />
</div></fieldset><br />
<br />
<br />]]></description>
			<pubDate>Wed, 28 Oct 2009 10:01:22 +0100</pubDate>
			
		</item>
		
		<item>
			<title><![CDATA[RENUM]]></title>
			<link>https://msxvillage.fr/wiki/renum</link>
			<guid>https://msxvillage.fr/wiki/renum</guid>
			<description><![CDATA[<fieldset class="formatter-container formatter-fieldset" style=""><legend><strong><span style="font-size: 20px;">RENUM</span></strong></legend><div class="formatter-content">Commande qui sert à renuméroter les lignes d'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/renum">RENUM</a> [nouveau numéro de ligne][, ancien numéro de ligne][, intervalle entre les numéros de ligne]</td>
     </tr>
</table><br />
<br />
Les crochets indiquent un contenu optionnel.<br />
<br />
Si les options sont omises, tout le programme sera renuméroté de 10 en 10 à compter de la première ligne du programme.<br />
<br />
Le nouveau numéro de ligne sert à indiquer la première ligne du programme modifié. L'ancien numéro est celui de la première ligne du programme à être traitée par le <a href="https://msxvillage.fr/wiki/renum">RENUM</a>. Enfin l'intervalle sert à définir l'écart entre les lignes.<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/renum">RENUM</a> 10,0,5</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 listing du programme sera modifié : la première ligne qui était la ligne numéro 0 devient la ligne 10, et les lignes suivantes seront séparées de 5. Par conséquent, la ligne suivante sera 5, puis 10, et ainsi de suite.</td>
    </tr>
</table><br />
<br />
</div></fieldset>]]></description>
			<pubDate>Mon, 26 Oct 2009 09:03:00 +0100</pubDate>
			
		</item>
		
		<item>
			<title><![CDATA[RND]]></title>
			<link>https://msxvillage.fr/wiki/rnd</link>
			<guid>https://msxvillage.fr/wiki/rnd</guid>
			<description><![CDATA[<fieldset class="formatter-container formatter-fieldset" style=""><legend><strong><span style="font-size: 20px;">RND</span></strong></legend><div class="formatter-content">Fonction qui permet de renvoyer un nombre aléatoire situé entre 0 et 1.<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/rnd">RND</a>(nombre)</td>
     </tr>
</table><br />
<br />
Suivant le nombre entré on peut avoir un nombre aléatoire différent :<br />
nombre positif : donne le nombre aléatoire suivant de la série.<br />
nombre négatif : donne le premier nombre de la série de nombres aléatoires.<br />
0 : donne le dernier nombre aléatoire de la série.<br />
<br />
Pour avoir une véritable série de nombres aléatoires qui change à chaque tirage, il convient d'utiliser  -<a href="https://msxvillage.fr/wiki/time">TIME</a> comme paramètre de la fonction, vu que cette variable change perpétuellement de valeur, et que le signe négatif induit le début d'une suite de nombres aléatoires.<br />
<br />
Pour avoir un nombre aléatoire dans un intervalle autre que entre 0 et 1, il suffit de multiplier le résultat de la fonction par la borne maximale de l'intervalle qu'on utilise, et d'ajouter la borne minimale de l'intervalle au résultat. Par exemple pour un tirage du Loto, il faut multiplier par 49 et ajouter 1, vu que les chiffres du Loto vont de 1 à 49. Dans cet exemple, il faut en plus prendre la partie entière du tirage aléatoire, car ce sont des entiers qu'on cherche à obtenir.<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">Simulation de tirage du loto :<br />
<br />
                               10 <a href="https://msxvillage.fr/wiki/for">FOR</a> I=1 <a href="https://msxvillage.fr/wiki/to">TO</a> 7<br />
                               20 <a href="https://msxvillage.fr/wiki/print">PRINT</a> <a href="https://msxvillage.fr/wiki/int">INT</a>(<a href="https://msxvillage.fr/wiki/rnd">RND</a>(-<a href="https://msxvillage.fr/wiki/time">TIME</a>)*49)+1 ;<br />
                               30 <a href="https://msxvillage.fr/wiki/next">NEXT</a> I<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">Le programme affichera une série de 7 nombres aléatoires, situés entre 1 et 49.</td>
    </tr>
</table><br />
<br />
</div></fieldset>]]></description>
			<pubDate>Fri, 23 Oct 2009 09:56:57 +0200</pubDate>
			
		</item>
		
		<item>
			<title><![CDATA[RESTORE]]></title>
			<link>https://msxvillage.fr/wiki/restore</link>
			<guid>https://msxvillage.fr/wiki/restore</guid>
			<description><![CDATA[<fieldset class="formatter-container formatter-fieldset" style=""><legend><strong><span style="font-size: 20px;">RESTORE</span></strong></legend><div class="formatter-content">Instruction qui permet de relire une liste de valeurs déclarées par un <a href="https://msxvillage.fr/wiki/data">DATA</a>.<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/restore">RESTORE</a> [numéro de ligne]</td>
     </tr>
</table><br />
<br />
Les crochets indiquent un contenu optionnel.<br />
<br />
Si le numéro de ligne est omis, ce sera la première ligne de <a href="https://msxvillage.fr/wiki/data">DATA</a> du programme qui sera relue.<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/read">READ</a> A,B,C<br />
                               20 <a href="https://msxvillage.fr/wiki/restore">RESTORE</a><br />
                               30 <a href="https://msxvillage.fr/wiki/read">READ</a> D,E,F<br />
                               40 <a href="https://msxvillage.fr/wiki/print">PRINT</a> A ;B ;C ;D ;E ;F<br />
                               50 <a href="https://msxvillage.fr/wiki/data">DATA</a> 1,2,3<br />
                               60 <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 affichera 1 2 3 1 2 3. Le trio A, B, C sera une première fois lu sur la ligne 50, puis le <a href="https://msxvillage.fr/wiki/restore">RESTORE</a> remettra la « tête de lecture » au début de la ligne 50 pour les variables D, E, F.</td>
    </tr>
</table><br />
<br />
</div></fieldset>]]></description>
			<pubDate>Fri, 23 Oct 2009 09:22:42 +0200</pubDate>
			
		</item>
		
		<item>
			<title><![CDATA[READ]]></title>
			<link>https://msxvillage.fr/wiki/read</link>
			<guid>https://msxvillage.fr/wiki/read</guid>
			<description><![CDATA[<fieldset class="formatter-container formatter-fieldset" style=""><legend><strong><span style="font-size: 20px;">READ</span></strong></legend><div class="formatter-content">Instruction qui permet de lire une liste de valeurs déclarées par une instruction <a href="https://msxvillage.fr/wiki/data">DATA</a>.<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/read">READ</a> variable[,variable][,variable][...]</td>
     </tr>
</table><br />
<br />
Les crochets indiquent un contenu optionnel.<br />
<br />
Les variables lues peuvent être des nombres ou des chaînes.<br />
<br />
Il doit y avoir au minimum autant de valeurs déclarées par <a href="https://msxvillage.fr/wiki/data">DATA</a> que de variables déclarées par <a href="https://msxvillage.fr/wiki/read">READ</a>.<br />
<br />
Les différentes valeurs qui suivent <a href="https://msxvillage.fr/wiki/data">DATA</a> sont lues à la suite les unes des autres, de manière séquentielle.<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/for">FOR</a> I=1 <a href="https://msxvillage.fr/wiki/to">TO</a> 3<br />
                               20 <a href="https://msxvillage.fr/wiki/read">READ</a> A<br />
                               30 <a href="https://msxvillage.fr/wiki/print">PRINT</a> A<br />
                               40 <a href="https://msxvillage.fr/wiki/next">NEXT</a> I<br />
                               50 <a href="https://msxvillage.fr/wiki/data">DATA</a> 12,0,8<br />
                               60 <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 affichera à la suite les différents nombres contenus dans la ligne 50 du programme.</td>
    </tr>
</table><br />
<br />
<h3 class="formatter-title">Remarque :</h3><br />
Une suite de données utilisées avec <a href="https://msxvillage.fr/wiki/data">DATA</a> peut être relue avec l'instruction <a href="https://msxvillage.fr/wiki/restore">RESTORE</a>. Il suffit d'indiquer le numéro de ligne de <a href="https://msxvillage.fr/wiki/data">DATA</a> à relire, ou la lecture repart à la première ligne de <a href="https://msxvillage.fr/wiki/data">DATA</a> rencontrée.<br />
<br />
</div></fieldset>]]></description>
			<pubDate>Fri, 23 Oct 2009 09:07:22 +0200</pubDate>
			
		</item>
		
		<item>
			<title><![CDATA[RIGHT$]]></title>
			<link>https://msxvillage.fr/wiki/right</link>
			<guid>https://msxvillage.fr/wiki/right</guid>
			<description><![CDATA[<fieldset class="formatter-container formatter-fieldset" style=""><legend><strong><span style="font-size: 20px;">RIGHT$</span></strong></legend><div class="formatter-content">Fonction qui renvoie une portion de chaîne constituée de caractères situés à la droite de celle-ci.<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/right">RIGHT$</a> (« chaîne de caractères », nombre de caractères)</td>
     </tr>
</table><br />
<br />
La chaîne de caractères peut être remplacé par une variable de même type (ex : <a href="https://msxvillage.fr/wiki/right">RIGHT$</a>(A$, 5) ).<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$= « MSX VILLAGE »<br />
                               20 <a href="https://msxvillage.fr/wiki/print">PRINT</a> <a href="https://msxvillage.fr/wiki/right">RIGHT$</a>(A$,7)<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 affichera : « VILLAGE », soit les 7 derniers caractères de la chaîne A$.</td>
    </tr>
</table><br />
<br />
<h3 class="formatter-title">Remarque :</h3><br />
Ne pas oublier que les espaces dans les chaînes sont comptés comme caractères.<br />
</div></fieldset>]]></description>
			<pubDate>Thu, 22 Oct 2009 15:48:03 +0200</pubDate>
			
		</item>
		
		<item>
			<title><![CDATA[RETURN]]></title>
			<link>https://msxvillage.fr/wiki/return</link>
			<guid>https://msxvillage.fr/wiki/return</guid>
			<description><![CDATA[<fieldset class="formatter-container formatter-fieldset" style=""><legend><strong><span style="font-size: 20px;">RETURN</span></strong></legend><div class="formatter-content">Instruction qui permet de retourner au programme principal après exécution d'un sous-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/return">RETURN</a></td>
     </tr>
</table><br />
<br />
Un <a href="https://msxvillage.fr/wiki/return">RETURN</a> renverra à la ligne suivant le dernier <a href="https://msxvillage.fr/wiki/gosub">GOSUB</a> rencontré.<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> « debut du programme »<br />
                               20 <a href="https://msxvillage.fr/wiki/gosub">GOSUB</a> 40<br />
                               30 <a href="https://msxvillage.fr/wiki/print">PRINT</a> « fin du programme » : <a href="https://msxvillage.fr/wiki/end">END</a><br />
                               40 <a href="https://msxvillage.fr/wiki/print">PRINT</a> « sous programme lancé par GOSUB »<br />
                               50 <a href="https://msxvillage.fr/wiki/return">RETURN</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 affichera successivement « début du programme » puis « sous programme lancé par GOSUB » et enfin « fin du programme ». Le <a href="https://msxvillage.fr/wiki/return">RETURN</a> de la ligne 50 renvoie immédiatement à la ligne 30.</td>
    </tr>
</table><br />
<br />
</div></fieldset>]]></description>
			<pubDate>Thu, 22 Oct 2009 13:45:06 +0200</pubDate>
			
		</item>
		
		<item>
			<title><![CDATA[R]]></title>
			<link>https://msxvillage.fr/wiki/r</link>
			<guid>https://msxvillage.fr/wiki/r</guid>
			<description><![CDATA[Liste des instructions commençant par R :]]></description>
			<pubDate>Tue, 20 Oct 2009 10:59:37 +0200</pubDate>
			
		</item>
		
		<item>
			<title><![CDATA[REM]]></title>
			<link>https://msxvillage.fr/wiki/rem</link>
			<guid>https://msxvillage.fr/wiki/rem</guid>
			<description><![CDATA[<fieldset class="formatter-container formatter-fieldset" style=""><legend><strong><span style="font-size: 20px;">REM</span></strong></legend><div class="formatter-content">Instruction qui permet d'ajouter un commentaire à 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/rem">REM</a>[commentaire]</td>
    </tr>
</table><br />
Les crochets marquent le contenu optionnel de l'instruction.<br />
<br />
<table class="formatter-table">
    <tr class="formatter-table-row">
        <th class="formatter-table-head">Exemples</th>
    </tr>
    <tr class="formatter-table-row">
        <td class="formatter-table-col">10 <a href="https://msxvillage.fr/wiki/rem">REM</a> Début du programme<br />
                               20 <a href="https://msxvillage.fr/wiki/print">PRINT</a> "Coucou les MSX-Villageois !"<br />
                               30 <a href="https://msxvillage.fr/wiki/rem">REM</a> Fin du programme<br />
               40 <a href="https://msxvillage.fr/wiki/end">END</a></td>
             </tr>
</table><br />
<h3 class="formatter-title">Remarques :</h3><br />
L'instruction <a href="https://msxvillage.fr/wiki/rem">REM</a> ne modifie en rien l'exécution du programme et est tout à fait optionnelle, même si son utilité et reconnue dans les longs programmes afin de pouvoir « marquer » les différents sous-programmes le constituant.<br />
<br />
En MSX-Basic, <a href="https://msxvillage.fr/wiki/rem">REM</a> peut être remplacé par l'apostrophe : '<br />
<br />
</div></fieldset>]]></description>
			<pubDate>Thu, 15 Oct 2009 12:40:06 +0200</pubDate>
			
		</item>
		
		<item>
			<title><![CDATA[RUN]]></title>
			<link>https://msxvillage.fr/wiki/run</link>
			<guid>https://msxvillage.fr/wiki/run</guid>
			<description><![CDATA[<fieldset class="formatter-container formatter-fieldset" style=""><legend><strong><span style="font-size: 20px;">RUN</span></strong></legend><div class="formatter-content">Commande qui permet d'exécuter 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/run">RUN</a>[numéro de ligne]<br />
                               <a href="https://msxvillage.fr/wiki/run">RUN</a>"[lecteur :] nom du programme"[,R]</td>
    </tr>
</table><br />
Les crochets marquent le contenu optionnel de la commande.<br />
<br />
<table class="formatter-table">
    <tr class="formatter-table-row">
        <th class="formatter-table-head">Exemples</th>
    </tr>
    <tr class="formatter-table-row">
        <td class="formatter-table-col">Pour exécuter un programme déjà chargé en mémoire :<br />
                               <a href="https://msxvillage.fr/wiki/run">RUN</a><br />
                               Pour exécuter un programme déjà chargé en mémoire à partir de la ligne 30 :<br />
               <a href="https://msxvillage.fr/wiki/run">RUN</a> 30<br />
                               Pour charger et exécuter le programme VILLAGE.BAS sur une disquette du lecteur B :<br />
                               <a href="https://msxvillage.fr/wiki/run">RUN</a> "B:VILLAGE.BAS"</td>
    </tr>
</table><br />
<h3 class="formatter-title">Remarque :</h3><br />
Le fait d'utiliser <a href="https://msxvillage.fr/wiki/run">RUN</a> provoque la fermeture des éventuels fichiers ouverts. Si à la fin de la commande vous ajoutez le ",R", vous empêcherez cette fermeture.<br />
Pour le chargement avec exécution d'un programme, voir aussi <a href="https://msxvillage.fr/wiki/cload">CLOAD</a>, <a href="https://msxvillage.fr/wiki/load">LOAD</a> et <a href="https://msxvillage.fr/wiki/bload">BLOAD</a><br />
<br />
</div></fieldset>]]></description>
			<pubDate>Thu, 15 Oct 2009 12:30:47 +0200</pubDate>
			
		</item>
		
	</channel>
</rss>
