master
E. Almqvist 4 years ago
parent 2c99e52d51
commit 7c19b71ce2
  1. 4
      2020/14.py

@ -81,8 +81,8 @@ mem, mem2 = dict(), dict()
for line in data: for line in data:
address, val = parseLine(line) address, val = parseLine(line)
if( address != "mask" ): if( address != "mask" ):
val, oldval = applyMask(val, curMask) val = applyMask(val, curMask)
dec_val, dec_oldval = bintodec(val), bintodec(oldval) dec_val = bintodec(val)
mem[address] = dec_val mem[address] = dec_val

Loading…
Cancel
Save