micropython/examples/unix/machine_bios.py
Thomas c854d0e3e1 examples/unix/machine_bios.py: Fix typo.
Signed-off-by: Thomas <th.acker.0302@gmail.com>
2023-09-29 17:02:15 +10:00

10 lines
307 B
Python

# This example shows how to access Video BIOS memory area via machine.mem
# It requires root privilege and x86 legacy hardware (which has mentioned
# Video BIOS at all).
# It is expected to print 0xaa55, which is a signature at the start of
# Video BIOS.
import machine
print(hex(machine.mem16[0xC0000]))