DEV NEXT$
function: get the next device that satisfies the current search path
device$=Dev Next$
This is used in conjunction with the DEV FIRST$ function to get the next device in the current device list that satisfies the specified search path. Once the last device has been found, an empty string will be returned.
E> Print Dev First$("**") Do A$=Dev Next$ If A$="" Then End Print A$ Loop
AMOS Professional includes a powerful series of commands to exploit these devices directly from your programs, but they should only be used by experienced programmers, armed with the relevant ROM Kernel manual. You have been warned!
DEV OPEN
instruction: open a device
Dev Open(channel number,"name.device",IOlength,UnitNumber,Flags)
The DEV OPEN command opens a communication port and prepares the device for use by AMOS Professional programs. If this device is not already installed, it will be loaded from the "DEVS" folder of your current start-up disc automatically. Floppy disc users may be requested to swap discs at this point.
The selected device will now remain active during the course of the program, and will only be closed if a DEV CLOSE command is called, or a RUN command is used to clear the variable area, or a CLEAR operation is undertaken.
The specified channel number should be from zero to 4, the "name.device" parameter enters the name of the device to be initialised in normal AmigaDOS format, and IOlength specified the length of the IO structure to be created for the device. If in doubt, use a value of 256, which should be sufficient for most devices. The final flags parameter sets the status of the device flags if applicable. Please refer to your system documentation for details.
DEV OPEN performs the following operations:
DEV CLOSE
instruction: close one or more devices
Dev Close
Dev Close channel
Use this command to close one or more open devices.