home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Hall of Fame
/
HallofFameCDROM.cdr
/
pcjr
/
sp_ss_21.lzh
/
SP_SS_21.PAT
Wrap
Text File
|
1987-09-12
|
5KB
|
153 lines
WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
Make the following patch AT YOUR OWN RISK.
Do NOT attempt to follow these instructions UNLESS
1) You understand them; AND
2) You make the changes they call for using an EXTRA COPY of the
affected file, NOT the original or the only copy of the file
you have; AND
3) You check your typing SCRUPULOUSLY: AND
4) You test the patched file by booting your computer with it and
then running a variety of programs BEFORE you transfer the
patched version of the file to other disks.
The following instructions are intended to explain a patch in a DOS
2.1 system file. The patch is designed to correct an error that rarely
causes problems in most PCs but which can cause problems in the IBM
PCjr
The problem involves the sequence in which the stack segment (SS) and
stack pointer (SP) are set. The proper sequence is SS first, then SP.
But DOS 2.1 was released with some sequences in the SP:SS order.
According to sources like Russ Davies ("COMPUTE!'S MAPPING THE IBM PC
AND PCjr," ISBN 0-942-386-92-2, p. 52), this improper sequence leads to
problems if any interrupt occurs between the first setting and the
second--and the problems usually result in a crash that requires a
power-off/power-on reboot.
To patch IBMDOS.COM in DOS 2.1 to fix the problem with the stack
segment and stack pointer:
------------------------------------------------------------------------
PREPARATION:
Take a blank disk and format it using the FORMAT [drive:] /S command.
Then copy DEBUG.COM from the DOS program disk onto the newly-formatted
disk. This newly formatted disk is the one to use in making the patch.
If you make a mistake as you enter the commands below, STOP, reboot
using an old disk, and START OVER--that is, format the new disk again
using the FORMAT [drive:] /S command, copy DEBUG.COM to it, and begin
again.
------------------------------------------------------------------------
Put the new disk in drive A.
Type in the numerals that appear below as well as the LETTERS that
appear in capitals (except, of course, for the A>prompts!).
Once you begin the DEBUG program (and this patch calls for you to begin
and end it three times), the standard prompt will be a hyphen (-).
Hit a carriage return at the end of each line and wherever <enter>
appears. DON'T enter the comments that appear between <marks>.
A>DEBUG <this first step unhides the ibmdos.com file:>
-L 100 0 5 1
-D 12B L 4
-E 12B <this instruction changes 27 (which will appear
.20 before the period) to 20>
-W 100 0 5 1 <this writes the change onto the disk>
-Q <this ends the first step (quits)>
------------------------------------------------------------------------
(check to see that IBMDOS.COM is unhidden by using the DIR command)
------------------------------------------------------------------------
The next step is making the patch itself.
A>DEBUG IBMDOS.COM
-U3AC L A <this will display part of the file to be changed>
-A3AC
CS:MOV SS,[02A8] <this makes
CS:MOV SP,[02A6] the changes>
<enter>
-UCD1 L A <this will display another part of the file>
-ACD1
CS:MOV SS,[02D3] <this makes
CS:MOV SP,[02D1] the changes>
<enter>
-U1522 L A
-A1522
CS:MOV SS,[02D3]
CS:MOV SP,[02D1]
<enter>
-U311D L 8
-A311D
MOV SS,[02D3]
MOV SP,[02D1]
<enter>
-U325F L 4
-A325F
MOV BP,ES
MOV SS,BP
<enter>
-U490B L 7
-A490B
MOV AX,CS
MOV SS,AX
MOV SP,4235
<enter>
-W <this writes the new version of the file to disk>
-Q <this ends (quits)>
------------------------------------------------------------------------
The next step hides the file again.
A>DEBUG
-L 100 0 5 1
-D 12B L 4
-E 12B
.27 <changes the 20 back to 27>
-W 100 0 5 1
-Q
-------------------------------------------------------------------------
Use the DIR command to be sure that the file has been hidden.
Then reboot using Ctrl-Alt-Del or power-off/power-on. Check to see
that DOS loads properly and that you get a regular prompt.
Run a variety of programs without rebooting (or after booting up each
time using the test disk). If you experience no problems, copy the new
IBMDOS.COM to other disks that already have the old version.
To transfer the system files to other disks that already have the old
version,
Copy SYS.COM from the DOS program disk to the new test disk.
Put the new test disk in drive A. Put the disk to which you want
to transfer the new system files in drive B. Then use the command
A>SYS B:
(if you're using a PCjr with one drive, put the new test disk in the
drive and use the same command; then put the disk to which you want
to transfer the new system files in the drive when you're prompted to
insert the disk for "drive B." You'll be prompted to swap the two
disks a couple of times before the transfer process is compleated)