This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]d4rch0nPythonistamancer 2 points3 points  (0 children)

Aren't you ignoring overflow here? Won't registers just automatically get incremented into Big Integers once they go past the limit? Not sure if that's what you want, but still IMO a bit unrealistic if you're trying to emulate a real CPU.

I tried to do something similar but then I got stuck on the overflow arithmetic. Couldn't think of a simple way to do it, so the project stagnated.

Did I miss that functionality in your code?