mirror of
git://projects.qi-hardware.com/wernermisc.git
synced 2024-11-15 11:36:15 +02:00
m1rc3/norruption/2/dumplock: use correct offset; fixed block number counting
This commit is contained in:
parent
e0f8fc0a06
commit
a6136bd027
@ -1,7 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
blocks=55
|
blocks=56
|
||||||
offset=2 # 0 for manufacturer ID (0x89)
|
offset=4 # 0 for manufacturer ID (0x0089)
|
||||||
|
|
||||||
|
|
||||||
hex()
|
hex()
|
||||||
@ -24,7 +24,7 @@ poke 0 0x90
|
|||||||
EOF
|
EOF
|
||||||
a=$offset
|
a=$offset
|
||||||
i=0
|
i=0
|
||||||
while [ $i -le $blocks ]; do
|
while [ $i -lt $blocks ]; do
|
||||||
echo peek 0x`hex $a`
|
echo peek 0x`hex $a`
|
||||||
a=`expr $a + 128 \* 1024`
|
a=`expr $a + 128 \* 1024`
|
||||||
i=`expr $i + 1`
|
i=`expr $i + 1`
|
||||||
|
Loading…
Reference in New Issue
Block a user