Changing Device Number; Primary Address - Commodore 2031 User Manual

Hide thumbs Also See for 2031:
Table of Contents

Advertisement

2.
DOS Support may only be used when communicating with the disk in direct
mode. That is, they may NOT be used in a program.
3.
The disk directory may be printed on the printer by giving these commands:
LOAD "$0",8
OPEN 4,4:CMD4:LIST
PRINT#4:CLOSE4
4. DOS support will only operate on device number 8.

CHANGING DEVICE NUMBER

Occasionally it is desirable to alter the device number (primary address) of a disk
system. As assembled at the factory, each CBM Floppy Disk System has a
primary address of 8. The following program will allow the change of the
address to other values.
The address change remains in effect until the system is
reset either by the primary AC power switch to the disk
system or to the CBM computer, or by the execution of
the User Reset Vector "UJ" (Described in the manual
page 47/48).
The program to change the device number (primary address) is:
10 OPEN15,CH,15
20 PRINT#15,"M-W"CHR$(119)CHR$(0)CHR$(2)CHR$(NA$+32)CHR$(NA+64)
Where:
CH = current primary address (8 at power on/reset)
NA = new address (only 8-11 is allowed)
If any address other than 8 is set into the system, all
BASIC 4.0 disk commands must be suffixed with Udn
parameter as the default is to device number 8.
74
NOTE
NOTE

Advertisement

Table of Contents
loading

Table of Contents