Skip to content

Commit

Permalink
Merge pull request #31 from futurecore/fix-mmap-pc
Browse files Browse the repository at this point in the history
Initialised pc *after* registers, not before
  • Loading branch information
berkinilbeyi committed Mar 28, 2016
2 parents 17f01e4 + 5c43c4d commit 0b4814e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pydgin/machine.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
class Machine( object ):
def __init__( self, memory, register_file, debug, reset_addr=0x400 ):

self.pc = reset_addr
self.rf = register_file
self.mem = memory
self.pc = reset_addr

self .debug = debug
self.rf .debug = debug
Expand Down

0 comments on commit 0b4814e

Please sign in to comment.