Re: MBR




"Sc0rpi0" <sc0rpi0@xxxxxxxxxxxxxx> wrote in message
news:dmgvqq$ijo$1@xxxxxxxxxxxxxxxxxxxx
> Bill Cunningham uderzy³(a) g³ow± w klawiaturê i wysz³o takie co¶:
>
> >> And single partition descriptior draft is easy to find with Google.
>
> So search the net. Some example:
>
> http://www.dewassoc.com/kbase/hard_drives/master_boot_record.htm
>
> > I am using win98 now. Sometimes linux but win98 is what I'm using.
>
> Hmm, with Win98 you probably still use int 13h as I remember,
> but you have to write interface between C and BIOS so registers
> you need to set is BX=adress_offset ES=adress_segment,
> CX=0x0001,DX=0x00drive where drive=HDD0=0x80,HDD1=0x81 etc.,
> AX=0x0201 to read, 0x0301 to write.
> Anyway do check if is there any function in API that can read
> psychical sectors. If not then you may be forced to use int13h.
> Now I have no any WinAPI help here so can't say, and don't
> remember if these kind of functions were accesible to users.

I considered the Win32API. I don't know if there are any functions
provided there. What does the int 13h mean? I understand the register values
just use assembly perhaps? fread and other C functions would be too large I
would think.

Bill



.



Relevant Pages

  • Re: Linux Sys Calls - int 80h
    ... load the parameters in the required registers and make the "int 0x80" ... Clearly, this stuff is all "processor specific"...also, UNIX doesn't ... are "processor specific" and UNIX was designed with "portability" in ...
    (alt.lang.asm)
  • Re: EOF
    ... Knowing about CPU registers is not necessary at all, ... fgetcreturns an int value which is either: ... The standard requires EOF to have a negative value. ... Since a valid unsigned char value can be any non-negative value in the ...
    (comp.lang.c)
  • Re: [PATCH] Add driver for Dallas DS1682 elapsed time recorder
    ... On 5/10/07, Jean Delvare wrote: ... > + * Low level chip access functions ... > + int val; ... you can check the number of registers? ...
    (Linux-Kernel)
  • Re: management of many small objects
    ... > I do not want to use the usual int*, new, delete method since ... I think you should regard the above struct as an _external ... That means essentially using the FlyWeight pattern (Google). ... access with insertion then a B-tree seems to be indicated. ...
    (comp.lang.cpp)
  • [PATCH 2.6] I2C: New chip driver: sis5595
    ... +/* The SIS5595 registers */ ... +static inline u8 FAN_TO_REG(long rpm, int div) ... we save and restore the fan minimum here, ...
    (Linux-Kernel)