repo.or.cz
/
riscose.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Debug on SWI support
[riscose.git]
/
tests
/
armas.in
blob
705df22cd4568b6e9f1453e94ef7ad111223bd95
1
#! @BINAWK@ -f
2
3
BEGIN {
4
for (i = 0; i < 16; i++) {
5
t[sprintf("%x", i)] = i
6
}
7
}
8
9
{
10
for (o = 7; o >= 1; o -= 2) {
11
h = substr($2, o, 1)
12
l = substr($2, o + 1, 1)
13
printf "%c", t[h] * 16 + t[l];
14
}
15
}