OSDN Git Service
(root)
/
motonesfpga
/
motonesfpga.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
nes image data extracter updated.
[motonesfpga/motonesfpga.git]
/
tools
/
test-image
/
dd-img.sh
1
#!/bin/bash
2
3
if [ "$1" == "" ] ; then
4
echo "$0 -in_filename (w/o .nex )"
5
exit -1
6
fi
7
8
in_name=$1
9
10
in_file=$in_name.nes
11
out_file1=$in_name-prg.bin
12
out_file2=$in_name-chr.bin
13
14
dd if=$in_file of=$out_file1 bs=16 skip=1 count=2048
15
dd if=$in_file of=$out_file2 bs=16 skip=2049
16