/[VRac]/M6502/M6502.pm
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/M6502.pm

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

revision 94 by dpavlin, Thu Aug 2 13:04:29 2007 UTC revision 96 by dpavlin, Thu Aug 2 13:58:26 2007 UTC
# Line 6  use warnings; Line 6  use warnings;
6  use Data::Dump qw/dump/;  use Data::Dump qw/dump/;
7  use Carp qw/confess/;  use Carp qw/confess/;
8  use Exporter 'import';  use Exporter 'import';
9  our @EXPORT = qw'dump_R @mem $PC $A $P $X $Y $S $IPeriod $ICount $IRequest $IAutoReset $TrapBadOps $Trap $Trace $run_for $debug';  our @EXPORT = qw'dump_R @mem $PC $A $P $X $Y $S $IPeriod $ICount $IRequest $IAutoReset $TrapBadOps $Trap $Trace $debug';
10  our $VERSION = '0.0.2';  our $VERSION = '0.0.2';
11  require XSLoader;  require XSLoader;
12  XSLoader::load('M6502', $VERSION);  XSLoader::load('M6502', $VERSION);
# Line 36  our $TrapBadOps=1;     # Set to 1 to warn of Line 36  our $TrapBadOps=1;     # Set to 1 to warn of
36  our $Trap;                      # Set Trap to address to trace from  our $Trap;                      # Set Trap to address to trace from
37  our $Trace;                     # Set Trace=1 to start tracing  our $Trace;                     # Set Trace=1 to start tracing
38    
 # Exec6502 cycles  
 our $run_for = 0;  
   
39  =head2 init  =head2 init
40    
41  Setup read and write memory hooks (to implement memory mapped devices)  Setup read and write memory hooks (to implement memory mapped devices)
# Line 124  sub write_chunk { Line 121  sub write_chunk {
121          splice @mem, $addr, $len, unpack('C*', $chunk);          splice @mem, $addr, $len, unpack('C*', $chunk);
122  }  }
123    
 =head2 prompt  
   
 Call this after C<< $run_for >> cycles have been run on processor  
   
 =cut  
   
 sub prompt {  
         warn "prompt -- you should override this\n";  
         return 1;  
 }  
   
124  =head1 XS Callbacks  =head1 XS Callbacks
125    
126  This functions are called from C<M6502.xs>  This functions are called from C<M6502.xs>

Legend:
Removed from v.94  
changed lines
  Added in v.96

  ViewVC Help
Powered by ViewVC 1.1.26