Loading

Paste #pe56v1hno

  1. diff -r 9f69fe562f0f nml/global_constants.py
  2. --- a/nml/global_constants.py   Tue Sep 02 23:15:10 2014 +0200
  3. +++ b/nml/global_constants.py   Sat Sep 20 20:50:00 2014 +0200
  4. @@ -1136,7 +1136,7 @@
  5.  }
  6.  
  7.  def config_flag_read(bit, pos):
  8. -    return expression.BinOp(nmlop.HASBIT, expression.Parameter(expression.ConstantNumeric(0x85), pos), expression.ConstantNumeric(bit), pos)
  9. +    return expression.SpecialCheck((0x01, r'\70'), 0x85, (0, 1), bit, "PatchFlag({})".format(bit), pos = pos)
  10.  
  11.  def config_flag(info, pos):
  12.      return expression.SpecialParameter(generic.reverse_lookup(config_flags, info), info, None, config_flag_read, True, pos)
  13.  

Comments