asm 關鍵字用於宣告內聯彙編程式碼。使用 Windows 編譯器時,使用 __asm 關鍵字代替。此處 asm 關鍵字不執行任何操作。
asm { mov al, 4 mov dx, 0xD007 out dx, al }