<?xml version="1.0" encoding="UTF-8" ?>
<!-- RSS generated by PHPBoost on Sun, 05 Apr 2026 03:50:43 +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/25" rel="self" type="application/rss+xml"/>
		<link>https://www.msxvillage.fr</link>
		<description><![CDATA[Derniers articles de la catégorie X]]></description>
		<copyright>(C) 2005-2026 PHPBoost</copyright>
		<language>fr</language>
		<generator>PHPBoost</generator>
		
		
		<item>
			<title><![CDATA[X]]></title>
			<link>https://msxvillage.fr/wiki/x</link>
			<guid>https://msxvillage.fr/wiki/x</guid>
			<description><![CDATA[Liste des instructions commençant par X :]]></description>
			<pubDate>Tue, 20 Oct 2009 11:06:38 +0200</pubDate>
			
		</item>
		
		<item>
			<title><![CDATA[XOR]]></title>
			<link>https://msxvillage.fr/wiki/xor</link>
			<guid>https://msxvillage.fr/wiki/xor</guid>
			<description><![CDATA[<fieldset class="formatter-container formatter-fieldset" style=""><legend><strong><span style="font-size: 20px;">XOR</span></strong></legend><div class="formatter-content">Opérateur logique permettant soit de tester si l'une ou  l'autre exclusivement de deux conditions sont satisfaites, 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.<br />
<br />
                 La syntaxe est la suivante :<br />
<br />
                operateur1 <a href="https://msxvillage.fr/wiki/xor">XOR</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 belles femmes. J'aime aussi les femmes intelligentes. Par contre, comme je suis méfiant et jaloux, je ne veux pas prendre le risque d'avoir une femme belle et intelligente à la fois, après elle sera la proie de tous les séducteurs de la planète. Si une femme est belle, je l'épouse, si elle est intelligente, même chose, mais surtout pas les deux à la fois, ni aucune des deux conditions. </td>
     </tr>
</table><br />
<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 XOR 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;">0</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> "Es-tu belle (O/N)" ;A$<br />
                        20 <a href="https://msxvillage.fr/wiki/input">INPUT</a> "Es-tu intelligente (O/N)" ;B$<br />
                        30 <a href="https://msxvillage.fr/wiki/if">IF</a> A$="O" <a href="https://msxvillage.fr/wiki/xor">XOR</a> B$="O" <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 O à l'une ou l'autre des questions donnera le message sympathique. Tout cas contraire nous renverra le message moins agréable...<br />
</td>
    </tr>
</table><br />
</div></fieldset>]]></description>
			<pubDate>Wed, 14 Oct 2009 10:26:05 +0200</pubDate>
			
		</item>
		
	</channel>
</rss>
