Skip to content

Commit eb0e3ba

Browse files
committed
tests/machine_mem.py: Too non-portable, rework as an example for unix port.
1 parent 4d22ade commit eb0e3ba

File tree

3 files changed

+9
-17
lines changed

3 files changed

+9
-17
lines changed

examples/unix/machine_bios.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
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+
9+
print(hex(machine.mem16[0xc0000]))

tests/extmod/machine_mem.py

Lines changed: 0 additions & 16 deletions
This file was deleted.

tests/extmod/machine_mem.py.exp

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy