Paul Sokolovsky | eb0e3ba | 2016-07-31 04:20:48 +0300 | [diff] [blame] | 1 | # 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 | |||||
7 | import umachine as machine | ||||
8 | |||||
Damien George | 69661f3 | 2020-02-27 15:36:53 +1100 | [diff] [blame^] | 9 | print(hex(machine.mem16[0xC0000])) |