machine_bios.py 319 B

123456789
  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. import umachine as machine
  7. print(hex(machine.mem16[0xc0000]))