Commodore vic-1540 User Manual page 44

Table of Contents

Advertisement

Where:
ch
= the channel number in DOS: identical to the secondary
address in the associated OPEN statement.
dr
= the drive number: 0
t
= the track number: 1 through 35.
s
= the sector number, 0 through 20. For each track number,
the sector range is shown in Table 4.
p
= the pointer position for the buffer pointer.
adl
= the low byte of the address*.
adh
= the high byte of the address*.
nc
= the number of characters: 1 through 34*.
data
= the actual data in hexidecimal. This is transmitted by using
the CHR$ function, i.e. CHR$(1) would send the binary
equivalent of hexidecimal 01, (decimal 1).
i
= the index to the User Table.
parms = the parameters associated with the U command (optional).
The values used in conjunction with the memory commands exist in the VIC-
1540 as hexidecimal values and must be transmitted as CHR$(n), where n is the
decimal equivalent of the desired hexidecimal value.
NOTE: If using variables the format must have only the command in quotes.
For example:
"B-R:"ch,dr,t,s
correct
"B-R:ch,dr,t,s"
incorrect
To avoid confusion, it is good practice to use this format when using variables or
constants.
As implied in the preceding format, these commands may be abbreviated to the
first character of each of the key words. Abbreviations only are accepted for
those commands shown in lower case. The parameters associated with each com
mand are searched for starting at a colon (:), or in the fourth character position
if a colon is not present. The example following shows four ways that the same
block-read command may be given.
37

Advertisement

Table of Contents
loading

Table of Contents