Cool! Thanks again for yor help ;-)Don't buy an MRV11-C. I have access to a load of them for free!
#!/bin/bash
romlow="TEST_LO.bin"
romhigh="TEST_HI.bin"
wlow() {
>$romlow
for a in {64..67}
do
ax=$( printf "%x" $a )
for i in {0..255}
do
hx=$( printf "%x" $i )
output="\x$ax\x$hx"
printf "%b" $output >>$romlow
done
done
}
whigh() {
>$romhigh
dd if=/dev/zero of=$romhigh bs=2048 count=1
}
wcomb() {
romwak /m $romlow $romhigh TEST.rom
}
wlow
whigh
wcomb
od -w4 TEST.rom
0000000 000100 000000
0000004 000100 000001
0000010 000100 000002
.
.
0001000 000100 000200
0001004 000100 000201
0001010 000100 000202
.
.
0002000 000101 000000
0002004 000101 000001
0002010 000101 000002
.
.
0003000 000101 000200
0003004 000101 000201
0003010 000101 000202
.
.
773000/000101
773002/000200
773004/000101
773006/000201
773010/000101
773012/000202
.
.
wlow() {
>$romlow
for a in {64..67}
do
ax=$( printf "%x" $a )
for i in {0..255}
do
hx=$( printf "%x" $i )
output="\x$ax\x$hx"
printf "%b" $output >>$romlow
done
done
}