mirror of
git://projects.qi-hardware.com/wernermisc.git
synced 2024-12-19 15:34:59 +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
|
||||
|
||||
blocks=55
|
||||
offset=2 # 0 for manufacturer ID (0x89)
|
||||
blocks=56
|
||||
offset=4 # 0 for manufacturer ID (0x0089)
|
||||
|
||||
|
||||
hex()
|
||||
@ -24,7 +24,7 @@ poke 0 0x90
|
||||
EOF
|
||||
a=$offset
|
||||
i=0
|
||||
while [ $i -le $blocks ]; do
|
||||
while [ $i -lt $blocks ]; do
|
||||
echo peek 0x`hex $a`
|
||||
a=`expr $a + 128 \* 1024`
|
||||
i=`expr $i + 1`
|
||||
|
Loading…
Reference in New Issue
Block a user