aboutsummaryrefslogtreecommitdiffstats
path: root/pack.py
diff options
context:
space:
mode:
authors-ol <s+removethis@s-ol.nu>2021-05-25 13:42:02 +0000
committers-ol <s+removethis@s-ol.nu>2021-05-25 13:42:02 +0000
commit12ca589a55376687c13d2298392ca5ddb344a219 (patch)
treed53f03557db0072eeeb8c0433fbe5444be4510e7 /pack.py
parentuse new bits in format.py (diff)
downloadsubv-12ca589a55376687c13d2298392ca5ddb344a219.tar.gz
subv-12ca589a55376687c13d2298392ca5ddb344a219.zip
update all stages to work
Diffstat (limited to 'pack.py')
-rwxr-xr-xpack.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pack.py b/pack.py
index 5dbaf95..cf531af 100755
--- a/pack.py
+++ b/pack.py
@@ -19,7 +19,7 @@ Packs bitfields tagged with their size into untagged bytes.
... 23/7 00/5 02/3 05/5 06/5 00/7
... 13/7 06/5 00/3 00/5 0a/12
... 23/7 00/5 02/3 05/5 06/5 00/7
-... 6f/7 00/5 ff/8 01/1 3e6/10 01/1
+... 6f/7 00/5 ff/8 1/1 3e6/10 1/1
... '''[1:-1]))))
== code 0x80000000
b7 02 01 10
@@ -51,7 +51,7 @@ def byteify(word):
>>> byteify(bits.Bitfield(0x13, 9)),
Traceback (most recent call last):
...
- AssertionError: not byte aligned: 0x13'9
+ AssertionError: not byte aligned: 013/9
"""
assert word.size % 8 == 0, "not byte aligned: {}".format(word)