]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - doc/README.commands.itest
m68k: cache: add an empty stub functions for invalidate/flush dcache
[karo-tx-uboot.git] / doc / README.commands.itest
1 A slow day today so here is a revised itest command with provisional
2 support for comparing strings as well :-))
3
4 Now table driven to allow the operators
5 -eq, -ne, -lt, -gt, -le, -ge, ==, !=, <>, <, >, <=, >=
6
7 Uses the expected command modifier for integer compares of width 1, 2 or
8 4 bytes of .b, .w, .l and the new modifer of .s for a string compare.
9 String comparison is over the length of the shorter, this hopefully
10 avoids missing terminators when using an indirect pointer.
11
12 eg.
13 if itest.l *40000 == 12345678 then; ....
14 if itest.w *40000 != 1234 then; ....
15 if itest.b *40000 >= 12 then; ....
16 if itest.s *40000 -eq hello then; ....