Skip to content

Commit

Permalink
states should accept 0 as their location
Browse files Browse the repository at this point in the history
  • Loading branch information
tim committed May 4, 2012
1 parent 57c217e commit f581425
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sixteen/states.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def __init__(self, cpu, location=None):
self.queuing = cpu.queuing
self.interrupt_queue = []
self.registers = DeltaDict(cpu.registers)
if location:
if location is not None:
self.registers["PC"] = location
self.ram_iter = self.ram_iterator()
self.ram = DeltaDict(cpu.ram)
Expand Down

0 comments on commit f581425

Please sign in to comment.