跳至內容
Don Wiki
使用者工具
登入
網站工具
搜尋
工具
顯示頁面
舊版
反向連結
最近更新
多媒體管理器
網站地圖
登入
>
最近更新
多媒體管理器
網站地圖
足跡:
uefi_debug_method
本頁是唯讀的,您可以看到原始碼,但不能更動它。您如果覺得它不應被鎖上,請詢問管理員。
====== UEFI DEBUG METHOD ====== ===== OUTPUT 80H 81H DEBUG CODE ===== 輸出常數確認程式是否有執行 <code> //DonRtest S+ for(int i=0;i<800;i++) { for(int j=0;j<100;j++) { IoWrite8(0x81,0xAA); IoWrite8(0x80,0x55); } } //DonRtest E+ </code> 輸出8位元變數 <code> //DonRtest S+ UINT8 RegRead; //DonRtest RegRead=MmioRead8(0xFE001020); for(int i=0;i<800;i++) { for(int j=0;j<100;j++) { IoWrite8(0x81,0x33); IoWrite8(0x80,RegRead); } } //DonRtest E+ </code> 輸出32位元變數 <code> //DonRtest S+ UINT32 RegisterValue; UINT8 bytes[4]; bytes[0] = (UINT8)(RegisterValue & 0xFF); // LOW Byte (LSB) bytes[1] = (UINT8)((RegisterValue >> 8) & 0xFF); bytes[2] = (UINT8)((RegisterValue >> 16) & 0xFF); bytes[3] = (UINT8)((RegisterValue >> 24) & 0xFF); // High Byte (MSB) for(int y=0;y<4;y++) { for(int i=0;i<800;i++) { for(int j=0;j<100;j++) { IoWrite8(0x81,0xAA); IoWrite8(0x80,bytes[y]); } } } //DonRtest E+ </code>
uefi_debug_method.txt
· 上一次變更: 2025/11/26 17:04 由
don
頁面工具
顯示頁面
舊版
反向連結
回到頁頂