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

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

revision 95 by dpavlin, Thu Aug 2 13:19:19 2007 UTC revision 96 by dpavlin, Thu Aug 2 13:58:26 2007 UTC
# Line 12  use List::Util qw/first/; Line 12  use List::Util qw/first/;
12  use M6502;  use M6502;
13    
14  use base qw(Class::Accessor M6502 Screen Prefs);  use base qw(Class::Accessor M6502 Screen Prefs);
15  __PACKAGE__->mk_accessors(qw(booted run_for));  __PACKAGE__->mk_accessors(qw(booted));
16    
17  =head1 NAME  =head1 NAME
18    
# Line 141  sub run { Line 141  sub run {
141          my $self = shift;          my $self = shift;
142    
143          $self->boot if ( ! $self->booted );          $self->boot if ( ! $self->booted );
144            $self->loop;
         while ( 1 ) {  
                 $self->cli;  
                 M6502::exec($run_for);  
         }  
145  };  };
146    
147  =head1 Helper functions  =head1 Helper functions
# Line 441  my $show_R = 0; Line 437  my $show_R = 0;
437  sub cli {  sub cli {
438          my $self = shift;          my $self = shift;
439          my $a = $PC || confess "no pc?";          my $a = $PC || confess "no pc?";
440            my $run_for = 0;
441          warn $self->dump_R() if $show_R;          warn $self->dump_R() if $show_R;
442          while ( my ($line, @v) = $self->prompt( $a, $last ) ) {          while ( my ($line, @v) = $self->prompt( $a, $last ) ) {
443                  my $c = shift @v;                  my $c = shift @v;
# Line 527  __USAGE__ Line 524  __USAGE__
524                  }                  }
525          }          }
526    
527            return $run_for;
528  }  }
529    
530  =head1 AUTHOR  =head1 AUTHOR

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

  ViewVC Help
Powered by ViewVC 1.1.26