<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>B-CHAN</author_name>
  <author_url>https://blog.hatena.ne.jp/B-CHAN/</author_url>
  <blog_title>非天マザー by B-CHAN</blog_title>
  <blog_url>https://www.b-chan.jp/</blog_url>
  <categories>
    <anon>プログラム</anon>
  </categories>
  <description>MSX ボクは幼い頃、MSXと言うパソコンでプログラミングしていました。 今回の話は別にMSXに限らないんですが。 プログラムの中で、 IF文 を多用すると動作が遅くなるので、なるべく使わないように、と学びました。 論理演算 そこで登場するのが論理演算です。 例えば、MSX-BASICでは、カーソルキーの上方向が押されると数値の1で下方向は5、右方向は3で左方向は7を返す関数があります。 STICK と言う関数です。 なので、 もし、カーソルキーの上が押されたら、縦方向（Y座標）をマイナス1せよ、 と書く場合、IF文を使えば、 IF STICK(0)=1 THEN Y=Y-1 と書くんです。 …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.b-chan.jp%2Fentry%2Fprogramming%2Flogical-operation&quot; title=&quot;プログラミングで論理演算に感動した子供の頃 - 非天マザー by B-CHAN&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn.user.blog.st-hatena.com/default_entry_og_image/164090/151424731416075</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2023-09-18 00:30:00</published>
  <title>プログラミングで論理演算に感動した子供の頃</title>
  <type>rich</type>
  <url>https://www.b-chan.jp/entry/programming/logical-operation</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
