PC DOS 2.x for the IBM 5160 and IBM PCjr

PC DOS 2.0 was released in March 1983 and PC DOS 2.10 was released in October 1983. MAME softlists PC DOS 2.0 at ibm5160_flop and PC DOS 2.1 at ibmpcjr_flop. winworldpc.com has several versions of DOS and supporting documentation. Both PC DOS 2.00 and 2.10 have 23 visible files on the disk. PC DOS 2.0 Supplementary has 13 files on the disk and PC-DOS 2.10 Supplementary has 14 files (adds MUSICA.BAS). Documentation is at IBM PC DOS 2.10 Manual. PC DOS 2.x is backward compatible so it can be used on the IBM 5150. A history of DOS 2.0 and DOS 2.1 is at os2museum.com.


I converted the winworld disk from .img format to .dsk format: 1. copy existing softlisted .dsk and rename to blank_disk.dsk, 2. load ibm5160 with pcdos200.img in A drive and the blank disk in the B drive, 3. FORMAT B: /S, 4. DISKCOPY A: B:, 5. do the same for pcdos200sup.img and the pcdos210 disks.

D:\mame>mame64 ibm5160 -isa3:fdc_xt:fdc:0 525dd -flop1 “d:\mame\roms\pc_flop\pcdos200_525360.zip” <Enter>

The command processor searches for AUTOEXEC.BAT on the disk and if found, it will execute the batch file. Since it is not on the DOS disk, you are prompted to enter a date. Enter a date and press <Enter>

ibm5160_dos200

DOS 2.00 – IBM 5160

D:\mame>mame64 ibmpcjr -flop “d:\mame\roms\pc_flop\pcdos210_525360.zip” <Enter>

ibmpcjr_dos210

DOS 2.10 – IBM PC Jr


Installing DOS 2.1 on the IBM 5160 Hard Disk

Create a Hard Disk for the IBM 5160:
D:\mame>chdman createhd -o st412.chd -chs 306,4,17 <Enter> — Seagate ST-412 10MB (1981)
D:\mame>chdman createhd -o st225.chd -chs 615,4,17 <Enter> — Seagate ST-225 20 MB (1982)

Load the IBM 5160 with DOS 2.1 in the floppy and 10MB HDD attached:
D:\mame>mame64 ibm5160 -isa3:fdc_xt:fdc:0 525dd -flop1 “d:\mame\roms\pc_flop\pcdos210_525360.zip” -hard1 “d:\mame\roms\pc_hdd\st412.chd” <Enter>
Enter new date: enter a date <Enter>
Enter new time: enter a time <Enter>
A>FDISK <Enter>
Enter Choice [1] <Enter> — use the default 1
Do you wish to use the entire fixed disk for DOS (Y/N)…………….? [Y] <Enter> — use the default Y
…Insert DOS diskette in drive A and press any key when ready: <Enter>
Enter new date: enter a date <Enter>
Enter new time: enter a time <Enter>
A> FORMAT c:/S/V <Enter>
Press any key to begin formatting C: <Enter>
Volume label (11 characters, ENTER for none)? ST-412 10MB <Enter>
A>COPY *.* c: <Enter> — to copy MS DOS 2.1 to the hard drive

The next time you load MAME, don’t put in a bootable floppy and it will automatically boot from the C: drive.
D:\mame>mame64 ibm5160 -hard1 “d:\mame\roms\pc_hdd\st412.chd” <Enter>

ibm5160_dos2-1_hdd

DOS 2.1 – IBM 5160


Installing Programs

Since I created two hard disk drives. I will try to use the 10MB disk for games and the 20 MB disk for applications as I test them. This section is for notes on how I install and run programs from the emulated hard drives. Since the .ini files saves changes from the last use of MAME, I created backup copies to save myself typing during MAME launch.

Load the IBM 5160 with 10MB HDD (.ini):
D:\mame>mame64 ibm5160 <Enter>

Create an AUTOEXEC.BAT file so that you are not prompted to load a date/time each session:
COPY CON: AUTOEXEC.BAT <Enter>
F6 <Enter> — It may be necessary to use EDLIN to save the autoexec.bat file

GALAXY: (mount the galaxy disk in the A drive)
C> MD C:\GALAXY
COPY A: *.* C:\GALAXY\*.*
Change GALAXY.BAS line 440 RUN “C:\GALAXY\GALAXYP.BAS” then SAVE “C:\GALAXY\GALAXY.BAS”
BASICA C:\GALAXY\GALAXY.BAS — to run the game from the hard drive.

ANDROMEDA CONQUEST: (mount the Andromeda Conquest disk in the A drive)
C> MD C:\ANDROMED
COPY A: *.* C:\ANDROMED\*.*
Change ANDROMED.BAS line 440 RUN “C:\ANDROMED\GAME.BAS” then SAVE “C:\ANDROMED\ANDROMED.BAS”
BASICA C:\ANDROMED\ANDROMED.BAS — to run the game from the hard drive.

