Skip to content

Commit

Permalink
replace concat_s_s opcode
Browse files Browse the repository at this point in the history
  • Loading branch information
mikehh committed Dec 28, 2010
1 parent 0224f9d commit 8765817
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions examples/sdl/lcd/clock.pir
Expand Up @@ -104,29 +104,29 @@ HOUR:
$I0 = $P0[.TM_HOUR]
cmod $I0, $I0, 10
$S1 = $I0
concat $S0, $S1
$S0 = concat $S0, $S1

# minutes
concat $S0, $S2
$S0 = concat $S0, $S2
$I0 = $P0[.TM_MIN]
$I0 /= 10
$S1 = $I0
concat $S0, $S1
$S0 = concat $S0, $S1
$I0 = $P0[.TM_MIN]
cmod $I0, $I0, 10
$S1 = $I0
concat $S0, $S1
$S0 = concat $S0, $S1

# seconds
concat $S0, $S2
$S0 = concat $S0, $S2
$I0 = $P0[.TM_SEC]
$I0 /= 10
$S1 = $I0
concat $S0, $S1
$S0 = concat $S0, $S1
$I0 = $P0[.TM_SEC]
cmod $I0, $I0, 10
$S1 = $I0
concat $S0, $S1
$S0 = concat $S0, $S1

# set the time
$P0 = get_global "LCD"
Expand All @@ -147,7 +147,7 @@ Please send patches and suggestions to the Perl 6 Internals mailing list.

=head1 COPYRIGHT

Copyright (C) 2004-2008, Parrot Foundation.
Copyright (C) 2004-2010, Parrot Foundation.

=cut

Expand Down

0 comments on commit 8765817

Please sign in to comment.