C programming question

John Wildberger wildberger-iRg7kjdsKiH3fQ9qLvQP4Q at public.gmane.org
Fri Dec 26 11:42:52 UTC 2003


On December 26, 2003 05:29 am, Peter L. Peres wrote:

> od -j 20 -N100 -tx1 /dev/mem
> Peter

Thanks Peter,
od -j0 -N100 -tx1 /dev/mem
==>

0000000 01 00 00 00 5a ff 00 f0 c3 e2 00 f0 5a ff 00 f0
0000020 5a ff 00 f0 54 ff 00 f0 57 ff 00 f0 5a ff 00 f0
0000040 a5 fe 00 f0 87 e9 00 f0 7c 00 00 f0 7c 00 00 f0
0000060 7c 00 00 f0 7c 00 00 f0 57 ef 00 f0 7c 00 00 f0
0000100 14 00 00 c0 4d f8 00 f0 41 f8 00 f0 24 e0 00 f0
0000120 39 e7 00 f0 59 f8 00 f0 2e e8 00 f0 d2 ef 00 f0
0000140 53 ff 00 f0
0000144

This does the trick as far as the numbers go, but the location indicators are 
still not right. They should be in incrementsc of 10 and not 20 because they 
count in hex the number of bytes.
John
--
The Toronto Linux Users Group.      Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml





More information about the Legacy mailing list