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?

SimulIde_Z80CPUの命令が実行できているか確認

0
Posted at

目的

SimulIdeでz80の実験をしていきます。
メモリに書き込んだ機械語が本当に動いているのか不安なので、レジスタに数値を書き込み値が変わるかを確認します。

以下の記事でも検証しましたが、A0ピンに電気が流れていたのは偶然だったのではないかと不安になったのでもう一度確かめます。
z80のA0ピンでLEDを光らせる

機械語

z80asm -o simz80.bin simz80.asm
simz80.asm
ld a, 1
ld b, 2
ld c, 3
ld d, 4
halt

動作確認

A,B,C,Dそれぞれの汎用レジスタに意図した値が格納されています。

截图 2026-10-02 14-25-41
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?