/[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 51 by dpavlin, Tue Jul 31 12:35:02 2007 UTC revision 68 by dpavlin, Tue Jul 31 17:15:54 2007 UTC
# Line 10  our @EXPORT = qw'@mem $PC $A $P $X $Y $S Line 10  our @EXPORT = qw'@mem $PC $A $P $X $Y $S
10    
11  =head1 NAME  =head1 NAME
12    
13  M6502 - perl bindings for 6502 emulator  M6502 - perl bindings for M6502 CPU emulator
14    
15  =cut  =cut
16    
# Line 29  our $IPeriod = 1; Line 29  our $IPeriod = 1;
29  # Exec6502 cycles  # Exec6502 cycles
30  our $run_for = 0;  our $run_for = 0;
31    
32  =head1 init  =head1 FUNCTIONS
33    
34    =head2 init
35    
36  Called before C<Run6502>  Called before C<Run6502>
37    
# Line 143  sub push_R { Line 145  sub push_R {
145    
146  =head2 dump_R  =head2 dump_R
147    
148  helper function which dumps registers  helper function which dumps registers in humanly readable form
149    
150      my $dump = dump_R;
151    
152  =cut  =cut
153    
154  sub dump_R {  sub dump_R {
155          warn sprintf("## M6502::dump_R PC: %04x A:%02x P:%02x X:%02x Y:%02x S:%02x\n", $PC, $A, $P, $X, $Y, $S) if $debug;          my $dump = sprintf(" PC: %04x A:%02x P:%02x X:%02x Y:%02x S:%02x\n", $PC, $A, $P, $X, $Y, $S);
156            warn "## M6502::dump_R $dump" if $debug;
157            return $dump;
158  }  }
159    
160    =head1 SEE ALSO
161    
162    L<Orao> is sample implementation using this module
163    
164    =head1 AUTHOR
165    
166    Dobrica Pavlinusic, C<< <dpavlin@rot13.org> >>
167    
168    =head1 COPYRIGHT & LICENSE
169    
170    Copyright 2007 Dobrica Pavlinusic, All Rights Reserved.
171    
172    This program is free software; you can redistribute it and/or modify it
173    under the same terms as Perl itself.
174    
175    =cut
176  1;  1;

Legend:
Removed from v.51  
changed lines
  Added in v.68

  ViewVC Help
Powered by ViewVC 1.1.26