/[VRac]/M6502/t/05-M6502.t
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /M6502/t/05-M6502.t

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 92 by dpavlin, Thu Aug 2 12:49:19 2007 UTC revision 93 by dpavlin, Thu Aug 2 12:53:00 2007 UTC
# Line 6  use strict; Line 6  use strict;
6  use blib;  use blib;
7  use lib './lib';  use lib './lib';
8    
9  use Test::More tests => 53;  use Test::More tests => 54;
10  use Test::Exception;  use Test::Exception;
11  use Data::Dump qw/dump/;  use Data::Dump qw/dump/;
12    
# Line 83  $mem[$a++] = $_ foreach ( Line 83  $mem[$a++] = $_ foreach (
83  diag dump_R();  diag dump_R();
84  $PC = 0x1000;  $PC = 0x1000;
85    
86  ok( ! M6502::exec( 1 ), 'M6502::exec(1)' );  ok( my $left = M6502::exec( 1 ), 'M6502::exec(1)' );
87  cmp_ok( $PC, '==', 0x1002, 'PC moved' );  cmp_ok( $PC, '==', 0x1002, 'PC moved' );
88    cmp_ok( $left, '==', -1, 'no cycles left' );
89    
90  ok( ! M6502::exec( 1000 ), 'M6502::exec' );  ok( ! M6502::exec( 1000 ), 'M6502::exec' );
91  cmp_ok( $PC, '==', 0x1016, 'PC moved' );  cmp_ok( $PC, '==', 0x1016, 'PC moved' );

Legend:
Removed from v.92  
changed lines
  Added in v.93

  ViewVC Help
Powered by ViewVC 1.1.26