Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私はアセンブリ言語を学ぶのが初めてで、コマンドが何をint 21h意味するのか疑問に思っています。例えば:
int 21h
mov ah,01h int 21h
これは、ユーザーからキーを読み取る必要があります。
int 21hつまり、DOS 機能ディスパッチャである割り込みハンドラ 0x21 を呼び出します。「mov ah,01h」は AH に 0x01 を設定しています。これは、割り込みでエコー ハンドラを使用したキーボード入力です。見る:
http://spike.scu.edu.au/~barry/interrupts.html
INT 21H は、ソフトウェア割り込み 0x21 (10 進数で 33) を生成し、割り込みテーブルの 34 番目のベクターが指す関数を実行します。これは通常、MS-DOS API 呼び出しです。