home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Ahoy 1986 November
/
Ahoy_Magazine_86-11_1986_Double_L.d64
/
editor-part2.txt
< prev
next >
Wrap
Text File
|
2022-10-26
|
5KB
|
223 lines
DISK EDITOR COMMENTS
by Phyrne Bacon
Disk'editor can be used with a 1541
or MSD disk drive to edit any sector
of any track on a formatted disk.
Disk'editor can be used to unscratch
files, to recover from an accidental
short new (pass"n0:name" without id),
or to do any other disk editing
function.
GETTING STARTED
Before using disk'editor, make a
backup copy of the disk. If anything
on track 18 is changed, validate the
disk afterwards:
Type: pass"v0"
LOADING THE FIRST SECTOR
You will be asked to enter the
decimal track and sector numbers.
That block will be loaded from the
disk.
After a sector has been loaded from
the disk, the decimal track and
sector numbers and first half appear
near the top of the screen. The 128
bytes of the half-block are divided
into 8 columns and 16 rows. The data
for the first half-sector
(half-block) appears below in two
forms. Each byte is given in hex on
the left and a character on the
right.
The byte 65 (in decimal) would appear
as 41 (in hex) on the left and a on
the right. Many bytes, 0 for example,
are not used to represent letters or
numbers, and are represented on the
right by . (period). The byte 160
(shift-space) is used to fill out all
disk directory filenames to sixteen
bytes. It is represented on the left
by a0 and on the right by +.
I. EDITING
INFORMATION (i)
Whenever a half-block is displayed on
the data screen, you can see the info
(help) screen by pressing i. The info
screen lists all the disk'editor
commands. Press any key to return to
the data screen.
THE CURSORS
There are two cursors which move
together. The cursor on the left is
on the hex byte (the corresponding
decimal appears above). The cursor on
the right is on the corresponding
character. The position of the byte
the cursor is on also appears above.
The position number ranges from 0 to
255.
Use the cursor keys to move the
cursors. They wrap: when they go over
the top edge they appear on the
bottom row; when they go over the
right edge, they appear in the left
column; etc. Press the <home> key to
return the cursors to the upper
left-hand corner.
SWITCHING HALF BLOCKS (h)
To change from the first half-block
to the second half, press h. To
switch back, press h again.
ENTERING HEX
To change a byte by entering a hex
number, move the cursor to the byte
and type the hex number. If you type
the first digit incorrectly, press an
illegal character such as x to keep
the byte unchanged. To enter a hex
number you must type both digits.
Example: type 0d for a carriage
return.
ENTERING DECIMAL (n)
To enter a decimal number, press n,
enter the number, and press <RETURN>.
TYPING MODE (t)
To enter typing mode, press t. Once
you are in typing mode, each key
typed will be entered in the byte
under the cursor, and the cursor will
move to the next byte. The cursor
keys cannot be used in the typing
mode. To exit typing mode, press
<RETURN>.
ZEROING A BLOCK (z)
To set a block to zero, press z, and
answer y to the question. This will
zero all bytes except for the first
two.
II. LOADING AND SAVING
LOADING A BLOCK (k or l)
To load a block using decimal track
and sector numbers, press l
(lower-case L). To load using hex,
press k. Press <RETURN> after each
number. If you pressed l or k by
mistake, give a false track or sector
number such as 99.
RELOADING A BLOCK (r)
To reload a block, press r. The block
with the track/sector numbers on the
screen will be reloaded.
SAVING A REVISED BLOCK (s)
To save a revised block to the same
track/ sector from which it was
loaded, press s. You will be asked if
you are sure. Press y to save the
block.
WRITING A NEW BLOCK (v or w)
To save a block to a different
track/sector, press w and enter
decimal numbers, or press v and enter
hex numbers. Press <RETURN> after
each number. S, w, or v can be used
to move a block from one disk to
another. If you pressed w or v by
mistake, give a false track or sector
number such as 99.
JUMP TO NEXT BLOCK IN FILE (j)
To move to the next block in the
file, press j. The first two bytes of
a block give the track/sector of the
next block in the file.
NEXT BLOCK ON TRACK (^)
To move to the next block on the
track, press the <up-arrow> key.
JUMP TO CURSOR BLOCK (u)
If a track/sector appears as a pair
of hex numbers on the screen, move
the cursor to the track (the one on
the left) and press u. The block will
be loaded and the first half will
appear on the screen.
PREVIOUS BLOCK (p)
To move to the block loaded previous
to the one on the screen, press p.
III. AFTERWARDS
EXIT (x)
To exit, press x.
VALIDATING THE DISK
Any time the disk directory is
edited, update the BAM (Block
Availability Map).
Type: pass "v0"
Then, to check the disk directory
type:
cat
This program is on Today Disk #13.
Further Reference:
Inside Commodore Dos by R. Immers and
G. Neufeld
Fix Disk Errors, COMAL Today #11,
page 16
Directory Editor, COMAL Today #8,
page 55
Disk Editor, COMAL Today #7, page 56
Disk Editor, COMAL Today #5, page 45
Disk Directory Manipulator, COMAL
Today #3, page 6