diff options
Diffstat (limited to 'vectors.pl')
-rwxr-xr-x | vectors.pl | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -12,9 +12,9 @@ for(my $i = 0; $i < 256; $i++){ print ".globl vector$i\n"; print "vector$i:\n"; if(!($i == 8 || ($i >= 10 && $i <= 14) || $i == 17)){ - print " pushl \$0\n"; + print " push \$0\n"; } - print " pushl \$$i\n"; + print " push \$$i\n"; print " jmp alltraps\n"; } @@ -23,7 +23,7 @@ print ".data\n"; print ".globl vectors\n"; print "vectors:\n"; for(my $i = 0; $i < 256; $i++){ - print " .long vector$i\n"; + print " .quad vector$i\n"; } # sample output: @@ -31,8 +31,8 @@ for(my $i = 0; $i < 256; $i++){ # .globl alltraps # .globl vector0 # vector0: -# pushl $0 -# pushl $0 +# push $0 +# push $0 # jmp alltraps # ... # @@ -40,8 +40,8 @@ for(my $i = 0; $i < 256; $i++){ # .data # .globl vectors # vectors: -# .long vector0 -# .long vector1 -# .long vector2 +# .quad vector0 +# .quad vector1 +# .quad vector2 # ... |