Re: Bios

Richard B. Johnson (
Sun, 17 May 1998 21:51:13 -0400 (EDT)

On Sun, 17 May 1998, C. Scott Ananian wrote:
> assumed. Even DOS mode tools or pointers would be great: what's the
> easiest way to extract this code and analyze it?
> --Scott

Presume we want to write 0x2000 bytes from the PROM at 0xc800, offset 0,
into a DOS file called PROM.BIN....

DOS> debug
- m c800:0 100 2000 ! copy(move) c800:0 to ds:100, 2000 bytes
- rcx ! exam CX
:2000 ! Set byte-count in CX
- n prom.bin ! Name a file
- w ! Write the file
- q ! Quit
DOS> debug prom.bin ! load the file.
- u 100 ! Unassembly stuff

If you want the offsets to be correct, move the data from 100 hex where
DEBUG loads it to some unused segment, offset 0 (5000:0) perhaps.
Disassemble it from there

Dick Johnson
Penguin : Linux version 2.1.101 on an i586 machine (66.15 BogoMips).
Warning : It's hard to remain at the trailing edge of technology.

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to