0
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?

Z80の命令(一部)

Last updated at Posted at 2025-09-30

いろいろ注意

  • 予定は、未定

参考

o_coq971.jpg

o_coq972.jpg

o_coq973.jpg

例(要確認)(各自、確認の事)


やりたい事、Aは12か比較して、同じ時は、Bは、56で違い時は、Bは、45
if( A == 12 ) {b = 56;} else {b = 45;}

      LA A,12      Aに12を入れる

      LA B,45      Bに45を入れる
      SUB A,12     A == 12と比較する(a = a - 12)
      JP NZ,NEXT1  A == 12以外は、NETX1へ
      LA B,56      Bに56を入れる
NEXT1 



mem[0] = 0xAF;                               // xor a
mem[1] = 0x3C;                               // inc a
mem[2] = 0x32; mem[3] = 0x32; mem[4] = 0x00; // ld(0x0032) a
mem[5] = 0x76;                               // halt


AF 3C 32 32 00

0
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
0
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?