c - compare several bytes (arrays). For example:
org 100h
jmp a
v1 db 1,4,3,4,5,6,7
v2 db 1,5,3,0,5,6,7
a:
mov ax, v1
mov al, v2
mov dx, v1
mov dl, v2
ret
To compare v1 and v2 type the following:
c v1 L 7 v2
L denotes the size of the array. If L parameter is not specified this command compares 8 bytes by default. For example to compare 8 bytes at offsets CS:100 and CS:233 type the following:
c 100 233
It is also possible to use registers as parameters, for example:
c SI L 20h DI
The command outputs only those addresses with values that are different.
Equal bytes are not printed out.