-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathnewusage.txt
84 lines (64 loc) · 2.28 KB
/
newusage.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
nesromtool [options] <method> [command options] <file> [<file> <file>...]
options:
help (-?, --help)
version (--version)
verbose (-v, --verbose)
colorpalette (-c <####>, --color <####>)
commands:
info (prg/chr count, title)
title (set, remove, read)
extract (chr, prg, sprite(s))
inject (chr, prg, sprite(s))
view (sprite)
dump (chr, prg, header)
command notes:
√ info
√ prints info... no options
√ title
√ -set <new_title>
√ -remove
√ -print (default)
extract
-sprite
-chr (extract from chr bank, default)
-prg (extract from prg bank)
<bank index> (required; which bank to extract from, chr 1 is default)
<sprite index> (required; can be a range)
-h | -v (compound sprite mode; horizontal or vertical... horizontal is default)
-f <filename> (default romname.nes.#.TYPE)
-t <type> (raw, native, gif?, png, html; the type of file to save; default is raw)
√ -chr
√ <chr index> (required; can be a number, starting at 1 or a range: 1-4 or -a for all)
√ -f <filename> (default romname.nes.#.chr)
√ -s (extract as single file, only available if a range is specified; default is multiple)
√ -prg
√ <prg index> (required; can be a number or a range or -a for all)
√ -f <filename> (default romname.nes.#.prg)
√ -s (extract as single file, only available if range is specified; default is multiple)
inject (replace sprite(s) or bank(s))
-sprite
(-chr | -prg) <bank index> <sprite index> <filename>
-chr
<chr start index> (required)
<filename> (required; one or more CHR banks)
-prg
<prg start index> (required)
<filename> (required; one or more PRG banks)
view (preview a sprite in terminal)
[same options as sprite extraction, minus the file and type stuff]
dump (outputs, in hex, what's been input)
-chr
<index> (can be single number or range)
-prg
<index> (can be single or range)
-header
-all (dumps header, all CHR and all PRG)
examples:
nesromtool info smb1.nes
nesromtool title -set "Super Mario Brothers" smb1.nes
nesromtool title smb1.nes # prints the title
nesromtool title -remove smb1.nes
nesromtool title -print smb1.nes
nesromtool extract -sprite -chr 1 1 smb1.nes
nesromtool extract -sprite -chr 1 1-4 smb1.nes
nesromtool extract -sprite -chr 1 1-4 -h smb1.nes