blob: 878f3fd8f3c58500db85143c51f6f07b180541af [file] [log] [blame]
Paul Sokolovskyeb0e3ba2016-07-31 04:20:48 +03001# This example shows how to access Video BIOS memory area via machine.mem
2# It requires root privilege and x86 legacy harfware (which has mentioned
3# Video BIOS at all).
4# It is expected to print 0xaa55, which is a signature at the start of
5# Video BIOS.
6
7import umachine as machine
8
Damien George69661f32020-02-27 15:36:53 +11009print(hex(machine.mem16[0xC0000]))