MS-DOS调试实用程序flash / write bios到ROM

时间:2016-08-16 20:39:23

标签: batch-file assembly dos

在MS-DOS中,有一个名为debug的程序,允许您编写汇编代码,从内存,ROM读取和写入等。在debug中,您可以转储BIOS,它存储在地址F0000到FFFFF。你可以这样做(来自mess.org):

C:\> DEBUG

-N MYF000.BIN (resulting file will be named MYF000.BIN)

-R BX (set BX=0000H/CX=8000H as count of bytes to write, 00008000H = 32K)
BX 0000
:0000
-R CX
CX 0000
:8000

-M F000:0 8000 0100 (copy 32K bytes from F000:0 to offset 0100 in local segment)

-W 0100 (write from offset 0100 in local segment)
Writing 8000 bytes

-N MYF800.BIN (resulting file will be named MYF800.BIN)

-M F800:0 8000 0100 (copy 32K bytes from F800:0 to offset 0100 in local segment)

-W 0100 (write from offset 0100 in local segment)
Writing 8000 bytes

-Q

C:\>copy /b myf000.bin+myf800.bin final.bin

所以,我的问题是,是否可以从bin文件中写入bios,就像从中读取它一样?

0 个答案:

没有答案