summaryrefslogtreecommitdiffstatshomepage
path: root/examples/unix/machine_bios.py
blob: 4644d3e2b2a92b8463ef8fd383db01c3e662d963 (plain) (blame)
1
2
3
4
5
6
7
8
9
# 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]))