LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 12-29-2012, 03:03 PM   #1
saeedsssss
Member
 
Registered: Apr 2012
Posts: 43

Rep: Reputation: Disabled
What's "probe_values: .byte 36, 18, 15, 9, 0" on MBR(stage1.S) of grub legacy(0.97)


I read stage1.S of grub legacy
and see this code
#====================
probe_values:
.byte 36, 18, 15, 9, 0
#===================
from line 449
(place of stage1.S on source code is "grub-0.97\stage1\stage1.S " )
what do that do?
What's meaning of that?

for example ,what's 36 and other numbers

Last edited by saeedsssss; 12-29-2012 at 03:06 PM.
 
Old 12-30-2012, 12:05 PM   #2
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
I googled ".byte 36, 18, 15, 9, 0" and found a hit that seem to point resetting the FDC, or Floppy Disk Controller.

3.8. Miscellaneous
says
Code:
///////////////////////////////////////////////////////////////////////////////
// some small functions
print_all();  /* print error code, AX, BX, CX and DX */
print_nl();   /* print CR LF */
print_hex();  /* print the word pointed to by SS:BP in hexadecimal */
kill_motor()  /* turn off floppy drive motor */
{
#if 1
        int13/AH=00h(DL=0);     // reset FDC
#else
        outb(0, 0x3F2);         // outb(val, port)
#endif
}

///////////////////////////////////////////////////////////////////////////////
sectors:        .word 0
disksizes:      .byte 36, 18, 15, 9
msg1:           .byte 13, 10
                .ascii "Loading"


But I am not sure. Just a guess.
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
What's "movb $1, -1(%si)" on MBR(stage1.S) of grub legacy(0.97) saeedsssss Programming 6 12-24-2012 01:57 PM
Gentoo... grub problems... "/boot/grub/stage1" exists... no halo14 Gentoo 5 02-06-2011 04:50 PM
[SOLVED] How to recover from a "GRUB" stuck before stage1 VirtualEJ Red Hat 4 04-05-2010 10:40 AM
Checking if "/grub/stage1" exists... no centguy Linux - Software 4 06-15-2009 08:50 AM
Grub Checking if "/boot/grub/stage1" exists... no (but it does) ??? taylorkh Linux - General 5 08-01-2008 05:17 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 07:51 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration