Is there a way to manually change BIOS POST codes on motherboard LCD?

不打扰是莪最后的温柔 提交于 2021-01-29 14:26:31

问题


I was wondering if anyone knew if it was possible to change the BIOS POST Code that is displayed on the motherboard LCD. I want to develop a program that can manipulate the LCD screen on the motherboard to display any set of desired characters. I haven't been able to find anyone who has done something similar. Does anyone have any ideas on if this is possible? Thank You!


回答1:


POST codes are usually displayed on LED devices on the motherboard, not LCD. Historically, POST codes can be output via IO port 0x80 on IBM/Intel compatible systems. Been a while since I have done x86 assembly, but would be something like this:

mov al, 41h   ;41h, the value to output
out 80h, al   ;send the value to IO port 80h

This will make "41" display on the POST code LEDs. If you have 4 LEDs (a four digit value), then use AX instead of AL or use port 81h and a second write.

mov ax, 5150h ;5150h, the value to output
out 80h, al   ;send the value to IO port 80h

Note: as I recall in/out instructions are protected instructions and will generate an exeception when the CPU is in protected mode (e.g. from the Windows command line)



来源:https://stackoverflow.com/questions/57937983/is-there-a-way-to-manually-change-bios-post-codes-on-motherboard-lcd

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!