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?

[8086実機実験]BIOSのリセットベクタにjmpしたら無限再起動する?

Posted at

やりたいこと

CPUは電源投入後、メモリ上のFFFF0h(リセットベクタ)から実行を開始し、BIOSの処理を経て、最終的にメモリ 7C00h に読み込まれたブートローダーを実行します。
今回は「ブートローダーから強制的にFFFF0hにジャンプすると、CPUが無限に再起動を繰り返すのではないか?」という仮説の下、実験を行いました。

※UEFIは異なる仕組みで起動しますので、本記事の対象外です。

実験用プログラム

[org 0x7C00]
bits 16

start:
    jmp 0xF000:0xFFF0

times 510-($-$$) db 0
dw 0xAA55

実験結果

以下の方法を用いて8086実機上から実行させています。
https://qiita.com/earthen94/items/10c012ae14545e9f4284

分かり辛いですが、再起動を繰り返しています。
ezgif-3b7c880b7c9d3b.gif

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?