Compatible with:
DOS Maximite CMM MM150 MM170 MM+ MMX Picromite ArmiteL4
Armite F4
ArmiteH7 Picomite CMM2
Syntax:
INC var [,increment]
CAT string1$, string2$
Description:
CAT (concatenate) is a synonym for INC for use with strings. CAT and INC are interchangeable but it is preferable to use INC for numbers and CAT for strings.
INC var [,increment]
Increments the variable “var” by either 1 or, if specified, the value in
increment.
“increment” can have a negative.
This is functionally the same as var = var + increment but is processed much
faster
In addition it can be used for strings in which case the "increment"
is mandatory and is appended to the first string
CAT string1$, string2$
Concatenates the strings by appending N$ to S$.
This is functionally the same a S$ = S$ + N$ but operates faster.
DIM INTEGER i, cnt
SETPIN 3,2 : SETPIN 5, 8
lines = 5
loops = 1000000
TIMER = 0
'
' start of the timed section (5 lines)
FOR i=1 TO loops
inp = PIN(3)
PIN(5) = inp
'cnt = cnt + 1
INC cnt
NEXT
'
PRINT "Speed is"; INT((cnt * lines)/(TIMER /1000)); " lines per
second."
Last edited: 25 February, 2021