Final changes to report
[yule.git] / repl.pl
diff --git a/repl.pl b/repl.pl
index 83b170411990356c37ce63ff27df8f5fd65ff5f1..4d1f9ea2f281dcb95c1ebafd79a1d024205aaa39 100644 (file)
--- a/repl.pl
+++ b/repl.pl
@@ -60,8 +60,8 @@ sub princ {
 my $term;
 
 if (-t) {
-       $term = Term::ReadLine->new('DECEL REPL');
-       say "DECEL PRE-RELEASE\n";
+       $term = Term::ReadLine->new('YULE REPL');
+       say "YULE REPL\n";
 }
 
 my $port = Device::SerialPort->new($ARGV[0] // '/dev/ttyUSB1') or die "$!";
@@ -91,7 +91,7 @@ while () {
        my $compiler = App::Scheme79asm::Compiler->new;
        my $compiler_out = $compiler->compile_string($sexp);
 
-       say 'Compiler says: ', dump_sexp($compiler_out);
+#      say 'Compiler says: ', dump_sexp($compiler_out);
 
        my $asm = App::Scheme79asm->new(addr_bits => 13);
        my $asm_output;
@@ -101,14 +101,14 @@ while () {
        $asm->print_binary16($asm_fh);
        close $asm_fh;
 
-       say "Writing: ", join ' ', uc join ' ', unpack '(H2)*', $asm_output;
+#      say "Writing: ", join ' ', uc join ' ', unpack '(H2)*', $asm_output;
        my $bytes_written = $port->write($asm_output);
        my $bytes_to_write = length $asm_output;
        die "Only wrote $bytes_written instead of $bytes_to_write" unless $bytes_written == $bytes_to_write;
 
        my ($count_in, $string_in) = $port->read(5000);
        my @memory = unpack 'n*', $string_in;
-       say 'Received: ', uc join ' ', unpack '(H2)*', $string_in;
+#      say 'Received: ', uc join ' ', unpack '(H2)*', $string_in;
        unshift @memory, 0, 0, (1<<13), (1<<13);
        princ $compiler, \@memory, 6;
        say '';
This page took 0.010953 seconds and 4 git commands to generate.