<?xml version="1.0" encoding="UTF-8" ?>
<!-- RSS generated by PHPBoost on Sun, 05 Apr 2026 03:50:44 +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/18" rel="self" type="application/rss+xml"/>
		<link>https://www.msxvillage.fr</link>
		<description><![CDATA[Derniers articles de la catégorie O]]></description>
		<copyright>(C) 2005-2026 PHPBoost</copyright>
		<language>fr</language>
		<generator>PHPBoost</generator>
		
		
		<item>
			<title><![CDATA[OPEN]]></title>
			<link>https://msxvillage.fr/wiki/open</link>
			<guid>https://msxvillage.fr/wiki/open</guid>
			<description><![CDATA[<fieldset class="formatter-container formatter-fieldset" style=""><legend><strong><span style="font-size: 20px;">OPEN</span></strong></legend><div class="formatter-content">Instruction qui permet l'ouverture d'un fichier pour traitement et sa création le cas échéant.<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/open">OPEN</a> « [nom de lecteur :] nom du fichier » [<a href="https://msxvillage.fr/wiki/for">FOR</a> traitement] AS #numéro de fichier</td>
     </tr>
</table><br />
<br />
Les crochets indiquent un contenu optionnel.<br />
<br />
Il peut y avoir plusieurs possibilités pour les noms de lecteurs, car des données peuvent être envoyées à plusieurs endroits :<br />
A à F : lecteurs de disquettes<br />
MEM : disque virtuel<br />
CRT : l'écran en mode texte<br />
GRP : l'écran en mode graphique<br />
LPT : l'imprimante<br />
CAS : le lecteur de cassettes<br />
COM : le port RS232<br />
<br />
Lorsque le <a href="https://msxvillage.fr/wiki/for">FOR</a> traitement est omis, on crée ou on ouvre un fichier à accès aléatoire.<br />
Les différents traitements peuvent être INPUT (pour la lecture des données du fichier), OUTPUT (pour l'écriture sur le fichier) ou APPEND (pour l'extension d'un fichier, uniquement possible avec les fichiers sur disquette ou dans le disque virtuel).<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/open">OPEN</a> « A :TEST.DAT » <a href="https://msxvillage.fr/wiki/for">FOR</a> OUTPUT AS#1</td>
     </tr>
</table><br />
<br />
<table class="formatter-table">
    <tr class="formatter-table-row">
        <th class="formatter-table-head">Résultat</th>
    </tr>
    <tr class="formatter-table-row">
                      <td class="formatter-table-col">Cette ligne de programme va créer et/ou ouvrir pour l'écriture le fichier TEST.DAT sur le lecteur de disquettes A.</td>
    </tr>
</table><br />
<br />
</div></fieldset>]]></description>
			<pubDate>Wed, 28 Oct 2009 11:35:00 +0100</pubDate>
			
		</item>
		
		<item>
			<title><![CDATA[OUT]]></title>
			<link>https://msxvillage.fr/wiki/out</link>
			<guid>https://msxvillage.fr/wiki/out</guid>
			<description><![CDATA[<fieldset class="formatter-container formatter-fieldset" style=""><legend><strong><span style="font-size: 20px;">OUT</span></strong></legend><div class="formatter-content">Instruction qui permet d'envoyer une donnée dans un port du MSX.<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/out">OUT</a> numéro de port, donnée</td>
      </tr>
</table><br />
<br />
<br />
Cette instruction nécessite de connaître les ports utilisés par le MSX. La valeur à envoyer doit être codée sur un octet, elle sera 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/out">OUT</a> &H98, <a href="https://msxvillage.fr/wiki/inp">INP</a>(&H98)</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 précédente ne fera absolument rien, car on envoie comme valeur sur le port son propre contenu !! </td>
        </tr>
</table><br />
<br />
</div></fieldset>]]></description>
			<pubDate>Tue, 27 Oct 2009 11:58:43 +0100</pubDate>
			
		</item>
		
		<item>
			<title><![CDATA[O]]></title>
			<link>https://msxvillage.fr/wiki/o</link>
			<guid>https://msxvillage.fr/wiki/o</guid>
			<description><![CDATA[Liste des instructions commençant par O :]]></description>
			<pubDate>Tue, 20 Oct 2009 10:59:01 +0200</pubDate>
			
		</item>
		
		<item>
			<title><![CDATA[OCT$]]></title>
			<link>https://msxvillage.fr/wiki/oct</link>
			<guid>https://msxvillage.fr/wiki/oct</guid>
			<description><![CDATA[<fieldset class="formatter-container formatter-fieldset" style=""><legend><strong><span style="font-size: 20px;">OCT$</span></strong></legend><div class="formatter-content">Fonction qui convertit un nombre entre -32768 et 65535 en nombre octal.<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/oct">OCT$</a>(nombre)</td>
    </tr>
</table><br />
<br />
<table class="formatter-table">
    <tr class="formatter-table-row">
        <th class="formatter-table-head">Exemple</th>
    </tr>
    <tr class="formatter-table-row">
        <td class="formatter-table-col">10 <a href="https://msxvillage.fr/wiki/print">PRINT</a> <a href="https://msxvillage.fr/wiki/oct">OCT$</a>(65535)<br />
                               20 <a href="https://msxvillage.fr/wiki/print">PRINT</a> <a href="https://msxvillage.fr/wiki/oct">OCT$</a>(-32768)<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 successivement les nombres octaux 177777 et 100000, conversion en octal de 65535 et -32768.</td>
    </tr>
</table><br />
<br />
</div></fieldset>]]></description>
			<pubDate>Fri, 16 Oct 2009 15:27:39 +0200</pubDate>
			
		</item>
		
		<item>
			<title><![CDATA[OR]]></title>
			<link>https://msxvillage.fr/wiki/or</link>
			<guid>https://msxvillage.fr/wiki/or</guid>
			<description><![CDATA[<fieldset class="formatter-container formatter-fieldset" style=""><legend><strong><span style="font-size: 20px;">OR</span></strong></legend><div class="formatter-content">Opérateur logique permettant soit de tester si deux conditions sont satisfaites ou simultanément, ou l'une ou soit l'autre, soit d'appliquer des modifications sur la représentation binaire de deux nombres.<br />
<br />
<table class="formatter-table">
    <tr class="formatter-table-row">
        <th class="formatter-table-head">Syntaxe</th>
    </tr>
    <tr class="formatter-table-row">
        <td class="formatter-table-col">Les opérateurs logiques peuvent agir aussi bien sur des conditions que sur des nombres. Pour des conditions, le résultat en MSX-Basic est -1 pour vrai, 0 pour faux. Pour les nombres, le résultat dépend de la représentation binaire de ceux-ci. Les différents résultats peuvent être placés dans des variables.<br />
<br />
                 La syntaxe est la suivante :<br />
<br />
                operateur1 <a href="https://msxvillage.fr/wiki/or">OR</a> operateur2<br />
</td>
    </tr>
</table><br />
<br />
<table class="formatter-table">
    <tr class="formatter-table-row">
        <th class="formatter-table-head">Exemple de la vie courante</th>
    </tr>
    <tr class="formatter-table-row">
        <td class="formatter-table-col">J'aime les femmes blondes. J'aime aussi les femmes aux yeux bleus. Si je me fais aborder par une femme blonde je suis content. Si c'est une femme aux yeux bleus, je suis content également. Et si c'est une femme blonde aux yeux bleus, c'est bien également. </td>
     </tr>
</table><br />
<br />
Voici le tableau de vérité de l'opérateur (C1 : condition 1, C2 : condition 2, 0 : faux, 1 : vrai)<br />
<br />
<br />
<table class="formatter-table">
           <tr class="formatter-table-row">
        <td class="formatter-table-col"><p style="text-align: center;">C1</p></td>
                <td class="formatter-table-col"><p style="text-align: center;">C2</p></td>
                <td class="formatter-table-col"><p style="text-align: center;">C1 OR C2</p></td>
    </tr>
         <tr class="formatter-table-row">
        <td class="formatter-table-col"><p style="text-align: center;">0</p></td>
                <td class="formatter-table-col"><p style="text-align: center;">0</p></td>
                <td class="formatter-table-col"><p style="text-align: center;">0</p></td>
    </tr>
        <tr class="formatter-table-row">
        <td class="formatter-table-col"><p style="text-align: center;">0</p></td>
                <td class="formatter-table-col"><p style="text-align: center;">1</p></td>
                <td class="formatter-table-col"><p style="text-align: center;">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;">0</p></td>
                <td class="formatter-table-col"><p style="text-align: center;">1</p></td>
    </tr>
        <tr class="formatter-table-row">
        <td class="formatter-table-col"><p style="text-align: center;">1</p></td>
                <td class="formatter-table-col"><p style="text-align: center;">1</p></td>
                <td class="formatter-table-col"><p style="text-align: center;">1</p></td>
    </tr>
</table><br />
<br />
<table class="formatter-table">
    <tr class="formatter-table-row">
        <th class="formatter-table-head">Exemple</th>
    </tr>
    <tr class="formatter-table-row">
        <td class="formatter-table-col">10 <a href="https://msxvillage.fr/wiki/input">INPUT</a> "Quelle est ta couleur d'yeux (vert/marron/bleu)" ;A$<br />
                        20 <a href="https://msxvillage.fr/wiki/input">INPUT</a> "Quelle est ta couleur de cheveux (brun/chatain/blond)" ;B$<br />
                        30 <a href="https://msxvillage.fr/wiki/if">IF</a> A$="bleu" <a href="https://msxvillage.fr/wiki/or">OR</a> B$="blond" <a href="https://msxvillage.fr/wiki/then">THEN</a>  <a href="https://msxvillage.fr/wiki/goto">GOTO</a> 50 <a href="https://msxvillage.fr/wiki/else">ELSE</a> <a href="https://msxvillage.fr/wiki/goto">GOTO</a> 40<br />
                        40 <a href="https://msxvillage.fr/wiki/print">PRINT</a> "Désolé mais tu n'es pas mon style..." : <a href="https://msxvillage.fr/wiki/end">END</a><br />
        50 <a href="https://msxvillage.fr/wiki/print">PRINT</a> "Tu me plais bien toi !"</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 fait d'entrer bleu à la première question, ou blond à la deuxième ou bleu et blond aux deux questions donnera le message sympathique. Tout cas contraire nous renverra le message moins agréable...<br />
</td>
    </tr>
</table><br />
<br />
</div></fieldset>]]></description>
			<pubDate>Wed, 14 Oct 2009 10:21:25 +0200</pubDate>
			
		</item>
		
	</channel>
</rss>
