Skip to content

Instantly share code, notes, and snippets.

@yang-wei
Created January 10, 2015 01:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yang-wei/2327a4f019f6abc345f9 to your computer and use it in GitHub Desktop.
Save yang-wei/2327a4f019f6abc345f9 to your computer and use it in GitHub Desktop.
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