<?xml version="1.0" encoding="UTF-8" ?>
<!-- RSS generated by PHPBoost on Sat, 04 Apr 2026 05:29:05 +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/19" rel="self" type="application/rss+xml"/>
		<link>https://msxvillage.fr</link>
		<description><![CDATA[Derniers articles de la catégorie P]]></description>
		<copyright>(C) 2005-2026 PHPBoost</copyright>
		<language>fr</language>
		<generator>PHPBoost</generator>
		
		
		<item>
			<title><![CDATA[PLAY]]></title>
			<link>https://msxvillage.fr/wiki/play</link>
			<guid>https://msxvillage.fr/wiki/play</guid>
			<description><![CDATA[Instruction qui permet de transcrire une chaîne de caractères en musique pour le PSG (3 voies), ou fonction qui permet de tester l'utilisation des canaux sonores.<br />
les chaines de caractères sont au format MML (Music Macro Langage) très répandu au Japon.<br />
<br />
<h3 class="formatter-title">Instruction PLAY</h3><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/play">PLAY</a>"chaîne de caractères voie 1"[,"chaîne de caractères voie 2"][,"chaîne de caractères voile 3"]</td>
     </tr>
</table><br />
<br />
Les crochets indiquent un contenu optionnel.<br />
<br />
Les chaînes de caractères (entre guillemets) peuvent être remplacées par des variables chaînes de caractères (comme A$, B$, etc).<br />
<br />
Les composantes de la chaîne interprétables par l'instruction <a href="https://msxvillage.fr/wiki/play">PLAY</a> sont de plusieurs natures :<br />
<br />
<span style="text-decoration: underline;">Les notes de musique</span> :<br />
Elles sont utilisées selon la notation anglo-saxonne, à savoir les lettres C, D, E, F, G, A, B<br />
<br />
Tableau de correspondance des notes :<br />
<table class="formatter-table">
<tr class="formatter-table-row">
     <td class="formatter-table-col">Do</td>
     <td class="formatter-table-col">Ré</td>
     <td class="formatter-table-col">Mi</td>
     <td class="formatter-table-col">Fa</td>
     <td class="formatter-table-col">Sol</td>
     <td class="formatter-table-col">La</td>
     <td class="formatter-table-col">Si</td>
</tr>
<tr class="formatter-table-row">
     <td class="formatter-table-col">C</td>
     <td class="formatter-table-col">D</td>
     <td class="formatter-table-col">E</td>
     <td class="formatter-table-col">F</td>
     <td class="formatter-table-col">G</td>
     <td class="formatter-table-col">A</td>
     <td class="formatter-table-col">B</td>
</tr>
</table><br />
<br />
Les altérations sont faites en utilisant + ou # pour les dièses et &#8211; pour les bémols à  la suite de la note.<br />
Il est également possible d'accoler après la lettre de note le numéro de l'octave sur laquelle celle-ci doit être jouée.<br />
On peut également allonger la note de sa moitié en mettant un point. après la note<br />
<br />
Il y a aussi une autre façon pour représenter les notes, c'est en utilisant la lettre N suivie d'un nombre allant de 0 à 96 (les 7 notes de la gamme plus les 5 altérations, sur 8 octaves, on retrouve bien 96 notes). N0 équivaut à une pause<br />
<br />
<br />
<span style="text-decoration: underline;">Le tempo</span> :<br />
Il est signifié par la lettre T, suivie d'un nombre allant de 32 jusqu'à 255 (32 le plus lent, 255 le plus rapide). La valeur par défaut est 120.<br />
<br />
<span style="text-decoration: underline;">L'octave</span> :<br />
Il est signifié par la lettre O, suivie d'un nombre allant de 1 à 8 (1 le plus grave, 8 le plus aigu). La valeur par défaut est 4.<br />
on peut aussi augmenter ou diminuer d'un octave avec les signes > et < respectivement<br />
<br />
<span style="text-decoration: underline;">La durée de la note</span> :<br />
Elle est signifiée par la lettre L, suivie d'un nombre étant soit 1, 2, 4, 8, 16, 32 ou 64. Chacun de ces nombres représente une durée déterminée, sachant que la durée normale d'une note (noire valeur par défaut) est 4. Par exemple, la croche est L8 (2 fois plus rapide d'une noire), la blanche est L2 (2 fois plus lente qu'une noire)<br />
<br />
<span style="text-decoration: underline;">Les silences ou pauses</span> :<br />
Ils sont signifiés par la lettre R, suivie des mêmes chiffres que pour la durée des notes, correspondants aux mêmes temps.<br />
<br />
<span style="text-decoration: underline;">Le volume</span> :<br />
Il est signifié par la lettre V, suivie d'un nombre allant de 1 à 15 (1 volume le plus bas, 15 le plus haut). Par défaut cette valeur est de 8.<br />
<br />
<span style="text-decoration: underline;">L'enveloppe</span> : (voir <a href="https://msxvillage.fr/wiki/sound">SOUND</a>)<br />
Deux paramètres peuvent être modifiés via <a href="https://msxvillage.fr/wiki/play">PLAY</a> : la forme de l'enveloppe, et sa période.<br />
Pour la forme, c'est la lettre S qui est utilisée, suivie d'un nombre allant de 0 à 15. Par défaut, cette forme est à 1.<br />
Pour la période, c'est la lettre M qui est utilisée, suivie d'un nombre allant de 1 à 65535. Par défaut cette valeur est à 255.<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/play">PLAY</a>"CDECCDECEFGGEFGG","R1R1CDECCDECEFGGEFGG"</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 jouera le début du célèbre canon « Frère Jacques » sur 2 canaux.</td>
    </tr>
</table><br />
<br />
<h3 class="formatter-title">Fonction PLAY</h3><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/play">PLAY</a>(numéro de canal)</td>
            </tr>
</table><br />
<br />
Pour la fonction  <a href="https://msxvillage.fr/wiki/play">PLAY</a>, le numéro de canal est :<br />
0 pour tous les canaux<br />
1 pour le canal 1<br />
2 pour le canal 2<br />
3 pour le canal 3<br />
<br />
La fonction renvoie -1 si le canal en question est effectivement utilisé, 0 sinon.<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/play">PLAY</a>(1)<br />
                               20 <a href="https://msxvillage.fr/wiki/play">PLAY</a>"CDECCDECEFGGEFGG"<br />
                               30 <a href="https://msxvillage.fr/wiki/print">PRINT</a> <a href="https://msxvillage.fr/wiki/play">PLAY</a>(1)<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 à l'initialisation renverra un 0 (aucune musique n'est jouée), puis -1 après que la musique ait commencé sur le canal 1.</td>
    </tr>
</table><br />
<br />
[/fieldset]]]></description>
			<pubDate>Sat, 23 Sep 2023 22:18:03 +0200</pubDate>
			
		</item>
		
		<item>
			<title><![CDATA[PAINT]]></title>
			<link>https://msxvillage.fr/wiki/paint</link>
			<guid>https://msxvillage.fr/wiki/paint</guid>
			<description><![CDATA[<fieldset class="formatter-container formatter-fieldset" style=""><legend><strong><span style="font-size: 20px;">PAINT</span></strong></legend><div class="formatter-content">Instruction qui permet de colorier une région donnée en mode graphique.<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/paint">PAINT</a> [<a href="https://msxvillage.fr/wiki/step">STEP</a>] (abscisse, ordonnée)[,couleur][,couleur de limite]</td>
     </tr>
</table><br />
<br />
Les crochets indiquent un contenu optionnel.<br />
<br />
Le point dont on utilise les coordonnées doit impérativement être dans la zone à colorier.<br />
<br />
L'option <a href="https://msxvillage.fr/wiki/step">STEP</a> fait prendre comme origine le dernier point affiché à l'écran.<br />
<br />
Si la couleur est omise, la région sera colorée dans la couleur initiée par l'instruction <a href="https://msxvillage.fr/wiki/color">COLOR</a>.<br />
<br />
La couleur de limite n'est disponible qu'en dehors des modes graphiques 2 et 4. Pour ces 2 modes, la couleur limite est par défaut identique à la couleur de « peinture ». Par conséquent, il est impossible de peindre l'intérieur d'un cercle vert par une couleur rouge : tout l'écran serait alors peint en rouge. Vous ne pourrez le peindre qu'en vert.<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/screen">SCREEN</a> 5<br />
                               20 <a href="https://msxvillage.fr/wiki/circle">CIRCLE</a> (100,100),30,6<br />
                               30 <a href="https://msxvillage.fr/wiki/paint">PAINT</a> (100,100),3,6<br />
                               40 <a href="https://msxvillage.fr/wiki/goto">GOTO</a> 40</td>
     </tr>
</table><br />
<br />
<table class="formatter-table">
    <tr class="formatter-table-row">
        <th class="formatter-table-head">Résultat en images</th>
    </tr>
    <tr class="formatter-table-row"><td class="formatter-table-col"><img src="https://msxvillage.fr/wiki/images/circle.jpg" alt="" class="valign_" /></td>
    </tr>
</table><br />
<br />
</div></fieldset>]]></description>
			<pubDate>Mon, 09 Aug 2010 14:54:51 +0200</pubDate>
			
		</item>
		
		<item>
			<title><![CDATA[PRINT WIP]]></title>
			<link>https://msxvillage.fr/wiki/print-wip</link>
			<guid>https://msxvillage.fr/wiki/print-wip</guid>
			<description><![CDATA[<span style="color:red;">WIP</span><br />
<span style="color:blue;">PRINT TAB<br />
PRINT USING<br />
PRINT#</span><br />
<br />
<fieldset class="formatter-container formatter-fieldset" style=""><legend><strong><span style="font-size: 20px;">PRINT</span></strong></legend><div class="formatter-content">Cette instruction permet d'afficher sur l'écran une donné numérique, une chaine de caractères,la valeur d'une variable ect....<br />
<br />
<table class="formatter-table">
    <tr class="formatter-table-row">
        <th class="formatter-table-head">Exemple en msx-basic</th>
    </tr>
    <tr class="formatter-table-row">
        <td class="formatter-table-col">10 A=5<br />
                        20 PRINT A<br />
                        30 PRINT "A"<br />
                        40 PRINT 6+7<br />
                        50 PRINT "Et voici une chaîne alphanumérique du 12/10/2009."<br />
                        60 <a href="https://msxvillage.fr/wiki/end">END</a></td>
     </tr>
</table><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">5<br />
                        A<br />
                        13<br />
                        Et voici une chaîne alphanumérique du 12/10/2009.<br />
</td>
    </tr>
</table><br />
<h3 class="formatter-title">Remarques:</h3><br />
<br />
Dans l'exemple précédant, chaque nouvelle instruction PRINT renvoie a la ligne suivante, mais l'on peut a l'aide du point virgule "<strong>;</strong>" faire en sorte que les choses se passent différemment. Effectivement si l'on met un point virgule après l'instruction PRINT et ce quelle doit afficher alors il n'y aura pas de saut de ligne.<br />
<br />
<table class="formatter-table">
    <tr class="formatter-table-row">
        <th class="formatter-table-head">Exemple en msx-basic</th>
    </tr>
    <tr class="formatter-table-row">
        <td class="formatter-table-col">10 A=5<br />
                        20 PRINT A+A;<br />
                        30 PRINT "Ceci est une chaîne de caractères";<br />
                        40 PRINT 6+7;<br />
                        50 PRINT "Et voici une chaîne alphanumérique du 12/10/2009."<br />
                        60 <a href="https://msxvillage.fr/wiki/end">END</a></td>
     </tr>
</table><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">10Ceci est une chaîne de caractères13Et voici une chaîne alphanumérique du 12/10/2009.<br />
</td>
    </tr>
</table><br />
On peut également utiliser la virgule "<strong>,</strong>"et l'on obtiendra alors un affichage sous forme de colonnes. Pour la commodité de l'exemple on modifiera le nombre de caractère affichable sur une seule ligne a l'aide de l'instruction <a href="https://msxvillage.fr/wiki/width">WIDTH</a>.<br />
<br />
<table class="formatter-table">
    <tr class="formatter-table-row">
        <th class="formatter-table-head">Exemple en msx-basic</th>
    </tr>
    <tr class="formatter-table-row">
        <td class="formatter-table-col">10 <a href="https://msxvillage.fr/wiki/width">WIDTH</a> 80<br />
                        20 PRINT "MSX",<br />
                        30 PRINT "-",<br />
                        40 PRINT "VILLAGE"<br />
                        50 <a href="https://msxvillage.fr/wiki/end">END</a><br />
</td>
     </tr>
</table><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"><img src="https://msxvillage.fr/upload/print.jpg" alt="" class="valign_" /><br />
</td>
    </tr>
</table><br />
</div></fieldset><br />
<br />
<fieldset class="formatter-container formatter-fieldset" style=""><legend><strong><span style="font-size: 20px;">PRINT USING</span></strong></legend><div class="formatter-content">On peut également joindre une autre instruction à PRINT pour formater des nombres ou des chaînes de caractères.<br />
Cette instruction s'appelle <a href="https://msxvillage.fr/wiki/using">USING</a>.<br />
<br />
<h3 class="formatter-title">PRINT USING et les chaînes de caractères</h3><br />
<br />
<strong>PRINT USING "!"</strong><br />
<br />
<table class="formatter-table">
    <tr class="formatter-table-row">
        <th class="formatter-table-head">Exemple en msx-basic</th>
    </tr>
    <tr class="formatter-table-row">
        <td class="formatter-table-col">10 C$="MSX-VILLAGE"<br />
                        20 PRINT <a href="https://msxvillage.fr/wiki/using">USING</a> "!";C$<br />
                        30 <a href="https://msxvillage.fr/wiki/end">END</a><br />
</td>
     </tr>
</table><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 lettre M sera alors afficher a l'écran. Quelle que soit la chaîne contenue par C$ cette instruction affichera le premier caractère de la chaîne.<br />
</td>
    </tr>
</table><br />
<br />
<strong>PRINT USING "\ \"</strong><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 C$="MSX-VILLAGE"<br />
                        20 PRINT <a href="https://msxvillage.fr/wiki/using">USING</a> "\ \";C$<br />
                        30 <a href="https://msxvillage.fr/wiki/end">END</a><br />
</td>
     </tr>
</table><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 ci-dessus affichera a l'écran MSX. Ce format de PRINT USING affiche en fait un nombre de caractères égal au nombre d'espace entre les deux \ plus deux autres caractères.Il y'a donc un espace entre les deux\ dans l'exemple précèdent  <br />
</td>
    </tr>
</table><br />
<br />
<strong>PRINT USING "&  &"</strong><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$="UN" : B$="VILLAGE"<br />
                        20 PRINT <a href="https://msxvillage.fr/wiki/using">USING</a> "& FANTASTIQUE &";A$,B$<br />
                        30 <a href="https://msxvillage.fr/wiki/end">END</a><br />
</td>
     </tr>
</table><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">UN FANTASTIQUE VILLAGE sera alors afficher a l'écran,on l'aura compris cette forme de PRINT USING permet d'afficher le paramètre (FANTASTIQUE) entre A$ et B$ respectivement UN et VILLAGE.si l'on avait utilisé le code comme ceci <strong>20 PRINT USING "& FANTASTIQUE ";A$,B$</strong> alors le résultat aurait été le suivant:<br />
UN FANTASTIQUE VILLAGE FANTASTIQUE<br />
Ou encore  <strong>20 PRINT USING " FANTASTIQUE &";A$,B$</strong> aurait donné :<br />
 FANTASTIQUE UN FANTASTIQUE VILLAGE<br />
</td>
    </tr>
</table><br />
<br />
<h3 class="formatter-title">PRINT USING et les nombres</h3><br />
<br />
<strong>PRINT USING "#"</strong><br />
<br />
<table class="formatter-table">
    <tr class="formatter-table-row">
        <th class="formatter-table-head">Exemple en msx-basic</th>
    </tr>
    <tr class="formatter-table-row">
        <td class="formatter-table-col">10 A=1153:B=8:C=405<br />
                        20 PRINT <a href="https://msxvillage.fr/wiki/using">USING</a> "###";A<br />
                        30 PRINT <a href="https://msxvillage.fr/wiki/using">USING</a> "###";B<br />
                        40 PRINT <a href="https://msxvillage.fr/wiki/using">USING</a> "###";C<br />
                        50 <a href="https://msxvillage.fr/wiki/end">END</a><br />
</td>
     </tr>
</table><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"><img src="https://msxvillage.fr/upload/print1.jpg" alt="" class="valign_" /><br />
Le nombre de caractères # indique ici combien de chiffre des variables A,B et C doivent être affichés.<br />
Si le nombre de chiffre dans la variable est inférieur au nombre de caractères # alors le programme fera précéder le nombre par des espaces.(Voir variable B).Si au contraire le nombre de chiffre dans la variable est supérieur au nombre de caractères #, le caractère % apparaitra devant le nombre.(Voir variable A)<br />
</td>
    </tr>
</table><br />
<br />
<strong>PRINT USING "."</strong><br />
<br />
<table class="formatter-table">
    <tr class="formatter-table-row">
        <th class="formatter-table-head">Exemple en msx-basic</th>
    </tr>
    <tr class="formatter-table-row">
        <td class="formatter-table-col">10 A=254.54:B=56.476:C=.157<br />
                        20 PRINT <a href="https://msxvillage.fr/wiki/using">USING</a> " ##.##";A,B,C<br />
                        30 <a href="https://msxvillage.fr/wiki/end">END</a><br />
</td>
     </tr>
</table><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"><img src="https://msxvillage.fr/upload/print3.jpg" alt="" class="valign_" /><br />
Cette commande permet de définir ou est placé le point décimal.<br />
</td>
    </tr>
</table><br />
<br />
<strong>PRINT USING ","</strong><br />
<br />
<table class="formatter-table">
    <tr class="formatter-table-row">
        <th class="formatter-table-head">Exemple en msx-basic</th>
    </tr>
    <tr class="formatter-table-row">
        <td class="formatter-table-col">10 A=1234567.89<br />
                        20 PRINT <a href="https://msxvillage.fr/wiki/using">USING</a> " ########,.##";A<br />
                        30 PRINT <a href="https://msxvillage.fr/wiki/using">USING</a> " ########.##,";A<br />
                        40 PRINT <a href="https://msxvillage.fr/wiki/using">USING</a> " ########,.##,";A<br />
                        60 <a href="https://msxvillage.fr/wiki/end">END</a><br />
</td>
     </tr>
</table><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"><img src="https://msxvillage.fr/upload/print4.jpg" alt="" class="valign_" /><br />
Si l'on place une virgule avant le point décimal, les chiffres du nombre formaté seront affiché par bloc de trois et séparés par des virgules(Voir ligne 20). Si l'on place une virgule au bout du format alors une virgule sera ajouté au bout de l'expression(Voir ligne 30).Et de plus on peut conjuguer les deux formats(Voir ligne 40).<br />
</td>
    </tr>
</table><br />
<br />
<strong>PRINT USING "+"</strong><br />
<br />
<table class="formatter-table">
    <tr class="formatter-table-row">
        <th class="formatter-table-head">Exemple en msx-basic</th>
    </tr>
    <tr class="formatter-table-row">
        <td class="formatter-table-col">10 A=3.14 : B=-5.48<br />
                        20 PRINT <a href="https://msxvillage.fr/wiki/using">USING</a> "+#.##";A,B<br />
                        30 PRINT <a href="https://msxvillage.fr/wiki/using">USING</a> "#.##+";A,B<br />
                        40 <a href="https://msxvillage.fr/wiki/end">END</a><br />
</td>
     </tr>
</table><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">+3.14-5.48<br />
                        3.14+5.48-<br />
                        Ce format de PRINT USING permet d'afficher un signe avant ou après un nombre, le signe sera + ou - suivant que le nombre soit posotif ou négatif.Si le signe est placer au début du format, le signe sera afficher avant le nombre et inversement si le signe est placé à la fin du format.<br />
</td>
    </tr>
</table><br />
<br />
<strong>PRINT USING "-"</strong><br />
<br />
<table class="formatter-table">
    <tr class="formatter-table-row">
        <th class="formatter-table-head">Exemple en msx-basic</th>
    </tr>
    <tr class="formatter-table-row">
        <td class="formatter-table-col">10 A=3.14 : B=-5.48<br />
                        20 PRINT <a href="https://msxvillage.fr/wiki/using">USING</a> "#.##-";A,B<br />
                        30 <a href="https://msxvillage.fr/wiki/end">END</a><br />
</td>
     </tr>
</table><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">3.14 5.48-<br />
                        Ce format de PRINT USING,qui peut seulement être utilisé à la fin de ce dernier, affichera un signe - après tout les nombres négatif.<br />
</td>
    </tr>
</table><br />
<br />
<strong>PRINT USING "**"</strong><br />
<br />
<table class="formatter-table">
    <tr class="formatter-table-row">
        <th class="formatter-table-head">Exemple en msx-basic</th>
    </tr>
    <tr class="formatter-table-row">
        <td class="formatter-table-col">10 A=3.14 : B=25.58:C=105.21<br />
                        20 PRINT <a href="https://msxvillage.fr/wiki/using">USING</a> "**####.##";A<br />
                        30 PRINT <a href="https://msxvillage.fr/wiki/using">USING</a> "**####.##";B<br />
                        40 PRINT <a href="https://msxvillage.fr/wiki/using">USING</a> "**####.##";C<br />
                        50 <a href="https://msxvillage.fr/wiki/end">END</a><br />
</td>
     </tr>
</table><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"><img src="https://msxvillage.fr/upload/print5.jpg" alt="" class="valign_" /><br />
                        Ce format a pour but d'insérer des astérisques avant la valeur. Les astérisques peuvent être seulement placés devant le format.<br />
</td>
    </tr>
</table><br />
<br />
<strong>PRINT USING "$$"</strong><br />
<br />
<table class="formatter-table">
    <tr class="formatter-table-row">
        <th class="formatter-table-head">Exemple en msx-basic</th>
    </tr>
    <tr class="formatter-table-row">
        <td class="formatter-table-col">10 A=10,50:b=-25,45<br />
                        20 PRINT <a href="https://msxvillage.fr/wiki/using">USING</a> "$$###.##";A,B<br />
                        30 PRINT <a href="https://msxvillage.fr/wiki/using">USING</a> "$$###.##-";A,B<br />
                        40 <a href="https://msxvillage.fr/wiki/end">END</a><br />
</td>
     </tr>
</table><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"><img src="https://msxvillage.fr/upload/print6.jpg" alt="" class="valign_" /><br />
                        Ce format comme le précèdent ne peut être utilisé qu'au début du format. Il aura pour résultat d'afficher un $ juste avant les valeurs.<br />
</td>
    </tr>
</table><br />
<br />
<strong>PRINT USING "**$"</strong><br />
<br />
<table class="formatter-table">
    <tr class="formatter-table-row">
        <th class="formatter-table-head">Exemple en msx-basic</th>
    </tr>
    <tr class="formatter-table-row">
        <td class="formatter-table-col">10 A=10,50<br />
                        20 PRINT <a href="https://msxvillage.fr/wiki/using">USING</a> "**$###.##";A<br />
                        30 <a href="https://msxvillage.fr/wiki/end">END</a><br />
</td>
     </tr>
</table><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">*$10.50<br />
Ce format est en fait une combinaison des deux formats précédents, et comme les deux autres il ne peut être placé qu'en début de format.<br />
</td>
    </tr>
</table><br />
<br />
<strong>PRINT USING "^<img src="https://msxvillage.fr/images/smileys/content.gif" alt="^^" class="smiley" />^"</strong><br />
<br />
<table class="formatter-table">
    <tr class="formatter-table-row">
        <th class="formatter-table-head">Exemple en msx-basic</th>
    </tr>
    <tr class="formatter-table-row">
        <td class="formatter-table-col">10 A=10.50<br />
                        20 PRINT <a href="https://msxvillage.fr/wiki/using">USING</a> "##.##<img src="https://msxvillage.fr/images/smileys/content.gif" alt="^^" class="smiley" /><img src="https://msxvillage.fr/images/smileys/content.gif" alt="^^" class="smiley" />";A<br />
                        30 <a href="https://msxvillage.fr/wiki/end">END</a><br />
</td>
     </tr>
</table><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"><br />
</td>
    </tr>
</table><br />
<br />
</div></fieldset><br />
<br />
<fieldset class="formatter-container formatter-fieldset" style=""><legend><strong><span style="font-size: 20px;">PRINT TAB</span></strong></legend><div class="formatter-content"><br />
</div></fieldset>]]></description>
			<pubDate>Tue, 27 Oct 2009 22:52:07 +0100</pubDate>
			
		</item>
		
		<item>
			<title><![CDATA[POINT]]></title>
			<link>https://msxvillage.fr/wiki/point</link>
			<guid>https://msxvillage.fr/wiki/point</guid>
			<description><![CDATA[<fieldset class="formatter-container formatter-fieldset" style=""><legend><strong><span style="font-size: 20px;">POINT</span></strong></legend><div class="formatter-content">Fonction qui renvoie le code couleur d'un point à l'écran en mode graphique.<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/point">POINT</a> (abscisse, ordonnée)</td>
     </tr>
</table><br />
<br />
Par défaut, la fonction utilise le mode graphique 2 si elle est employée sans qu'il y ait eu d'instruction <a href="https://msxvillage.fr/wiki/screen">SCREEN</a> au préalable.<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/screen">SCREEN</a> 2<br />
                               20 <a href="https://msxvillage.fr/wiki/color">COLOR</a> 15,6,6<br />
                               30 X=<a href="https://msxvillage.fr/wiki/point">POINT</a> (100,100)<br />
                               40 <a href="https://msxvillage.fr/wiki/screen">SCREEN</a> 0 : <a href="https://msxvillage.fr/wiki/color">COLOR</a> 15,4,4<br />
                               50 <a href="https://msxvillage.fr/wiki/print">PRINT</a> X<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 va passer en mode graphique 2, colorer le fond en rouge, puis la valeur de la couleur du point de coordonnées (100,100) sera stockée dans une variable X. Le programme fera ensuite repasser en mode texte, avec les couleurs par défaut, où sera affiché le code couleur correspondant au point testé.</td>
    </tr>
</table><br />
<br />
</div></fieldset>]]></description>
			<pubDate>Tue, 27 Oct 2009 12:25:14 +0100</pubDate>
			
		</item>
		
		<item>
			<title><![CDATA[PRESET]]></title>
			<link>https://msxvillage.fr/wiki/preset</link>
			<guid>https://msxvillage.fr/wiki/preset</guid>
			<description><![CDATA[<fieldset class="formatter-container formatter-fieldset" style=""><legend><strong><span style="font-size: 20px;">PRESET</span></strong></legend><div class="formatter-content">Instruction qui permet d'afficher ou d'effacer un point en mode graphique.<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/preset">PRESET</a> <a href="https://msxvillage.fr/wiki/step">STEP</a> (abscisse, ordonnée)[, couleur][,opérateur logique]</td>
     </tr>
</table><br />
<br />
Les crochets indiquent un contenu optionnel.<br />
<br />
Si la couleur est omise, l'instruction <a href="https://msxvillage.fr/wiki/preset">PRESET</a> efface le point à l'écran, ou plus précisément affiche un point de couleur transparente.<br />
<br />
L'ajout de <a href="https://msxvillage.fr/wiki/step">STEP</a> permet de prendre comme origine le dernier point affiché.<br />
<br />
Pour les opérateurs logiques et leurs effets, voir <a href="https://msxvillage.fr/wiki/pset">PSET</a>.<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/screen">SCREEN 2</a><br />
                               20 <a href="https://msxvillage.fr/wiki/preset">PRESET</a> (100,100),6<br />
                               30 <a href="https://msxvillage.fr/wiki/goto">GOTO</a> 30</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">Un point de couleur rouge est affiché aux coordonnées 100,100.</td>
    </tr>
</table><br />
<br />
</div></fieldset>]]></description>
			<pubDate>Thu, 22 Oct 2009 10:48:00 +0200</pubDate>
			
		</item>
		
		<item>
			<title><![CDATA[PSET]]></title>
			<link>https://msxvillage.fr/wiki/pset</link>
			<guid>https://msxvillage.fr/wiki/pset</guid>
			<description><![CDATA[<fieldset class="formatter-container formatter-fieldset" style=""><legend><strong><span style="font-size: 20px;">PSET</span></strong></legend><div class="formatter-content">Instruction qui permet d'afficher un point en mode graphique.<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/pset">PSET</a> <a href="https://msxvillage.fr/wiki/step">STEP</a> (abscisse, ordonnée)[, couleur][,opérateur logique]</td>
     </tr>
</table><br />
<br />
Si la couleur est omise, le point sera affiché avec la couleur par défaut définie par <a href="https://msxvillage.fr/wiki/color">COLOR</a>.<br />
<br />
L'ajout de <a href="https://msxvillage.fr/wiki/step">STEP</a> permet de prendre comme origine le dernier point affiché.<br />
<br />
On peut adjoindre un opérateur logique à <a href="https://msxvillage.fr/wiki/pset">PSET</a> dans les modes graphiques 5, 6, 7 et 8. Ceux-ci affecteront la manière dont la couleur est traitée, en fonction de la couleur présente « derrière » le point.<br />
Voici la liste des opérations possibles et leurs effets :<br />
<br />
<a href="https://msxvillage.fr/wiki/and">AND</a> : la couleur affichée sera la résultante de l'opération logique : couleur du point <a href="https://msxvillage.fr/wiki/and">AND</a> couleur du fond. Par exemple, si le fond a le code couleur 9, et le point le code couleur 5, la résultante de l'opération logique est 1. Un point de couleur noire sera alors affiché.<br />
<br />
<a href="https://msxvillage.fr/wiki/or">OR</a> : la couleur affichée sera la résultante de l'opération logique : couleur du point <a href="https://msxvillage.fr/wiki/or">OR</a> couleur du fond. Par exemple, si le fond a le code couleur 12, et le point le code couleur 5, la résultante de l'opération logique est 15. Un point de couleur blanche sera alors affiché.<br />
<br />
<a href="https://msxvillage.fr/wiki/xor">XOR</a> : la couleur affichée sera la résultante de l'opération logique : couleur du point <a href="https://msxvillage.fr/wiki/xor">XOR</a> couleur du fond. Par exemple, si le fond a le code couleur 11, et le point le code couleur 5, la résultante de l'opération logique sera cette fois 14. Un point de couleur grise sera alors affiché.<br />
<br />
Chacune de ces opérations possède un équivalent aboutissant aux mêmes résultats, mais qui ne prend pas en compte la couleur transparente : <strong>TAND</strong>, <strong>TOR</strong> et <strong>TXOR</strong><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/screen">SCREEN 2</a><br />
                               20 <a href="https://msxvillage.fr/wiki/preset">PSET</a> (10,150),1<br />
                               30 <a href="https://msxvillage.fr/wiki/goto">GOTO</a> 30</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">Un point de couleur noire est affiché aux coordonnées 10,150.</td>
    </tr>
</table><br />
<br />
</div></fieldset>]]></description>
			<pubDate>Thu, 22 Oct 2009 10:47:31 +0200</pubDate>
			
		</item>
		
		<item>
			<title><![CDATA[PEEK]]></title>
			<link>https://msxvillage.fr/wiki/peek</link>
			<guid>https://msxvillage.fr/wiki/peek</guid>
			<description><![CDATA[<fieldset class="formatter-container formatter-fieldset" style=""><legend><strong><span style="font-size: 20px;">PEEK</span></strong></legend><div class="formatter-content">Fonction qui renvoie le contenu d'une adresse de la mémoire vive.<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/peek">PEEK</a>(adresse)</td>
     </tr>
</table><br />
<br />
L'adresse ne peut prendre qu'une valeur définie sur 2 octets (donc entre -32768 et 65535).<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/peek">PEEK</a>(&HFFFF)</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 vous affichera le contenu de l'adresse &HFFFF de la mémoire vive (ce contenu peut varier en fonction des ordinateurs).</td>
    </tr>
</table><br />
<br />
</div></fieldset>]]></description>
			<pubDate>Wed, 21 Oct 2009 13:03:53 +0200</pubDate>
			
		</item>
		
		<item>
			<title><![CDATA[POKE]]></title>
			<link>https://msxvillage.fr/wiki/poke</link>
			<guid>https://msxvillage.fr/wiki/poke</guid>
			<description><![CDATA[<fieldset class="formatter-container formatter-fieldset" style=""><legend><strong><span style="font-size: 20px;">POKE</span></strong></legend><div class="formatter-content">Instruction qui permet d'écrire une valeur dans une case de la mémoire vive.<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/poke">POKE</a> adresse, valeur</td>
     </tr>
</table><br />
<br />
L'adresse ne peut prendre qu'une valeur définie sur 2 octets (donc entre -32768 et 65535).<br />
La valeur quant à elle n'est définie que sur un seul octet (donc entre 0 et 255).<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/poke">POKE</a> &HFFFF,&HFF</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">Ce <a href="https://msxvillage.fr/wiki/poke">POKE</a> très célèbre aura comme effet de faire effectuer un RESET à votre MSX, si celui-ci est un MSX2 Philips.</td>
    </tr>
</table><br />
<br />
<h3 class="formatter-title">Remarque :</h3><br />
Il faut être prudent dans la manipulation des <a href="https://msxvillage.fr/wiki/poke">POKE</a>, en effet, comme dans l'exemple, leurs effets peuvent être surprenants pour celui qui ne maîtrise pas un tant soit peu la structure de la mémoire des MSX.<br />
<br />
</div></fieldset>]]></description>
			<pubDate>Wed, 21 Oct 2009 12:52:52 +0200</pubDate>
			
		</item>
		
		<item>
			<title><![CDATA[POS]]></title>
			<link>https://msxvillage.fr/wiki/pos</link>
			<guid>https://msxvillage.fr/wiki/pos</guid>
			<description><![CDATA[<fieldset class="formatter-container formatter-fieldset" style=""><legend><strong><span style="font-size: 20px;">POS</span></strong></legend><div class="formatter-content">Fonction qui donne l'abscisse du curseur en mode texte.<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/pos">POS</a>(0)</td>
    </tr>
</table><br />
<br />
(0)est toujours utilisé avec <a href="https://msxvillage.fr/wiki/pos">POS</a>. Ce n'est pas perçu ici comme une variable.<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/locate">LOCATE</a>10,20<br />
                               20 <a href="https://msxvillage.fr/wiki/print">PRINT</a> <a href="https://msxvillage.fr/wiki/pos">POS</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 affichera au point de coordonnées (20,10) le nombre 20, correspondant à l'abscisse du curseur.</td>
    </tr>
</table><br />
<br />
<h3 class="formatter-title">Remarque :</h3><br />
Pour se répérer en mode texte l'origine des coordonnées est en haut à gauche. Les abscisses croissantes vont vers la droite, les ordonnées croissantes vers le bas.<br />
<br />
</div></fieldset>]]></description>
			<pubDate>Wed, 21 Oct 2009 11:22:40 +0200</pubDate>
			
		</item>
		
		<item>
			<title><![CDATA[P]]></title>
			<link>https://msxvillage.fr/wiki/p</link>
			<guid>https://msxvillage.fr/wiki/p</guid>
			<description><![CDATA[Liste des instructions commençant par P :]]></description>
			<pubDate>Tue, 20 Oct 2009 10:59:19 +0200</pubDate>
			
		</item>
		
	</channel>
</rss>
