public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Robin Gilks <robin.gilks@tait.co.nz>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] [PATCH]: revised itest command
Date: Tue, 10 Feb 2004 15:29:04 +1300	[thread overview]
Message-ID: <402841F0.6090003@tait.co.nz> (raw)

Greetings

A slow day today so here is a revised itest command with provisional 
support for comparing strings as well :-))

Now table driven to allow the operators
-eq, -ne, -lt, -gt, -le, -ge, ==, !=, <>, <, >, <=, >=

Uses the expected command modifier for integer compares of width 1, 2 or 
4 bytes of .b, .w, .l and the new modifer of .s for a string compare. 
String comparison is over the length of the shorter, this hopefully 
avoids missing terminators when using an indirect pointer.

eg.
if itest.l *40000 == 12345678 then; ....
if itest.w *40000 != 1234 then; ....
if itest.b *40000 >= 12 then; ....
if itest.s *40000 -eq hello then; ....


-- 
Robin Gilks
Senior Design Engineer          Phone: (+64)(3) 357 1569
Tait Electronics                Fax  :  (+64)(3) 359 4632
PO Box 1645 Christchurch        Email : robin.gilks at tait.co.nz
New Zealand
-------------- next part --------------
A non-text attachment was scrubbed...
Name: u-boot-itest-1.patch
Type: text/x-diff
Size: 6894 bytes
Desc: not available
Url : http://lists.denx.de/pipermail/u-boot/attachments/20040210/fb286e0f/attachment.patch 

             reply	other threads:[~2004-02-10  2:29 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-02-10  2:29 Robin Gilks [this message]
2004-02-23 18:11 ` [U-Boot-Users] [PATCH]: revised itest command Wolfgang Denk

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=402841F0.6090003@tait.co.nz \
    --to=robin.gilks@tait.co.nz \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox