linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Searching for string problems
@ 2003-04-23 16:58 Andrew Kirilenko
  2003-04-23 17:39 ` Richard B. Johnson
  0 siblings, 1 reply; 14+ messages in thread
From: Andrew Kirilenko @ 2003-04-23 16:58 UTC (permalink / raw)
  To: linux-kernel

Hello!

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).

-->
start_of_setup:
	jmp cl_start
cl_id_str:      .string "BIOS 0.1" 
cl_start:
        movb    $0, %al
        movw    $0xe000, %bx
cl_compare:
        incw    %bx
        movw    %bx, %si
        cmpw    $0xefff, %si
        je      cl_compare_done
        movw    $cl_id_str, %di
cl_compare_inner:
        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
cl_compare_done_good:
        movb    $1, %al
cl_compare_done:
<--

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,
Andrew.

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2003-04-23 20:00 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-04-23 16:58 Searching for string problems Andrew Kirilenko
2003-04-23 17:39 ` 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

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).