Login
Back to forumSee the full topicGo to last reply

Posted By

SVS
on 2019-04-01
11:29:36
 Re: Puzzling about OPEN

Some more info if can help:

CHANNELNUMBER: is used to tell the device how to manage the data transfer. 0: means load binary data from device to memory; 1: save binary data from memory to device; 15: send a commands to device.
These values are involved into buffer management too, especially when you have more opened files.

MODE: don't forget the convenient "A" mode that allows to append data to an existing SEQ/USR file without to read all the current data and then re-save all them.

SYNTAX: If you code a program in assembly, remember that you must use the DOS syntax that is different than the BASIC syntax. In short words you have to send to the unit a single string like:
"xy:zzzzzzz" where x is the command (1 letter), y is the unit (0 or 1), zzzzz is the filename. For example:
BASIC: SCRATCH "myfile"
DOS: "S0:myfile"

Le me know happy



Back to top


Copyright © Plus/4 World Team, 2001-2024