File: test_memory.py

package info (click to toggle)
intelhex 2.3.0-4
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 472 kB
  • sloc: python: 3,200; makefile: 86; sh: 15
file content (8 lines) | stat: -rw-r--r-- 136 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
import intelhex

ih = intelhex.IntelHex()
for i in range(65536): ih[i] = i & 0x0FF

print(len(ih))

print(ih.get_memory_size())