1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

i8080 アセンブラ

Last updated at Posted at 2014-08-26

#i8080 ニーモニック

mvi a, 00h  aレジに0x00をセット
mov a, d    dレジの内容をaレジにセット
sta 81e0h   aレジの内容をメモリ0X81e0にセット
lda 81e0h   aレジにメモリ0X81e0の内容をセット
inr a       a++
cpi 100     aレジの内容と100を比較、aレジの内容は変わらん
            フラグ変わる
sui 100     aレジの内容から100を引く、フラグ変わる
adi 100     aレジの内容に100を足す、フラグ変わる
jmp loop    loopに飛ぶ 
jz skip     zフラグが立った、skipに飛ぶ
jnz skip    zフラグが立たない、skipに飛ぶ
jc skip     cフラグが立った、skipに飛ぶ
jnc skip    cフラグが立たない、skipに飛ぶ
hlt         停止
push psw    aレジの内容とフラグをスタックに積む
pop psw     aレジの内容とフラグをスタックから取り出す
call echo   サブルーチンechoを呼ぶ
ret         サブルーチンから戻る
out 92h     i/oの0X92にaレジの内容をセット

#実行環境

jsdo ohisama1

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?