--- M6502/M6502.pm 2007/07/30 13:29:57 24 +++ M6502/M6502.pm 2007/07/30 14:02:31 25 @@ -9,6 +9,11 @@ my $mem = (0) x 0x10000; # 64M +# program counter our $PC = 0xbeef; +# CPU registars +our ( $A, $P, $X, $Y, $S ) = (0) x 5; +# Set IPeriod to number of CPU cycles between calls to Loop6502 +our $IPeriod = 20000; 1;