We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b6329cb commit 62b70c3Copy full SHA for 62b70c3
requirements.txt
@@ -1 +0,0 @@
1
-numpy
zxtools/hobeta.py
@@ -8,7 +8,6 @@
8
import struct
9
from collections import namedtuple
10
import argparse
11
-import numpy
12
13
from zxtools import CHUNK_SIZE
14
@@ -41,7 +40,7 @@ def calc_checksum(data):
41
40
""" Calculate checksum for data """
42
check_sum = 0
43
for i, value in enumerate(data):
44
- check_sum = numpy.uint16(check_sum + value*257 + i)
+ check_sum = (check_sum + value*257 + i) % 0x10000
45
return check_sum
46
47
0 commit comments