OSDN Git Service
(root)
/
motonesfpga
/
motonesfpga.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
08bd70c
)
nes image data extracter updated.
author
astoria-d
<astoria-d@mail.goo.ne.jp>
Wed, 4 Sep 2013 02:57:01 +0000
(11:57 +0900)
committer
astoria-d
<astoria-d@mail.goo.ne.jp>
Wed, 4 Sep 2013 02:57:01 +0000
(11:57 +0900)
tools/test-image/dd-img.sh
patch
|
blob
|
history
diff --git
a/tools/test-image/dd-img.sh
b/tools/test-image/dd-img.sh
index
72dd1aa
..
5413687
100755
(executable)
--- a/
tools/test-image/dd-img.sh
+++ b/
tools/test-image/dd-img.sh
@@
-1,4
+1,16
@@
-#!/bin/bash
-x
+#!/bin/bash
-dd if=sample1.nes of=sample1.hex bs=16 skip=1 count=2048
+if [ "$1" == "" ] ; then
+ echo "$0 -in_filename (w/o .nex )"
+ exit -1
+fi
+
+in_name=$1
+
+in_file=$in_name.nes
+out_file1=$in_name-prg.bin
+out_file2=$in_name-chr.bin
+
+dd if=$in_file of=$out_file1 bs=16 skip=1 count=2048
+dd if=$in_file of=$out_file2 bs=16 skip=2049