blob: 5e0fe86247a885776801522f22dc4a760d8034ef [file] [log] [blame]
wdenkcd0a9de2004-02-23 20:48:38 +00001A slow day today so here is a revised itest command with provisional
wdenk2d1a5372004-02-23 19:30:57 +00002support for comparing strings as well :-))
3
4Now table driven to allow the operators
5-eq, -ne, -lt, -gt, -le, -ge, ==, !=, <>, <, >, <=, >=
6
wdenkcd0a9de2004-02-23 20:48:38 +00007Uses the expected command modifier for integer compares of width 1, 2 or
84 bytes of .b, .w, .l and the new modifer of .s for a string compare.
9String comparison is over the length of the shorter, this hopefully
wdenk2d1a5372004-02-23 19:30:57 +000010avoids missing terminators when using an indirect pointer.
11
12eg.
13if itest.l *40000 == 12345678 then; ....
14if itest.w *40000 != 1234 then; ....
15if itest.b *40000 >= 12 then; ....
16if itest.s *40000 -eq hello then; ....