OLD | NEW |
---|---|
(Empty) | |
1 import 'dart:io'; | |
2 | |
3 void main(List<String> args) { | |
4 print(args[0]); | |
5 print(args[1]); | |
6 | |
7 var bytes = new File(args[0]).readAsBytesSync(); | |
8 print(bytes.length); | |
9 | |
10 var out = new StringBuffer(); | |
11 out.writeln(".text"); | |
12 out.writeln(" .globl _kInstructionsSnapshot"); | |
13 out.writeln("_kInstructionsSnapshot:"); | |
14 out.writeln(" .balign 32, 0"); | |
15 for (var i = 0; i < bytes.length; i++) { | |
16 var byte = bytes[i]; | |
17 out.writeln(" .byte $byte"); | |
18 } | |
19 | |
20 new File(args[1]).writeAsString(out.toString()); | |
21 } | |
OLD | NEW |