archive mirror
 help / color / mirror / Atom feed
From: Andrew Kirilenko <>
Subject: Searching for string problems
Date: Wed, 23 Apr 2003 19:58:43 +0300	[thread overview]
Message-ID: <> (raw)


OK. I've solved my problems with storing data (problem was with improper DS 
setup - thanks to all, pointed me to this). And now I should perform a search 
in the BIOS are for particular string (version of BIOS ). Here is my code 
(it's located in the setup.S, so executes in the real mode, not ptotected).

	jmp cl_start
cl_id_str:      .string "BIOS 0.1" 
        movb    $0, %al
        movw    $0xe000, %bx
        incw    %bx
        movw    %bx, %si
        cmpw    $0xefff, %si
        je      cl_compare_done
        movw    $cl_id_str, %di
        movb    (%di), %ah
        cmpb    $0, %ah
        je      cl_compare_done_good
        cmpb    (%si), %ah
        jne     cl_compare
        incw    %si
        incw    %di
        jmp     cl_compare_inner
        movb    $1, %al

This code don't work... I'm sure, that's because of inproper registers setup 
(or maybe address range is wrong). Please help me.

Best regards,

             reply	other threads:[~2003-04-23 16:46 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-04-23 16:58 Andrew Kirilenko [this message]
2003-04-23 17:39 ` Searching for string problems Richard B. Johnson
2003-04-23 18:05   ` Andrew Kirilenko
2003-04-23 18:15     ` Richard B. Johnson
2003-04-23 18:25       ` Andrew Kirilenko
2003-04-23 18:56         ` Richard B. Johnson
2003-04-23 19:00           ` Andrew Kirilenko
2003-04-23 19:11             ` Randy.Dunlap
2003-04-23 19:37             ` Richard B. Johnson
2003-04-23 19:48               ` Andrew Kirilenko
2003-04-23 20:05                 ` Randy.Dunlap
2003-04-23 20:05                 ` Richard B. Johnson
2003-04-23 20:12                   ` Andrew Kirilenko
2003-04-23 18:59         ` Randy.Dunlap

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:

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

  git send-email \ \ \ \

* 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;
as well as URLs for NNTP newsgroup(s).