tests/machine_mem.py: Too non-portable, rework as an example for unix port.
This commit is contained in:
9
examples/unix/machine_bios.py
Normal file
9
examples/unix/machine_bios.py
Normal file
@@ -0,0 +1,9 @@
|
||||
# This example shows how to access Video BIOS memory area via machine.mem
|
||||
# It requires root privilege and x86 legacy harfware (which has mentioned
|
||||
# Video BIOS at all).
|
||||
# It is expected to print 0xaa55, which is a signature at the start of
|
||||
# Video BIOS.
|
||||
|
||||
import umachine as machine
|
||||
|
||||
print(hex(machine.mem16[0xc0000]))
|
||||
Reference in New Issue
Block a user