Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Perlito5::X64::Assembler - t5-x64/01_sanity.t runs in perl and node.js
  • Loading branch information
fglock committed Mar 24, 2013
1 parent d7f0089 commit 810d6f3
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src5/lib/Perlito5/X64/Assembler.pm
Expand Up @@ -25,7 +25,7 @@ sub emit {

sub ret {
my ( $self, $imm16 ) = @_;
if ( $imm16 == 0 ) {
if ( !$imm16 ) {
emit(0xC3);
}
else {
Expand Down
11 changes: 10 additions & 1 deletion t5-x64/01_sanity.t
@@ -1,7 +1,16 @@
#
# this test can be run with:
#
# perl -Isrc5/lib t5-x64/01_sanity.t
#
# node perlito5.js -Isrc5/lib t5-x64/01_sanity.t
#


use strict;
use warnings;
use feature 'say';
use Perlito5::X64::Assembler;
use Perlito5::Test;

say "1..1";

Expand Down

0 comments on commit 810d6f3

Please sign in to comment.