lkml.org 
[lkml]   [1998]   [May]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
DateSun, 17 May 1998 21:51:13 -0400 (EDT)
From"Richard B. Johnson" <>
SubjectRe: Bios
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



Cheers,
Dick Johnson
***** FILE SYSTEM MODIFIED *****
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 majordomo@vger.rutgers.edu

\
 
 \ /
  Last update: 2005-03-22 13:42    [from the cache]
©2003-2010