Пример #1
0
def op(name, operation, *args):
  global register_names
  register_names[current_register] = name
  op = [operation, reg(current_register)]
  op.extend(args)
  increment()
  return tuple(op)
Пример #2
0
def op(name, operation, *args):
    global register_names
    register_names[current_register] = name
    op = [operation, reg(current_register)]
    op.extend(args)
    increment()
    return tuple(op)
Пример #3
0
def var(name, display_name=None):
  global register_names
  if display_name is None:
    display_name = str.strip(name, ":$")
  register_names[current_register] = display_name
  op = (assign, reg(current_register), name)
  increment()
  return op
Пример #4
0
def var(name, display_name=None):
    global register_names
    if display_name is None:
        display_name = str.strip(name, ":$")
    register_names[current_register] = display_name
    op = (assign, reg(current_register), name)
    increment()
    return op
Пример #5
0
def reset_all(value=-989):
  return lazy.block((assign, reg(r), value)
    for r in range(register_begin, register_end + 1))
Пример #6
0
def reset_all(value=-989):
    return lazy.block((assign, reg(r), value)
                      for r in range(register_begin, register_end + 1))