Specifications
43000010: 00800040 00800040 9de1110f 00020205 @...@...........
43000020: 756e694c 2e332d78 2d302e36 7478656e Linux-3.6.0-next
=>
Like most memory commands the cmp can access the memory in different sizes: as 32 bit (long word), 16 bit
(word) or 8 bit (byte) data. If invoked just as cmp the default size (32 bit or long words) is used; the same can
be selected explicitely by typing cmp.l instead. If you want to access memory as 16 bit or word data, you
can use the variant cmp.w instead; and to access memory as 8 bit or byte data please use cmp.b.
Please note that the count argument specifies the number of data items to process, i. e. the number of long
words or words or bytes to compare.
=> cmp.l 0x42000000 0x43000000 0x400
Total of 1024 word(s) were the same
=> cmp.w 0x42000000 0x43000000 0x800
Total of 2048 halfword(s) were the same
=> cmp.b 0x42000000 0x43000000 0x1000
Total of 4096 byte(s) were the same
=>
5.9.2.4. cp - memory copy
=> help cp
cp - memory copy
Usage:
cp [.b, .w, .l] source target count
=> help cp
cp - memory copy
Usage:
cp [.b, .w, .l] source target count
=>
The cp is used to copy memory areas.
=> cp 0x42000000 0x43000000 0x10000
=>
The cp understands the type extensions .l, .w and .b :
=> cp.l 0x43000000 0x42000000 0x10000
=> cp.w 0x43000000 0x42000000 0x20000
=> cp.b 0x43000000 0x42000000 0x40000
=>
5.9.2.5. md - memory display
=> help md
md - memory display
Usage:
md [.b, .w, .l] address [# of objects]
=>
The md can be used to display memory contents both as hexadecimal and ASCII data.
=> md 0x42000000
42000000: 56190527 8daa7c80 dcea6a50 606e2100 '..V.|..Pj...!n`
42000010: 00800040 00800040 9de1110f 00020205 @...@...........
5.9.2.3. cmp - memory compare 46