<?xml version="1.0" encoding="UTF-8" ?>
<!-- RSS generated by PHPBoost on Sun, 05 Apr 2026 03:49:53 +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/6" rel="self" type="application/rss+xml"/>
		<link>https://www.msxvillage.fr</link>
		<description><![CDATA[Derniers articles de la catégorie C]]></description>
		<copyright>(C) 2005-2026 PHPBoost</copyright>
		<language>fr</language>
		<generator>PHPBoost</generator>
		
		
		<item>
			<title><![CDATA[CINT]]></title>
			<link>https://msxvillage.fr/wiki/cint</link>
			<guid>https://msxvillage.fr/wiki/cint</guid>
			<description><![CDATA[<fieldset class="formatter-container formatter-fieldset" style=""><legend><strong><span style="font-size: 20px;">CINT</span></strong></legend><div class="formatter-content">Fonction qui permet de convertir un nombre en entier.<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/cint">CINT</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.14159265358979323846264<br />
                               20 <a href="https://msxvillage.fr/wiki/print">PRINT</a> <a href="https://msxvillage.fr/wiki/cint">CINT</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">Le nombre affiché sera un entier : 3.</td>
    </tr>
</table><br />
<br />
</div></fieldset>]]></description>
			<pubDate>Tue, 03 May 2022 12:05:21 +0200</pubDate>
			
		</item>
		
		<item>
			<title><![CDATA[CHR$]]></title>
			<link>https://msxvillage.fr/wiki/chr</link>
			<guid>https://msxvillage.fr/wiki/chr</guid>
			<description><![CDATA[<fieldset class="formatter-container formatter-fieldset" style=""><legend><strong><span style="font-size: 20px;">CHR$</span></strong></legend><div class="formatter-content">Fonction qui renvoie le caractère correspondant au code ASCII indiqué.<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/chr">CHR$</a>(code ASCII)</td>
     </tr>
</table><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/print">PRINT</a> <a href="https://msxvillage.fr/wiki/chr">CHR$</a>(65)<br />
                        20 <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 à l'écran la lettre A.</td>
    </tr>
</table><br />
<br />
<h3 class="formatter-title">Remarque :</h3><br />
Les valeurs du code ASCII peuvent aller de 0 à 255, mais le MSX cachant bien son jeu, il est possible de faire apparaître d'autres caractères, au nombre de 32 en ajoutant <a href="https://msxvillage.fr/wiki/chr">CHR$</a>(1) ! En reprenant notre exemple, on aurait donc :<br />
10 <a href="https://msxvillage.fr/wiki/print">PRINT</a> <a href="https://msxvillage.fr/wiki/chr">CHR$</a>(1) + <a href="https://msxvillage.fr/wiki/chr">CHR$</a>(65)<br />
20 <a href="https://msxvillage.fr/wiki/end">END</a><br />
<br />
Et au lieu d'avoir un A, on aura un smiley !!<br />
</div></fieldset>]]></description>
			<pubDate>Tue, 03 May 2022 12:04:32 +0200</pubDate>
			
		</item>
		
		<item>
			<title><![CDATA[CDBL]]></title>
			<link>https://msxvillage.fr/wiki/cdbl</link>
			<guid>https://msxvillage.fr/wiki/cdbl</guid>
			<description><![CDATA[<fieldset class="formatter-container formatter-fieldset" style=""><legend><strong><span style="font-size: 20px;">CDBL</span></strong></legend><div class="formatter-content">Fonction qui permet de convertir un nombre en double précision.<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/cdbl">CDBL</a> (nombre)</td>
     </tr>
</table><br />
<br />
Par défaut les nombres sont en double précision avec le MSX-Basic.<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.14159265358979323846264<br />
                               20 <a href="https://msxvillage.fr/wiki/print">PRINT</a> <a href="https://msxvillage.fr/wiki/cdbl">CDBL</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">Le nombre affiché sera en double précision : 3,1415926535898.</td>
    </tr>
</table><br />
<br />
</div></fieldset>]]></description>
			<pubDate>Tue, 03 May 2022 12:03:56 +0200</pubDate>
			
		</item>
		
		<item>
			<title><![CDATA[CONT]]></title>
			<link>https://msxvillage.fr/wiki/cont</link>
			<guid>https://msxvillage.fr/wiki/cont</guid>
			<description><![CDATA[<fieldset class="formatter-container formatter-fieldset" style=""><legend><strong><span style="font-size: 20px;">CONT</span></strong></legend><div class="formatter-content">Commande utilisée pour reprendre un programme à partir de son interruption.<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/cont">CONT</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"><img src="https://msxvillage.fr/wiki/images/cont_e4601.jpg" alt="" class="valign_" /></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">Après avoir lancé le programme de l'exemple, celui-ci est interrompu par un CTRL+STOP. Le <a href="https://msxvillage.fr/wiki/cont">CONT</a> permet de reprendre l'exécution du programme là où il en était.</td>
    </tr>
</table><br />
<br />
</div></fieldset>]]></description>
			<pubDate>Mon, 09 Aug 2010 14:53:50 +0200</pubDate>
			
		</item>
		
		<item>
			<title><![CDATA[COLOR]]></title>
			<link>https://msxvillage.fr/wiki/color</link>
			<guid>https://msxvillage.fr/wiki/color</guid>
			<description><![CDATA[<fieldset class="formatter-container formatter-fieldset" style=""><legend><strong><span style="font-size: 20px;">COLOR</span></strong></legend><div class="formatter-content">Instruction qui permet de modifier les couleurs à l'écran, avec des variantes pour l'affichage, pour la modification de la palette de couleurs ou pour les sprites.<br />
<br />
<h3 class="formatter-title">Affichage :</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/color">COLOR</a> [couleur d'écriture][, couleur de fond][, couleur de bordure]</td>
     </tr>
</table><br />
<br />
Les crochets indiquent un contenu optionnel, et bien qu'un <a href="https://msxvillage.fr/wiki/color">COLOR</a> seul n'ait pas beaucoup d'effet ni d'intérêt a priori, on verra plus bas que ce n'est pas forcément le cas !<br />
<br />
Les nombres correspondant aux couleurs sont à choisir en fonction du mode d'affichage dans lequel on se trouve et d'une éventuelle modification de palette.<br />
<br />
Les codes de couleur par défaut, hormis le mode graphique <a href="https://msxvillage.fr/wiki/screen">SCREEN</a> 8, sont les suivants :<br />
<br />
<table class="formatter-table">
        <tr class="formatter-table-row">
                <td class="formatter-table-col"><p style="text-align: center;"><strong>Code</strong></p></td>
                <td class="formatter-table-col"><p style="text-align: center;"><strong>Couleur</strong></p></td>
                <td class="formatter-table-col"><p style="text-align: center;"><strong>Intensité R</strong></p></td>
                <td class="formatter-table-col"><p style="text-align: center;"><strong>Intensité V</strong></p></td>
                <td class="formatter-table-col"><p style="text-align: center;"><strong>Intensité B</strong></p></td>
                <td class="formatter-table-col"><p style="text-align: center;"><strong>Code</strong></p></td>
                <td class="formatter-table-col"><p style="text-align: center;"><strong>Couleur</strong></p></td>
                <td class="formatter-table-col"><p style="text-align: center;"><strong>Intensité R</strong></p></td>
                <td class="formatter-table-col"><p style="text-align: center;"><strong>Intensité V</strong></p></td>
                <td class="formatter-table-col"><p style="text-align: center;"><strong>Intensité B</strong></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;">transparent</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>
                <td class="formatter-table-col"><p style="text-align: center;">0</p></td>
        <td class="formatter-table-col"><p style="text-align: center;">8</p></td>
        <td class="formatter-table-col"><p style="text-align: center;">rouge</p></td>
                <td class="formatter-table-col"><p style="text-align: center;">7</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>
    <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;">noir</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>
                <td class="formatter-table-col"><p style="text-align: center;">0</p></td>
        <td class="formatter-table-col"><p style="text-align: center;">9</p></td>
        <td class="formatter-table-col"><p style="text-align: center;">rouge clair</p></td>
                <td class="formatter-table-col"><p style="text-align: center;">7</p></td>
                <td class="formatter-table-col"><p style="text-align: center;">3</p></td>
                <td class="formatter-table-col"><p style="text-align: center;">3</p></td>
    </tr>
    <tr class="formatter-table-row">
        <td class="formatter-table-col"><p style="text-align: center;">2</p></td>
        <td class="formatter-table-col"><p style="text-align: center;">vert</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;">6</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;">10</p></td>
        <td class="formatter-table-col"><p style="text-align: center;">jaune foncé</p></td>
                <td class="formatter-table-col"><p style="text-align: center;">6</p></td>
                <td class="formatter-table-col"><p style="text-align: center;">6</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;">3</p></td>
        <td class="formatter-table-col"><p style="text-align: center;">vert clair</p></td>
                <td class="formatter-table-col"><p style="text-align: center;">3</p></td>
                <td class="formatter-table-col"><p style="text-align: center;">7</p></td>
                <td class="formatter-table-col"><p style="text-align: center;">3</p></td>
        <td class="formatter-table-col"><p style="text-align: center;">11</p></td>
        <td class="formatter-table-col"><p style="text-align: center;">jaune clair</p></td>
                <td class="formatter-table-col"><p style="text-align: center;">6</p></td>
                <td class="formatter-table-col"><p style="text-align: center;">6</p></td>
                <td class="formatter-table-col"><p style="text-align: center;">4</p></td>
    </tr>
    <tr class="formatter-table-row">
        <td class="formatter-table-col"><p style="text-align: center;">4</p></td>
        <td class="formatter-table-col"><p style="text-align: center;">bleu foncé</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>
                <td class="formatter-table-col"><p style="text-align: center;">7</p></td>
        <td class="formatter-table-col"><p style="text-align: center;">12</p></td>
        <td class="formatter-table-col"><p style="text-align: center;">vert foncé</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;">4</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;">5</p></td>
        <td class="formatter-table-col"><p style="text-align: center;">bleu clair</p></td>
                <td class="formatter-table-col"><p style="text-align: center;">2</p></td>
                <td class="formatter-table-col"><p style="text-align: center;">3</p></td>
                <td class="formatter-table-col"><p style="text-align: center;">7</p></td>
        <td class="formatter-table-col"><p style="text-align: center;">13</p></td>
        <td class="formatter-table-col"><p style="text-align: center;">magenta</p></td>
                <td class="formatter-table-col"><p style="text-align: center;">6</p></td>
                <td class="formatter-table-col"><p style="text-align: center;">2</p></td>
                <td class="formatter-table-col"><p style="text-align: center;">5</p></td>
    </tr>
    <tr class="formatter-table-row">
        <td class="formatter-table-col"><p style="text-align: center;">6</p></td>
        <td class="formatter-table-col"><p style="text-align: center;">rouge foncé</p></td>
                <td class="formatter-table-col"><p style="text-align: center;">5</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>
        <td class="formatter-table-col"><p style="text-align: center;">14</p></td>
        <td class="formatter-table-col"><p style="text-align: center;">gris</p></td>
                <td class="formatter-table-col"><p style="text-align: center;">5</p></td>
                <td class="formatter-table-col"><p style="text-align: center;">5</p></td>
                <td class="formatter-table-col"><p style="text-align: center;">5</p></td>
    </tr>
    <tr class="formatter-table-row">
        <td class="formatter-table-col"><p style="text-align: center;">7</p></td>
        <td class="formatter-table-col"><p style="text-align: center;">bleu ciel</p></td>
                <td class="formatter-table-col"><p style="text-align: center;">2</p></td>
                <td class="formatter-table-col"><p style="text-align: center;">6</p></td>
                <td class="formatter-table-col"><p style="text-align: center;">7</p></td>
        <td class="formatter-table-col"><p style="text-align: center;">15</p></td>
        <td class="formatter-table-col"><p style="text-align: center;">blanc</p></td>
                <td class="formatter-table-col"><p style="text-align: center;">7</p></td>
                <td class="formatter-table-col"><p style="text-align: center;">7</p></td>
                <td class="formatter-table-col"><p style="text-align: center;">7</p></td>
    </tr>
</table><br />
<br />
En <a href="https://msxvillage.fr/wiki/screen">SCREEN</a> 8, le code couleur est déterminé par la formule suivante :<br />
<br />
couleur = 4*intensité rouge + 32*intensité vert + intensité bleu, avec les intensités rouge et bleu pouvant varier de 0 à 7, et l'intensité de bleu pouvant varier de 0 à 3. Ce qui nous donne 256 couleurs au choix.<br />
Pour avoir par exemple le bleu clair "traditionnel", on aura 4*2 + 32*3 + 7 = 8 + 96 +7 = 111.<br />
<br />
<span style="text-decoration: underline;">Cas particulier du <a href="https://msxvillage.fr/wiki/screen">SCREEN</a> 6</span><br />
<br />
Le <a href="https://msxvillage.fr/wiki/screen">SCREEN</a> 6 n'utilise que les couleurs allant de 0 à 3, mais possède une propriété particulière en ce qui concerne la couleur de bordure : elle peut être hachurée verticalement, en utilisant les codes couleurs allant de 16 à 31. La hachure ne peut comporter que des couleurs utilisables dans ce mode, soit de 0 à 3. Chaque code couleur de 16 à 31 donnera donc des hachures faites à base de combinaisons des couleurs allant de 0 à 3, suivant ce tableau :<br />
<br />
<br />
<table class="formatter-table">
        <tr class="formatter-table-row">
                <td class="formatter-table-col"><p style="text-align: center;"><strong>Code</strong></p></td>
                <td class="formatter-table-col"><p style="text-align: center;"><strong>Combinaison</strong></p></td>
                <td class="formatter-table-col"><p style="text-align: center;"><strong>Code</strong></p></td>
                <td class="formatter-table-col"><p style="text-align: center;"><strong>Combinaison</strong></p></td>
      </tr>
    <tr class="formatter-table-row">
        <td class="formatter-table-col"><p style="text-align: center;">16</p></td>
        <td class="formatter-table-col"><p style="text-align: center;">0-0</p></td>
                <td class="formatter-table-col"><p style="text-align: center;">24</p></td>
                <td class="formatter-table-col"><p style="text-align: center;">2-0</p></td>
        </tr>
    <tr class="formatter-table-row">
        <td class="formatter-table-col"><p style="text-align: center;">17</p></td>
        <td class="formatter-table-col"><p style="text-align: center;">0-1</p></td>
                <td class="formatter-table-col"><p style="text-align: center;">25</p></td>
                <td class="formatter-table-col"><p style="text-align: center;">2-1</p></td>
    </tr>
    <tr class="formatter-table-row">
        <td class="formatter-table-col"><p style="text-align: center;">18</p></td>
        <td class="formatter-table-col"><p style="text-align: center;">0-2</p></td>
                <td class="formatter-table-col"><p style="text-align: center;">26</p></td>
                <td class="formatter-table-col"><p style="text-align: center;">2-2</p></td>
    </tr>
    <tr class="formatter-table-row">
        <td class="formatter-table-col"><p style="text-align: center;">19</p></td>
        <td class="formatter-table-col"><p style="text-align: center;">0-3</p></td>
                <td class="formatter-table-col"><p style="text-align: center;">27</p></td>
                <td class="formatter-table-col"><p style="text-align: center;">2-3</p></td>
    </tr>
    <tr class="formatter-table-row">
        <td class="formatter-table-col"><p style="text-align: center;">20</p></td>
        <td class="formatter-table-col"><p style="text-align: center;">1-0</p></td>
                <td class="formatter-table-col"><p style="text-align: center;">28</p></td>
                <td class="formatter-table-col"><p style="text-align: center;">3-0</p></td>
    </tr>
    <tr class="formatter-table-row">
        <td class="formatter-table-col"><p style="text-align: center;">21</p></td>
        <td class="formatter-table-col"><p style="text-align: center;">1-1</p></td>
                <td class="formatter-table-col"><p style="text-align: center;">29</p></td>
                <td class="formatter-table-col"><p style="text-align: center;">3-1</p></td>
    </tr>
    <tr class="formatter-table-row">
        <td class="formatter-table-col"><p style="text-align: center;">22</p></td>
        <td class="formatter-table-col"><p style="text-align: center;">1-2</p></td>
                <td class="formatter-table-col"><p style="text-align: center;">30</p></td>
                <td class="formatter-table-col"><p style="text-align: center;">3-2</p></td>
    </tr>
    <tr class="formatter-table-row">
        <td class="formatter-table-col"><p style="text-align: center;">23</p></td>
        <td class="formatter-table-col"><p style="text-align: center;">1-3</p></td>
                <td class="formatter-table-col"><p style="text-align: center;">25</p></td>
                <td class="formatter-table-col"><p style="text-align: center;">3-3</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/screen">SCREEN</a> 6<br />
                        20 <a href="https://msxvillage.fr/wiki/color">COLOR</a> 1,1,23<br />
                        30 <a href="https://msxvillage.fr/wiki/goto">GOTO</a> 30</td>
     </tr>
</table><br />
<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/sc6.jpg" alt="" class="valign_" /></td>
     </tr>
</table><br />
<br />
<br />
<h3 class="formatter-title">Modification de la palette :</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/color">COLOR</a>=(code couleur, intensité en rouge, intensité en vert, intensité en bleu)</td>
     </tr>
         <tr class="formatter-table-row">
        <td class="formatter-table-col"><a href="https://msxvillage.fr/wiki/color">COLOR</a>[=<a href="https://msxvillage.fr/wiki/new">NEW</a>]</td>
     </tr>
         <tr class="formatter-table-row">
        <td class="formatter-table-col"><a href="https://msxvillage.fr/wiki/color">COLOR</a>=<a href="https://msxvillage.fr/wiki/restore">RESTORE</a></td>
     </tr>
</table><br />
<br />
Cette fois on modifie les composantes même du code couleur original. Les intensités peuvent ici varier de 0 à 7 chacune.<br />
<br />
La syntaxe <a href="https://msxvillage.fr/wiki/color">COLOR</a>=<a href="https://msxvillage.fr/wiki/new">NEW</a> permet ici de reprendre les réglages de la palette par défaut.<br />
<br />
Quant à <a href="https://msxvillage.fr/wiki/color">COLOR</a>=<a href="https://msxvillage.fr/wiki/restore">RESTORE</a>, son emploi se fait lors du chargement via <a href="https://msxvillage.fr/wiki/bload">BLOAD</a>"...", S. Cette commande restaurera les couleurs telles qu'elles étaient lors de la sauvegarde, dans les tables de la VRAM afférentes.<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">On souhaite modifier la couleur grise de code 14, en un gris plus foncé.<br />
                        Il suffit de taper :<br />
                        <a href="https://msxvillage.fr/wiki/color">COLOR</a>=(14,3,3,3)<br />
<br />
                        La couleur 14 sera désormais un gris foncé.<br />
<br />
                        Taper ensuite <a href="https://msxvillage.fr/wiki/color">COLOR</a> ou <a href="https://msxvillage.fr/wiki/color">COLOR</a>=<a href="https://msxvillage.fr/wiki/new">NEW</a> aura pour effet de remettre le gris à ses composantes initiales</td>
     </tr>
</table><br />
<br />
<h3 class="formatter-title">Couleur des sprites :</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/color">COLOR</a>=(code couleur, intensité en rouge, intensité en vert, intensité en bleu)</td>
     </tr>
         <tr class="formatter-table-row">
        <td class="formatter-table-col"><a href="https://msxvillage.fr/wiki/color">COLOR</a> <a href="https://msxvillage.fr/wiki/sprite">SPRITE</a> (numéro de sprite) = code couleur</td>
     </tr>
         <tr class="formatter-table-row">
        <td class="formatter-table-col"><a href="https://msxvillage.fr/wiki/color">COLOR</a> <a href="https://msxvillage.fr/wiki/sprite">SPRITE$</a> (numéro de sprite) = "chaîne de caractères"</td>
     </tr>
</table><br />
<br />
La première syntaxe sert à déterminer la couleur du sprite dont on donne le numéro, et ce pour les modes graphiques 4, 5, 6, 7 et 8.<br />
<br />
Deux variantes sont alors possibles :<br />
 - En ajoutant 32 au code couleur, l'instruction <a href="https://msxvillage.fr/wiki/on">ON</a> [lmink=sprite]SPRITE[/link] <a href="https://msxvillage.fr/wiki/gosub">GOSUB</a> n'est plus prise en compte pour le sprite en question.<br />
- En ajoutant 64 au code couleur, la collision de sprites est également annulée, mais aussi la priorité à l'écran (plus le numéro de plan du sprite est petit, plus il est prioritaire sur les autres) et enfin, en cas de chevauchement avec un autre, une opération logique <a href="https://msxvillage.fr/wiki/or">OR</a> est effectuée entre les codes couleur des 2 sprites pour déterminer la couleur à afficher.<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$=""<br />
                        30 <a href="https://msxvillage.fr/wiki/for">FOR</a> I = 1 <a href="https://msxvillage.fr/wiki/to">TO</a> 8<br />
                        40 <a href="https://msxvillage.fr/wiki/read">READ</a> A : A$=A$ + <a href="https://msxvillage.fr/wiki/chr">CHR$</a>(A)<br />
                        50 <a href="https://msxvillage.fr/wiki/next">NEXT</a> I<br />
                        60 <a href="https://msxvillage.fr/wiki/sprite">SPRITE$</a>(0)=A$<br />
                        70 <a href="https://msxvillage.fr/wiki/color">COLOR</a> <a href="https://msxvillage.fr/wiki/sprite">SPRITE</a>(0)=6<br />
                        80 <a href="https://msxvillage.fr/wiki/put">PUT</a> <a href="https://msxvillage.fr/wiki/sprite">SPRITE</a> 0,(100,100),,0<br />
                        90 <a href="https://msxvillage.fr/wiki/data">DATA</a> 255,99,99,255,255,99,99,99,255<br />
                       100 <a href="https://msxvillage.fr/wiki/goto">GOTO</a> 100</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 sprite de couleur rouge sera affiché au point de coordonnées 100,100. Sa couleur lui est donnée par la ligne 70 du programme.</td>
     </tr>
</table><br />
<br />
La deuxième syntaxe sert elle à déterminer la couleur d'une ligne d'un sprite pour les modes graphiques 4, 5, 6, 7 et 8. Pour une utilisation plus simple et plus explicite, il est conseillé de l'utiliser avec les codes ASCII et la fonction <a href="https://msxvillage.fr/wiki/chr">CHR$</a> en remplacement de la chaîne de caractères, ou d'une variable chaîne ayant été définie de cette manière.<br />
Par exemple, <a href="https://msxvillage.fr/wiki/chr">CHR$</a>(4) signifiera qu'on souhaite une couleur bleue pour la ligne de sprite qu'on traite.<br />
Pour un sprite, il faudra donc une ligne de type :<br />
<a href="https://msxvillage.fr/wiki/color">COLOR</a> <a href="https://msxvillage.fr/wiki/sprite">SPRITE$</a>(numéro de sprite) = <a href="https://msxvillage.fr/wiki/chr">CHR$</a>(code couleur ligne 1) + <a href="https://msxvillage.fr/wiki/chr">CHR$</a>(code couleur ligne 2) + ...<br />
<br />
De la même façon que pour la syntaxe précédente, le fait d'ajouter certains nombres au code couleur aura des effets particuliers. Les 2 variantes pour <a href="https://msxvillage.fr/wiki/color">COLOR</a> <a href="https://msxvillage.fr/wiki/sprite">SPRITE</a> sont valables également pour <a href="https://msxvillage.fr/wiki/color">COLOR</a> <a href="https://msxvillage.fr/wiki/sprite">SPRITE$</a>, à ceci près que ce n'est plus le sprite entier qui est concerné, mais la ligne correspondante.<br />
Il faut ajouter une autre variante, celle où on ajoute 128 au code couleur. Cette fois, cet ajout aura comme effet de décaler de 32 pixels vers la gauche la ligne de sprite traitée. Cette possibilité s'avère très utile pour les problèmes d'apparition de sprites depuis le côté gauche de l'écran.<br />
<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$=""<br />
                        30 <a href="https://msxvillage.fr/wiki/for">FOR</a> I = 1 <a href="https://msxvillage.fr/wiki/to">TO</a> 8<br />
                        40 <a href="https://msxvillage.fr/wiki/read">READ</a> A : A$=A$ + <a href="https://msxvillage.fr/wiki/chr">CHR$</a>(A)<br />
                        50 <a href="https://msxvillage.fr/wiki/next">NEXT</a> I<br />
                        60 <a href="https://msxvillage.fr/wiki/sprite">SPRITE$</a>(0)=A$<br />
                        70 B$=<a href="https://msxvillage.fr/wiki/chr">CHR$</a>(2) + <a href="https://msxvillage.fr/wiki/chr">CHR$</a>(3) +<a href="https://msxvillage.fr/wiki/chr">CHR$</a>(4) + <a href="https://msxvillage.fr/wiki/chr">CHR$</a>(5) +<a href="https://msxvillage.fr/wiki/chr">CHR$</a>(6) + <a href="https://msxvillage.fr/wiki/chr">CHR$</a>(7) +<a href="https://msxvillage.fr/wiki/chr">CHR$</a>(8) + <a href="https://msxvillage.fr/wiki/chr">CHR$</a>(9)<br />
                        80 <a href="https://msxvillage.fr/wiki/color">COLOR</a> <a href="https://msxvillage.fr/wiki/sprite">SPRITE$</a>(0)=B$<br />
                        90 <a href="https://msxvillage.fr/wiki/put">PUT</a> <a href="https://msxvillage.fr/wiki/sprite">SPRITE</a> 0,(100,100),,0<br />
                        100 <a href="https://msxvillage.fr/wiki/data">DATA</a> 255,99,99,255,255,99,99,99,255<br />
                       110 <a href="https://msxvillage.fr/wiki/goto">GOTO</a> 110</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 sprite rayé de multiples couleurs sera affiché au point de coordonnées 100,100. Sa couleur lui est donnée par la ligne 80 du programme.</td>
     </tr>
</table><br />
<br />
</div></fieldset>]]></description>
			<pubDate>Mon, 09 Aug 2010 14:53:00 +0200</pubDate>
			
		</item>
		
		<item>
			<title><![CDATA[CLEAR]]></title>
			<link>https://msxvillage.fr/wiki/clear</link>
			<guid>https://msxvillage.fr/wiki/clear</guid>
			<description><![CDATA[<fieldset class="formatter-container formatter-fieldset" style=""><legend><strong><span style="font-size: 20px;">CLEAR</span></strong></legend><div class="formatter-content">Instruction qui permet de modifier les espaces mémoires attribués aux chaînes de caractères, et programmes en MSX-Basic.<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/clear">CLEAR</a> taille de la mémoire réservée aux chaînes, limite maximale pour les programmes MSX-Basic</td>
     </tr>
</table><br />
<br />
Par défaut la taille réservée aux chaînes est de 200.<br />
<br />
La limite maximale pour les programmes ne peut dépasser l'adresse &HF380 (début de la zone de communication).<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/clear">CLEAR</a> 400,60000</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 faire doubler la taille de l'espace alloué aux chaînes, et pousser la limite des programmes à l'adresse 60000.</td>
    </tr>
</table><br />
<br />
</div></fieldset>]]></description>
			<pubDate>Wed, 28 Oct 2009 09:07:13 +0100</pubDate>
			
		</item>
		
		<item>
			<title><![CDATA[CSNG]]></title>
			<link>https://msxvillage.fr/wiki/csng</link>
			<guid>https://msxvillage.fr/wiki/csng</guid>
			<description><![CDATA[<fieldset class="formatter-container formatter-fieldset" style=""><legend><strong><span style="font-size: 20px;">CSNG</span></strong></legend><div class="formatter-content">Fonction qui permet de convertir un nombre en simple précision.<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/csng">CSNG</a> (nombre)</td>
     </tr>
</table><br />
<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.14159265358979323846264<br />
                               20 <a href="https://msxvillage.fr/wiki/print">PRINT</a> <a href="https://msxvillage.fr/wiki/csng">CSNG</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">Le nombre affiché sera en double précision : 3,14159.</td>
    </tr>
</table><br />
<br />
</div></fieldset>]]></description>
			<pubDate>Mon, 26 Oct 2009 13:22:45 +0100</pubDate>
			
		</item>
		
		<item>
			<title><![CDATA[CLOSE]]></title>
			<link>https://msxvillage.fr/wiki/close</link>
			<guid>https://msxvillage.fr/wiki/close</guid>
			<description><![CDATA[<fieldset class="formatter-container formatter-fieldset" style=""><legend><strong><span style="font-size: 20px;">CLOSE</span></strong></legend><div class="formatter-content">Instruction qui permet de fermer un ou plusieurs fichiers ouverts par le 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/close">CLOSE</a> [#numéro de fichier][,#numéro de fichier][...]</td>
     </tr>
</table><br />
<br />
Les crochets indiquent un contenu optionnel.<br />
<br />
Si les numéros de fichiers sont omis, <a href="https://msxvillage.fr/wiki/close">CLOSE</a> fermera tous les fichiers ouverts.<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/open">OPEN</a> « VILLAGE » <a href="https://msxvillage.fr/wiki/for">FOR</a> OUTPUT AS #1<br />
                               20 <a href="https://msxvillage.fr/wiki/print">PRINT</a>#1, « MSX »<br />
                               30 <a href="https://msxvillage.fr/wiki/close">CLOSE</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 ouvrira le fichier « VILLAGE » en écriture, puis enverra la chaîne « MSX » dans ce fichier, puis <a href="https://msxvillage.fr/wiki/close">CLOSE</a> fermera le fichier.</td>
    </tr>
</table><br />
<br />
</div></fieldset>]]></description>
			<pubDate>Fri, 23 Oct 2009 11:47:01 +0200</pubDate>
			
		</item>
		
		<item>
			<title><![CDATA[CSAVE]]></title>
			<link>https://msxvillage.fr/wiki/csave</link>
			<guid>https://msxvillage.fr/wiki/csave</guid>
			<description><![CDATA[<fieldset class="formatter-container formatter-fieldset" style=""><legend><strong><span style="font-size: 20px;">CSAVE</span></strong></legend><div class="formatter-content">Commande qui permet la sauvegarde d'un programme sur cassette.<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/csave">CSAVE</a> « nom de fichier »[, débit en bauds]</td>
     </tr>
</table><br />
<br />
Les crochets indiquent un contenu optionnel.<br />
<br />
Le débit en bauds peut prendre 2 valeurs : 1 ou 2, correspondant respectivement à 1200 et 2400 bauds. Si ce débit est omis, la valeur par défaut est 1200 bauds.<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/csave">CSAVE</a> «PROG»</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 sera sauvegardé sur cassette avec le nom PROG.</td>
    </tr>
</table><br />
<br />
<h3 class="formatter-title">Remarques :</h3><br />
Le débit en bauds peut aussi être modifié avec l'instruction <a href="https://msxvillage.fr/wiki/screen">SCREEN</a>.<br />
<br />
Les programmes sur cassette n'ont pas d'extension et comportent au maximum 6 caractères.<br />
</div></fieldset>]]></description>
			<pubDate>Thu, 22 Oct 2009 11:35:52 +0200</pubDate>
			
		</item>
		
		<item>
			<title><![CDATA[CIRCLE]]></title>
			<link>https://msxvillage.fr/wiki/circle</link>
			<guid>https://msxvillage.fr/wiki/circle</guid>
			<description><![CDATA[<fieldset class="formatter-container formatter-fieldset" style=""><legend><strong><span style="font-size: 20px;">CIRCLE</span></strong></legend><div class="formatter-content">Instruction qui permet de dessiner un cercle ou un arc de cercle 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/circle">CIRCLE</a>[<a href="https://msxvillage.fr/wiki/step">STEP</a>] (abscisse,ordonnée),rayon[,couleur][,angle de départ][,angle de fin][,coefficient d'aplatissement]</td>
     </tr>
</table><br />
<br />
Les coordonnées sont prises ainsi : origine en haut à gauche, abscisses croissantes vers la droite, ordonnées croissantes vers le bas.<br />
<br />
Le rayon est un entier (même si à proprement parler un nombre négatif est accepté par l'analyseur de syntaxe, c'est totalement inutile !). Il est également inutile d'avoir un rayon qui dépasse la moitié de la résolution horizontale du mode graphique employé, vous ne verriez pas votre cercle !<br />
<br />
La couleur est à choisir parmi celles du mode graphique utilisé avec les contraintes qu'il suppose (voir <a href="https://msxvillage.fr/wiki/color">COLOR</a> et <a href="https://msxvillage.fr/wiki/screen">SCREEN</a>).<br />
<br />
Les angles de début et de fin peuvent être donnés pour avoir un arc de cercle (les angles doivent être exprimés en radians, donc entre 0 et 2Π ). L'angle 0 correspond au segment qui partirait du centre du cercle en allant vers la droite, l'angle Π/2 à celui qui partirait du centre en allant vers le haut, l'angle Π à celui qui partirait du centre en allant vers la gauche, etc.<br />
<br />
Le coefficient d'aplatissement représente le rapport entre la hauteur et la largeur. Il sert pour le dessin d'ellipses. Leur grand axe sera alors le double du rayon. Si ce coefficient est supérieur à 1, l'ellipse sera dans le sens de la hauteur, s'il est inférieur à 1, dans celui de la largeur.<br />
<br />
L'option <a href="https://msxvillage.fr/wiki/step">STEP</a> signifie que les coordonnées indiquées doivent prendre comme origine le dernier point affiché par le programme.<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 PI = 3.14159<br />
                               30 <a href="https://msxvillage.fr/wiki/circle">CIRCLE</a> (100, 100), 50, 15<br />
                               40 <a href="https://msxvillage.fr/wiki/circle">CIRCLE</a> (100, 100), 10, 6, 0, PI/2<br />
                               50 <a href="https://msxvillage.fr/wiki/goto">GOTO</a> 50</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 un cercle de rayon 50 et de couleur blanche, puis un quart de cercle de rayon 10 de couleur rouge.</td>
    </tr>
</table><br />
<br />
</div></fieldset>]]></description>
			<pubDate>Wed, 21 Oct 2009 15:10:34 +0200</pubDate>
			
		</item>
		
	</channel>
</rss>
