Home > Vidicode > Communications System > Vidicode Argus Basic Programmers Reference Manual

Vidicode Argus Basic Programmers Reference Manual

Here you can view all the pages of manual Vidicode Argus Basic Programmers Reference Manual. The Vidicode manuals for Communications System are available online for free. You can easily download all the documents as PDF.

Page 171

ARGUS Programmable Modem 
BASIC Programmers Reference Manual 
© 1990 - 1997 Vidicode Datacommunicatie BV 
168
  
POKE    put byte into memory 
POKE is used to write single bytes of data into memory, and is most commonly used to pass values to and from machine 
code routines, or to save information which can be retrieved later with the PEEK command.  Two parameters are required, 
which specify the address and the value to be stored. 
Examples: 
POKE Address, Byte
POKE &4000+Pointer, GET
POKE &7000, B...

Page 172

ARGUS Programmable Modem 
BASIC Programmers Reference Manual 
© 1990 - 1997 Vidicode Datacommunicatie BV 
169
  
POKE$    put string into memory 
POKE$ is used to write strings into memory which can be retrieved later using PEEK$.  Two parameters are required which 
specify the start address and the string to be stored.  Each character in the string is stored in the next sequential memory 
location from the specified start address.  A Carriage Return is automatically appended to denote the end of the...

Page 173

ARGUS Programmable Modem 
BASIC Programmers Reference Manual 
© 1990 - 1997 Vidicode Datacommunicatie BV 
170
  
PORT    last event 
PORT is used to read the port number on which the last event happened. 
 
PORT is thus associated with the ON ... event handlers. 
 
PORT can also be part of many command lines to indicate the port number (instead of #). 
Examples: 
IF PORT=3 THEN GOSUB Password-control
PRINT PORT 2 Hello
Syntax: 
[num-var] = PORT
See also: 
ON BRK, ON DTD, ON DTR, ON ESCAPE, ON SEQUENCE
  

Page 174

ARGUS Programmable Modem 
BASIC Programmers Reference Manual 
© 1990 - 1997 Vidicode Datacommunicatie BV 
171
  
PRINT    send data to port 
PRINT is used to output numbers and/or strings to the output ports.  There are several major advantages over PUT and 
PUT$: 
a) PUT and PUT$ can only send a single value/character at a time. 
PRINT can send multiple characters or values. 
b)  Any output formatting required must be carried out explicitly using 
PUT and PUT$, but PRINT provides a variety of formatting...

Page 175

ARGUS Programmable Modem 
BASIC Programmers Reference Manual 
© 1990 - 1997 Vidicode Datacommunicatie BV 
172
  
Examples: 
PRINT Message number : ;M_Nr;
PRINT#1,#7,12+9*A(I)
PRINT ~1000*R/P
PRINT ;&100+PEEK(&2000)
PRINT#1,DTR=;DTR#2,RTS=;RTS#2
PRINT E1$+E2$+CHR$7
Syntax: 
PRINT ( #[port] , ) (#...) ( [string] ) () (,) (;) (~) ( [integer] )
(;)
See also: 
OUTPUT, PUT, PUT$ 

Page 176

ARGUS Programmable Modem 
BASIC Programmers Reference Manual 
© 1990 - 1997 Vidicode Datacommunicatie BV 
173
  
PRINTER    enable/disable printer port 
PRINTER provides an alternative means of controlling the printer port.  The parallel printer port is only available in an Argus 
Programmable Modem, not in a T.C.Lite.  There are four forms of the command: 
PRINTER and PRINTER ON 
The PRINTER and PRINTER ON commands will enable the printer by adding 64 to the value of OPORT. 
PRINTER OFF 
This subtracts...

Page 177

ARGUS Programmable Modem 
BASIC Programmers Reference Manual 
© 1990 - 1997 Vidicode Datacommunicatie BV 
174
  
PROTOCOL    set file transfer protocol 
Selecting between different protocols is done by the PROTOCOL command.  Before sending or receiving using the 
SEND,X or RECEIVE,X commands you must set the right options with this command. 
 
PROTOCOL expects a number between 0 and 255.  The bits in the number are organized as follows: 
 
bit0 =0/1=  Use checksum/CRC-16 for error detection 
bit1 =0/1=...

Page 178

ARGUS Programmable Modem 
BASIC Programmers Reference Manual 
© 1990 - 1997 Vidicode Datacommunicatie BV 
175
  
PROTOCOL 7
 
SEND FILE4,X
: 4th and last file 
Bit5:  Ymodem-receive file name counter. 
This bit only has an effect when Ymodem-receive is selected and when bit6 is 1.  It determines how the filename is 
used when receiving multiple files with Ymodem.  If bit5 is set, then the last number in the filename is incremented.   
If bit5 is cleared, then the last number before the first dot (if...

Page 179

ARGUS Programmable Modem 
BASIC Programmers Reference Manual 
© 1990 - 1997 Vidicode Datacommunicatie BV 
176
  
 RECEIVE [name],B 
 DIR [name],B 
 DIR [name],F 
Exchanging data between the IB and the file is done with PEEK and POKE on addresses &2BE0 til &2BFF. 
 
When the command SEND [name],B is given, the IB of that file is placed on &2BE0. 
 
When the command RECEIVE [name],B is given, the 32 bytes on &2BE0 are placed in the IB of that file. 
 
When a new file is created with RECEIVE, the contents...

Page 180

ARGUS Programmable Modem 
BASIC Programmers Reference Manual 
© 1990 - 1997 Vidicode Datacommunicatie BV 
177
  
If bit7=0 the file length will not be correct, since remaining bytes in the last block are filled with 0 bytes (=NUL).  When bit7=1, 
first a CTRL-Z is placed at the end of the file, the rest is filled with 0.  This is sometimes needed when sending text files. 
Syntax: 
PROTOCOL [integer 0-255]
 
  
Start reading Vidicode Argus Basic Programmers Reference Manual

Related Manuals for Vidicode Argus Basic Programmers Reference Manual

All Vidicode manuals