Werner's Miscellanea
Sign in or create your account | Project List | Help
Werner's Miscellanea Commit Details
Date: | 2011-10-14 11:23:49 (12 years 1 month ago) |
---|---|
Author: | Werner Almesberger |
Commit: | a6136bd02799bcab8d2e48fd21dc91f0fee0df41 |
Message: | m1rc3/norruption/2/dumplock: use correct offset; fixed block number
counting |
Files: |
m1rc3/norruption/2/dumplock (2 diffs) |
Change Details
m1rc3/norruption/2/dumplock | ||
---|---|---|
1 | 1 | #!/bin/sh |
2 | 2 | |
3 | blocks=55 | |
4 | offset=2 # 0 for manufacturer ID (0x89) | |
3 | blocks=56 | |
4 | offset=4 # 0 for manufacturer ID (0x0089) | |
5 | 5 | |
6 | 6 | |
7 | 7 | hex() |
... | ... | |
24 | 24 | EOF |
25 | 25 | a=$offset |
26 | 26 | i=0 |
27 | while [ $i -le $blocks ]; do | |
27 | while [ $i -lt $blocks ]; do | |
28 | 28 | echo peek 0x`hex $a` |
29 | 29 | a=`expr $a + 128 \* 1024` |
30 | 30 | i=`expr $i + 1` |
Branches:
master