mirror of
https://github.com/Pecusx/jataricart.git
synced 2026-05-21 14:49:37 +02:00
28 lines
594 B
Bash
Executable File
28 lines
594 B
Bash
Executable File
I=mac65.bin
|
|
O=mac65_128.rom
|
|
i=0
|
|
z=""
|
|
while [[ $i -lt 512 ]]; do
|
|
z+=FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
|
|
(( i = i + 1 ))
|
|
done
|
|
function out8k() {
|
|
echo "$z" | xxd -r -ps
|
|
}
|
|
|
|
echo -n >$O
|
|
dd iseek=0 if=$I of=/dev/stdout bs=4096 count=1 >>$O
|
|
dd iseek=3 if=$I of=/dev/stdout bs=4096 count=1 >>$O
|
|
|
|
for t in 1 2 ; do out8k >>$O ; done
|
|
|
|
dd iseek=1 if=$I of=/dev/stdout bs=4096 count=1 >>$O
|
|
dd iseek=3 if=$I of=/dev/stdout bs=4096 count=1 >>$O
|
|
|
|
dd iseek=2 if=$I of=/dev/stdout bs=4096 count=1 >>$O
|
|
dd iseek=3 if=$I of=/dev/stdout bs=4096 count=1 >>$O
|
|
|
|
for t in 1 2 3 1 2 3 4 5 6 7 8 ; do out8k >>$O ; done
|
|
|
|
|