2016-07-31 02:20:48 +01:00
|
|
|
# This example shows how to access Video BIOS memory area via machine.mem
|
2023-09-08 20:11:13 +01:00
|
|
|
# It requires root privilege and x86 legacy hardware (which has mentioned
|
2016-07-31 02:20:48 +01:00
|
|
|
# Video BIOS at all).
|
|
|
|
# It is expected to print 0xaa55, which is a signature at the start of
|
|
|
|
# Video BIOS.
|
|
|
|
|
2022-08-19 13:58:37 +01:00
|
|
|
import machine
|
2016-07-31 02:20:48 +01:00
|
|
|
|
|
|
|
print(hex(machine.mem16[0xC0000]))
|