1 <!-- Copyright (C) 2003 Red Hat, Inc. -->
2 <!-- This material may be distributed only subject to the terms -->
3 <!-- and conditions set forth in the Open Publication License, v1.0 -->
4 <!-- or later (the latest version is presently available at -->
5 <!-- http://www.opencontent.org/openpub/). -->
6 <!-- Distribution of the work or derivative of the work in any -->
7 <!-- standard (paper) book form is prohibited unless prior -->
8 <!-- permission is obtained from the copyright holder. -->
13 ><meta name="MSSmartTagsPreventParsing" content="TRUE">
16 CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+
19 TITLE="eCos Reference Manual"
20 HREF="ecos-ref.html"><LINK
22 TITLE="Common Commands"
23 HREF="common-commands.html"><LINK
26 HREF="download-command.html"><LINK
29 HREF="mfill-command.html"></HEAD
40 SUMMARY="Header navigation table"
49 >eCos Reference Manual</TH
57 HREF="download-command.html"
71 HREF="mfill-command.html"
82 NAME="MCMP-COMMAND">mcmp</H1
90 >mcmp -- Compare two segments of memory</DIV
92 CLASS="REFSYNOPSISDIV"
125 CLASS="INFORMALTABLE"
177 >Location for start of data.</TD
210 >Location for start of data.</TD
271 >Access one byte (8 bits) at a time.
272 Only the least significant 8 bits of the pattern will be used.</TD
294 >Access two bytes (16 bits) at a time.
295 Only the least significant 16 bits of the pattern will be used.</TD
317 >Access one word (32 bits) at a time.</TD
338 >Compares the contents of two ranges of memory (RAM, ROM, FLASH, etc).</P
348 >Compare two buffers which match (result is <SPAN
367 >mfill -b 0x100000 -l 0x20 -p 0xDEADFACE</B
373 >mfill -b 0x200000 -l 0x20 -p 0xDEADFACE</B
379 >mcmp -s 0x100000 -d 0x200000 -l 0x20</B
387 >Compare two buffers which don't match.
388 Only the first non-matching element is displayed.
401 >mcmp -s 0x100000 -d 0x200000 -l 0x30 -2</B
404 Buffers don't match - 0x00100020=0x6000, 0x00200020=0x0000</PRE
416 SUMMARY="Footer navigation table"
427 HREF="download-command.html"
445 HREF="mfill-command.html"
461 HREF="common-commands.html"