chiark
/
gitweb
/
~ijackson
/
trains.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2cd2de8
)
parse-proto-spec makes a nice macro list
author
ian
<ian>
Tue, 31 May 2005 22:56:52 +0000
(22:56 +0000)
committer
ian
<ian>
Tue, 31 May 2005 22:56:52 +0000
(22:56 +0000)
hostside/parse-proto-spec
patch
|
blob
|
history
diff --git
a/hostside/parse-proto-spec
b/hostside/parse-proto-spec
index a15db77ecd28f6333562bae042ee8ef46f9e9f93..3b1507737da815efd804217b1943d1805828b725 100755
(executable)
--- a/
hostside/parse-proto-spec
+++ b/
hostside/parse-proto-spec
@@
-46,7
+46,8
@@
while (<>) {
$ybit= oct("0b$ybit");
}
for $yval ($ybit ? (0,1) : '') {
- printf("%s( %-16s, 0x%02x, %2d )\n",
+ printf("%s( %-12s 0x%02x, %2d )\n",
+ $dname,
sprintf("%s%s,",$cname, $yval),
oct("0b$opcode") | $ybit *$yval,
$arglen)