Skip to content

Commit 2af695b

Browse files
committed
biosdump: Better integrate it into the tree
1 parent ba6ea22 commit 2af695b

10 files changed

Lines changed: 56 additions & 494 deletions

File tree

biosdump/Makefile

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#
2+
# 86Box A hypervisor and IBM PC system emulator that specializes in
3+
# running old operating systems and software designed for IBM
4+
# PC systems and compatibles from 1981 through fairly recent
5+
# system designs based on the PCI bus.
6+
#
7+
# This file is part of the 86Box Probing Tools distribution.
8+
#
9+
# Makefile for compiling C-based tools with Watcom.
10+
#
11+
#
12+
#
13+
# Authors: RichardG, <[email protected]>
14+
#
15+
# Copyright 2021 RichardG.
16+
#
17+
18+
SYSTEM = PMODEW
19+
OBJS = biosdump.obj clib.obj
20+
DEST = BIOSDUMP.EXE
21+
22+
!include ../clib/watcom.mk

biosdump/README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
biosdump
2+
========
3+
DOS tool for dumping the BIOS ROM on 386 or newer systems.
4+
5+
Usage
6+
-----
7+
Run `BIOSDUMP.EXE`. The following BIOS ROM regions will be dumped to corresponding files:
8+
9+
* `000C0000`-`000FFFFF` (low) to `000C0000.DMP`
10+
* `00FE0000`-`00FFFFFF` (mid) to `00FE0000.DMP`
11+
* `FFF80000`-`FFFFFFFF` (high) to `FFF80000.DMP`
12+
13+
Building
14+
--------
15+
* **Windows:** Run `wmake` from an OpenWatcom "Build Environment" command prompt.
16+
* **Linux:** Run `wmake` with OpenWatcom tools present in `$PATH`.

biosdump/biosdump.c

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,22 @@
1+
/*
2+
* 86Box A hypervisor and IBM PC system emulator that specializes in
3+
* running old operating systems and software designed for IBM
4+
* PC systems and compatibles from 1981 through fairly recent
5+
* system designs based on the PCI bus.
6+
*
7+
* This file is part of the 86Box distribution.
8+
*
9+
* BIOS dumping tool.
10+
*
11+
* Authors: Miran Grca, <[email protected]>
12+
*
13+
* Copyright 2021-2022 Miran Grca.
14+
*/
115
#include <stdint.h>
216
#include <stdio.h>
317
#include <stdlib.h>
418
#include <string.h>
19+
#include "clib.h"
520

621

722
int
@@ -15,6 +30,9 @@ main(void)
1530
char *p;
1631
uint32_t size, ret;
1732

33+
/* Disable stdout buffering. */
34+
term_unbuffer_stdout();
35+
1836
printf("Dumping low BIOS range (000C0000-000FFFFF)... ");
1937
p = (char *) 0x000c0000;
2038
size = 0x00040000;

biosdump/biosdump.lk1

Lines changed: 0 additions & 2 deletions
This file was deleted.

0 commit comments

Comments
 (0)