1

しばらく前、私はいくつかのチュートリアルに従ってアセンブリを実行していました。私はそれをすべてWindowsマシンで実行し、NASMでコンパイルしてから、コンパイルしたコードをフロッピーディスクに書き込んでから、再起動してコードを試しました。このプロセスは長くて時間がかかり、悲しいことにMacではありませんでした。Xcode for macがNASMをインストールしていることを知ったとき、私はすぐにいくつかのコードをコンパイルしようとしました。コードは正常にコンパイルされました。問題はそれをテストすることです。Macではフロッピーがないので(使用したくない)、これをテストする方法がわかりません。Q(kju)を調べたところ、ISOファイル上のものだけをエミュレートすることがわかりました。だから私は私が尋ねていることは、テストのためにコンパイルされたコードをISOファイルにインストールすることは可能ですか?(注:コンパイル時のコードは.binファイルを形成します)

助けてくれてありがとう

4

1 に答える 1

1

I don't know exactly what you are trying to test (a boot loader maybe?) but you don't need to reboot or boot from a disk just to run assembled code (unless it is a boot loader or something).

Either way, if you need to "reboot" to test, I suggest running an emulator. Sun VirtualBox is super easy to use and free and emulates a standard x86 architecture (including floppy drives)! So that may work for you in the short term. If you ever want to create an ISO image in the future, you can do that with the command line utility hdiutil. In a terminal window, type man hdiutil or visit the online man page for more information on using that to create all kinds of disk images.

于 2010-04-18T15:43:35.110 に答える