MIDWAY CAMPAIGN: (mount the Midway Campaign disk in the A drive)
C> MD C:\MIDWAY
COPY A: *.* C:\MIDWAY\*.*
Change MIDWAY.BAS line 440 RUN “C:\MIDWAY\MIDWAYP.BAS” then SAVE “C:\MIDWAY\MIDWAY.BAS”
BASICA C:\MIDWAY\MIDWAY.BAS — to run the game from the hard drive.

Galaxy for the IBM 5160

Galaxy for the IBM PC was released in 1982 by Avalon Hill. It is a resource allocation program where the objective is to conquer the galaxy.


I am not sure what DOS system the program was designed for, but since the abandonware version includes GWBASIC, I choose DOS 2.00. Additionally, when I tried to copy the files to DOS 1.00 format, the galaxy.bas file did not copy properly. I used winimage to create a disk in .dsk format: 1. copy blank_disk.dsk and rename to galaxy (1982)(avalon hill).dsk, 2. use winimage to copy galaxy.bas and galaxy.bas to the disk, 3. compress the file to .zip format.

D:\mame>mame64 ibm5160 -isa3:fdc_xt:fdc:0 525dd -flop1 “d:\mame\roms\pc_flop\pcdos200.zip” <Enter>

Enter a date and press <Enter> then enter a time and press <Enter>.
BASICA <Enter>
Mount the galaxy.zip file thru the internal UI.
LOAD “GALAXY” <Enter>
RUN <Enter>

ibm5150_galaxy

Galaxy – IBM 5150

You are prompted:
OLD OR NEW GAME?
HOW MANY PLAYERS (1-20)?
HOW MANY WORLDS (5-40)?
HOW MANY TURNS (1-100)?
SHOULD NEUTRAL WORLDS BUILD DEFENSIVE SHIPS?
PLAYER 1 CONTROLS WORLD A HIS NAME (1-4 LETTERS)?

RESULTS are displayed for the current year then a list of worlds is displayed: WRLD CONT PROD SHPS
WRLD – world
CONT – player who controls the world
PROD – production of the world
SHPS – number of ship at the world

Then you are prompted to take your turn:
FROM: — enter letter (for world) <Enter> TO: — enter letter (for world) <Enter> NUMBER OF SHIPS — enter number <Enter>. NOTE the number of ships is not displayed on the screen.

To End turn, press <Enter> when prompted FROM:

Press the Esc Key to display the menu.
G=GO BACK TO REGULAR TURN
M=STARMAP
T=TIME/DISTANCE CALCULATOR
S=SAVE CURRENT GAME
Q=QUIT
E=END GAME

Ulysses and the Golden Fleece on the IBM 5150

Ulysses and the Golden Fleece is a text adventure with graphics. The 1981 version was for the Apple II and this port for the PC was in 1982.


Ulysses and the Golden Fleece

D:\mame>mame64 ibm5150 ulysses <Enter>

The game boots to the title screen and prompts: “Press any key to begin…”

ibm5150_ulysses_and_the_golden_fleece

Ulysses and the Golden Fleece – title screen

Next prompt is: “Please insert disk 2 and press <Enter>.”
Use MAME’s internal UI to mount disk 1 in floppydisk 1 then press <Enter>.

Ulysses and the Golden Fleece

This is all the further I could get the game to progress.

Microsoft Adventure on the IBM 5150

Microsoft Adventure from 1981 is a text adventure for the IBM 5150. Documentation is at the Program Instructions for Microsoft Adventure.


Microsoft Adventure

D:\mame>mame64 ibm5150 msadvent <Enter>

The game boots to the title screen. Press <Enter> to start a new game. Type in one or two word phrases to play the game. This is a version of Colossal Cave. Special Command Functions: HELP, INFO, QUIT, SAVE, LOOK, SCORE, and INVENTORY.

ibm5150_microsoft_adventure

Microsoft Adventure – IBM 5150

I created a map from when I played the game.

microsoft-adventure

Microsoft Adventure Map

IBM 5150

The IBM 5150 was released in 1981. Use -listslots to see the slot devices and -lm or -listmedia to see the media formats available in MAME. The emulation has a lot of options: See the ibmpc.cpp, pc.cpp, and genpc.cpp drivers for information about the system and clones and access the internal UI thru the Tab key for various settings.

Use the -bios option (set of 5 integrated circuits) to select a bios:
-bios 1 (or -bios rev1) installs the original 04/24/81 bios
-bios 2 (or -bios rev2) installs the revised 10/19/81 bios
-bios 0 (or -bios rev3) installs the default 10/27/81 bios


D:\mame>mame64 -w ibm5150 <Enter>
Enter a date then press <Enter>

ibm5150

IBM 5150

The display shows:
The IBM Personal Computer Basic — indicates that the operating system is Cassette BASIC
Version C1.00 Copyright IBM Corp 1981
62940 Bytes free
Ok
_ — is the blinking cursor for entering BASIC commands
The bottom line displays the default settings for the programmable function keys.