Created
January 10, 2015 01:46
-
-
Save yang-wei/2327a4f019f6abc345f9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ORG 7000H ;プログラム開始番地 | |
KURIKAE: LD C,30H ;SWO-7のI/Oアドレス指定 | |
IN A, (C) ;SWO-7からデータの入力 | |
OUT (11H), A ;入力データをLEDに出力 | |
CP AA ;奇数スイッチがON | |
JP Z,OWARI ;Yes -> サブルーチンを終了 | |
JP KURIKAE ;No -> データ入力を繰り返す | |
OWARI: NOP ;ブレークポイントの位置 | |
END ; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment