text stringlengths 7 5.36M |
|---|
! TIME Command
!
! TIME Year$, Month$, Day$, Hour$, Minute$, Second$
!
! All the parameters are returned by the TIME command.
!
! Year$: The four digit year
! Month$: The two digit month (1 to 12)
! Day$: The two digit day of the month (1 to 31)
! Hour$: The two digit hour (0 to 23)
! Minute$: The two digit minute (0 t... |
100 REM Program to draw concentric boxes in text mode.
110 SCREEN 0,1:COLOR 7,0,0:WIDTH 40:LOCATE ,,0:KEY OFF:CLS
120 REM Draw edges of outer box
130 FOR I=5 TO 35:LOCATE 5,I:PRINT CHR$(196):NEXT I
140 FOR I=5 TO 35:LOCATE 20,I:PRINT CHR$(196):NEXT I
150 FOR I=6 TO 19:LOCATE I,4:PRINT CHR$(179):NEXT I
160 FOR I=6... |
5 rem fill demo: unfilled box cloud filling
6 rem 2019-10-31 johann # klasek at
7 ifpeek(49153)+peek(49154)<>21thenload"ge",8,1
8 ifpeek(49153)+peek(49154)=21thensys49152
10 &g 1,13,0: poke 53280,5
15 i=rnd(-ti)
20 &s 1 : for i=1 to 70 : rem draw random frames
30 x=rnd(1)*270+10
35 y=rnd(1)*160+10
40 &b x,y,30... |
Attribute VB_Name = "uGlobals"
Option Explicit
Public Const SWP_NOMOVE = 2
Public Const SWP_NOSIZE = 1
Public Const SWP_NOACTIVATE = &H10
Public Const SWP_SHOWWINDOW = &H40
Public Const flags = SWP_NOMOVE Or SWP_NOSIZE Or SWP_NOACTIVATE
Public Const HWND_TOPMOST = -1
Public Const HWND_NOTOPMOST = -2
Declar... |
0 PRINT CHR$(147)
1 POKE 53280,0: REM 1 POKE 53280,11
2 POKE 53281,0
3 POKE 646, 15
4 REM PRINT "////////////////////////////"
5 REM PRINT " RICH DESKTOP "
6 REM PRINT "////////////////////////////"
7 DELIMITER$="> "
8 LNGTH = 7:SX=0:SY=100: TMOUT=0
9 PROGRAM$(0,0)="FILES"
10 PROGRAM$(1,0)="BBS"
11 ... |
file$ = "oficios.ini"
backupFile$ = "novo_oficios.ini"
record = 0
FOR backupIndex = 1 TO 8
a$ = ReadSetting(file$, STR$(backupIndex), "Descricao")
b$ = ReadSetting(file$, STR$(backupIndex), "Data")
c$ = ReadSetting(file$, STR$(backupIndex), "Usuario")
IF LEN(a$) > 0 OR LEN(b$) > 0 OR LEN(c$) > 0 THEN
... |
20 FOR N = 1 TO 20
40 LET S = S + N/10
50 NEXT N
60 PRINT S
70 END
|
Attribute VB_Name = "MainlModule"
' MakeVBCon
' Utility updating the header of a VB .exe to make it a console application
' Allows VB applications to access easily stdin/stdout/stderr and write standard command-line only tools (without msgbox)
' From http://www-new.experts-exchange.com/Programming/Languages/Visual_Basi... |
10 :REM'\hamcalc\prog\REMIND - Reminder - rev. 11 APR 2000
20 CLS:KEY OFF
30 IF EX$=""THEN EX$="EXIT"
40 COMMON EX$
50 COLOR 7,0,1
60 :REM'
70 :REM'.....title page
80 COLOR 15,2
90 PRINT " DAILY REMINDERS"TAB(57)"by George Murphy VE3ERP ";
100 COLOR 1,0:PRINT STRING$(80,223);
110 COLOR 7,0
120 :REM'
130 U$=STRING$(80,2... |
100 REM *** STRUCTURED PROGRAM ***
110 GOSUB 1000
120 GOSUB 2000
130 GOSUB 3000
140 GOSUB 4000
200 END
1000 REM *** INSTRUCTIONS
1990 RETURN
2000 REM *** SETUP
2990 RETURN
3000 REM *** PLAY
3990 RETURN
4000 REM *** END
4990 RETURN |
7 CLS
10 INPUT"Введите значения M и N";M,N
15 IF M<=1 OR N<=1 THEN 7
20 DIM A(M,N):X=RND(-TIME)
30 FOR I=1 TO M:FOR J=1 TO N:A(I,J)=INT(21*RND(1)):PRINT A(I,J);:NEXT J:PRINT:NEXT I
40 DIM B(M)
50 FOR I=1 TO M:FOR J=1 TO N-1:FOR L=J+1 TO N
60 IF A(I,J)>A(I,L) THEN NEXT L:B(I)=A(I,J) ELSE NEXT J:B(I)=A(I,L)
70 NE... |
REM \
\******************************************************************************
\******************************************************************************
\***
\*** ITEM EAN CODES FILE FUNCTIONS
\***
\*** REFERENCE : IEFFUN.BAS
\***
\*** VERSION B. ROBERT COWEY. ... |
# pgap.bas 100 loops
# finds void gaps between primes - (c) 1980-2016 rhn@nicholson.com
10 rem pgap benchmark
20 dim p(1000)
22 p(1) = 3
24 t1 = timer()
26 for k = 1 to 100
30 n = 1 : m = 1
40 lp = 3 : gap = 2
50 lim = 15729
90 for c=5 to lim step 2: for i=1 to n :if c mod p(i) then next i: goto 200
100 goto 400
200 i... |
REM @english
REM GRAPHICS PRIMITIVES USING PALETTE
REM
REM This example will show how to use the palette command.
REM
REM @italian
REM PRIMITIVE DI GRAFICA USARE LA PALETTE
REM
REM Questo esempio mostra come usare il comando del impostare la palette delle sfumature.
BITMAP ENABLE(16)
CLS BLACK
... |
10 rem ******************************************
20 rem * THIS PROGRAM DEMONSTRATES THE USE OF *
30 rem * THE HI -RES GRAPHICS ROUTINES. *
40 rem *.FOR EASE OF USE. THE POKE AND SVS *
50 rem * ROUTINES ARE IN SUBROUTINES AT THE END *
60 rem * OF THE PROGRAM THUS.- *
70 rem * GOSUB 1000... |
1 COMMON A, AL, B, BASEONLY, C, C$, C1, CAT$, CC, CKT$, D, D$, DD, DIA, DIMN$, DMS, E, EO, EX$, F, F$, FD, FF, FQ, FRQ, G$, GO$, I, I$, L, LATLONG, LD, LL, LN, LS, LW, LX, MAX, MENU, MIN, MX, N, NN, NT, OV, P, PI, PROG$, Q, QQ, QU, R, RA, RC, T, T$, U, U$, UH, UL$, V$, VC, W, WHIP, WIRD, WW, X, X$, X1, XS, Z$, ZP, ZS
5... |
10 for i = 0 to 9
20 for j = 0 to 9
30 for k = 0 to 9
40 let kk = 9 - k
44 call triangle (i*10,k+j*10, 9+i*10,j*10, 9+i*10,9+j*10, i+j*10+kk*100)
70 next k
80 next j
90 next i
|
REM COLOR 0, 255, 0, 0
PALETTE 2
LET Y0 = 0
LET Y1 = 160
LET X2 = 128
LET Y2 = 96
LET X3 = 1
LET Y3 = 1
SPRITE 0 SIZE 1 2 TILE 128 POS 8 Y0
SPRITE 1 SIZE 1 2 TILE 128 POS 240 Y1
SPRITE 2 SIZE 1 1 TILE 132 POS X2 Y2
TILESET 1 384 6
TILESET 3 16 16
FVM 0 0 bkg_goxy
FOR A0 = 0 TO 32
FVM 16 bkg_out
NEXT
FVM 0 20 bkg... |
10 'ResX┌─█ Output Background
20 CLV:?:UART 1:PC.RESET
30 VIDEO 0:PC.VIDEO 1
40 K=INKEY():L=0
50 IF K=10 OR K=32 GOTO 120
60 IF K>47 AND K<58 K=K-48:L=1
70 IF K>64 AND K<87 K=K-55:L=1
80 IF K>96 AND K<119 K=K-87:L=1
90 IF !L GOTO 40
100 IF K<16 PC.CLEAR K:GOTO 40
110 K=K-16:PC.IMAGE K:GOTO 40
120 VIDEO 1:PC.VIDEO 0
|
100 REM UPDATORD Program
110 REM Data Entry to the Ordinances File
120 REM Copyright (c) 1982 ... 1989 by: Melvin O. Duke.
130 OPTION BASE 0
140 DEFINT A-Z
600 REM Titles
610 TITLE$ = "Update the Ordinances File"
620 TITLE$ = TITLE$ + " ON DISPLAY"
700 REM Terminate if not called from the Menu... |
CLS
PRINT "Программа для расчета массива элементов по формуле a(n)=n^2+1"
INPUT "Hазмерность массива ", n
DIM a(n)
l = 0
PRINT "В массиве содержатся следующие четные элементы:"
FOR i = 0 TO n
a(i) = i ^ 2 + 1
IF a(i) MOD 2 = 0 THEN
PRINT TAB(4); a(i)
ELSE
l = l + 1
END IF... |
1U$="":INPUTT$:L%=LEN(T$):FORI=1TOL%
2H$=MID$(T$,I,1):C%=ASC(H$):IF(C%<65ORC%>122)AND(C%<48ORC%>57)THEN5
3IFC%>64ANDC%<91THENC%=C%+32
4U$=U$+CHR$(C%)
5NEXTI:S$="":L%=LEN(U$):FORJ=48TO122
6IFJ=58THENJ=97
7FORI=1TOL%
8H$=MID$(U$,I,1):IFH$=CHR$(J)THENS$=S$+H$
9NEXTI:NEXTJ:?S$
|
5 poke 53281,14:print chr$(147):poke 53281,6
10 for l = 1 to 30
20 poke 1024 + int(rnd(1)*1000), 164
21 poke 1024 + int(rnd(1)*1000), 163
30 next l
40 sc = 0
50 ex = 1 : ey = 1
60 dx = 1 : dy = 1
70 x = 19 : y = 12
80 ox = x : oy = y
90 poke (1024+ex+40*ey),81
100 for t = 1 to 10 : next
110 poke 1024 + ex + 40*ey,32
12... |
10 REM ADOPTED FROM COMMODORE BASIC
20 N = 100: REM N MAY BE INCREASED, BUT WILL SLOW EXECUTION
30 LN = INT(10*N/3)+16
40 ND = 1
50 DIM A(LN)
60 N9 = 0
70 PD = 0:REM FIRST PRE-DIGIT IS A 0
80 REM
90 FOR J = 1 TO LN
100 A(J-1) = 2:REM START WITH 2S
110 NEXT J
120 REM
130 FOR J = 1 TO N
140 Q = 0
150 FOR I = L... |
CLS
LINE INPUT "Send to:"; st$
DO
LINE INPUT "Send:"; send$
SHELL "send ";chr$(34);send$;chr$(34)" "st$
|
REM Dartmouth Third Edition Syntax / Keywords - 1966
LET
PRINT
END
FOR
NEXT
GOTO
GOSUB
RETURN
IF
THEN
DEF
READ
DATA
DIM
+ - * / ^
; ,
MAT
REM Additions
SGN
RESTORE
INPUT |
05 REM BASIC boolean operators AND, OR and NOT demo
10 TEXT : HOME
20 LET A = 3
30 LET B = 7
35 REM the folowing is not true: because A is smaller than 5
40 IF (A > 5 AND B > 5) THEN PRINT "Both A and B are greater than 5"
45 REM the following is true: because B is greater than 5
50 IF (A > 5 OR B > 5) THEN PRINT "O... |
PRINT "hello world"
PRINT "hello world"
REM PRINT "hello world\n";
PRINT "hello world"
PRINT "hello world"
|
\*****************************************************************************
\***
\*** FUNCTIONS FOR THE DIRECTS SUPPLIER FILE
\***
\*** REFERENCE : SETSUFUN.BAS
\*** Directs supplier file
\***
\*** Version A Mark Goode 01.12.08
\***
\....... |
5 B=2:A$="FRED":B$="BEE"
10 ON1-(A<448)GOTO4:PRINT@A,B$;:PRINT@B,B$;:A=A+1:B=B+1:G=G+1:H=H+1:J=J+1:RETURN
|
Attribute VB_Name = "FINAN_ASSET_MOMENTS_RISK_LIBR"
Option Explicit 'Requires that all variables to be declared explicitly.
Option Base 1 'The "Option Base" statement allows to specify 0 or 1 as the
'default first index of arrays.
'********************************************************... |
'$INCLUDE: 'D:\FACT3\FONTS\CAMPS.BI'
SUB CENTRAR (X, LIN$)
L = LEN(LIN$)
LOCATE X, 80 / 2 - L / 2: PRINT LIN$;
END SUB
FUNCTION ENCRIPT$ (CAD$, CARENC%)
MAXLEN% = LEN(CAD$)
ENCRIPT$ = SPACE$(MAXLEN%)
FOR P = 1 TO MAXLEN%
MID$(ENCRIPT$, P, 1) = CHR$(ASC(MID$(CAD$, P, 1)) XOR CARENC%)
NE... |
Attribute VB_Name = "Datafiles"
Option Explicit
Dim a1 As Long, a2 As Long, a3 As Long
Public Function LeerA(ByVal Longitud As Double, ByVal Camino As Integer, Optional Barra As Object) As String
Dim CadenaRapida As StringConcat, Strin As String
Set CadenaRapida = New StringConcat
On Local Error Resume Next
'de ... |
1 COMMON A, AL, B, BASEONLY, C, C$, C1, CAT$, CC, CKT$, D, D$, DD, DIA, DIMN$, DMS, E, EO, EX$, F, F$, FD, FF, FQ, FRQ, G$, GO$, I, I$, L, LATLONG, LD, LL, LN, LS, LW, LX, MAX, MENU, MIN, MX, N, NN, NT, OV, P, PI, PROG$, Q, QQ, QU, R, RA, RC, T, T$, U, U$, UH, UL$, V$, VC, W, WHIP, WIRD, WW, X, X$, X1, XS, Z$, ZP, ZS
5... |
Auto 0
# Run-time Variables
Var x: Num = 98
Var y: Num = 88
# End Run-time Variables
10 CIRCLE 128,88,40:\
CIRCLE 128,88,30
20 LET x=100:\
LET y=100
30 GO SUB 1000:\
STOP
1000 PLOT x,y
1010 IF NOT POINT (x+1,y) THEN LET x=x+1:\
GO SUB 1000:\
LET x=x-1
1020 IF NOT PO... |
'ShapesObject.bas illustrates the properties of the
' following objects:
' Rectangle (includes rounded rectangles, squares)
' Ellipse (includes circles)
' Symbol
' Text
' Polyline
' Polygon
' Composite
'See VariogramObject.bas, specific map object BAS files
' for examples of variogram and mapframe base... |
IF usercommand$(runcommands) = "history" AND usercommands = userinputs THEN
speechoutput$ = "opening history"
speechprint$ = speechoutput$
GOSUB textprint
GOSUB speechoutput
SHELL _DONTWAIT _HIDE "start shell:History"
usercommands = -1
END IF
|
10 x=rnd(-ti)
20 dim buffer$(1000)
30 for i=0 to 1000
40 vd=rnd(1)
50 if vd > 0.2 then poke 1024+i, 96
60 if vd < 0.2 then poke 1024+i, 123
70 next
80 rem "Define array"
90 dim grid%(24,39)
100 rem "Read from screen"
110 for row = 0 to 24
120 for col = 0 to 39
130 grid%(row,col) = peek(1024 + col + 40 * row)
140 next c... |
REM @english
REM USER-DEFINED PROCEDURES WITH PARAMETERS (3)
REM
REM This example will demonstrate how to define procedures with
REM one or more parameters. Parameters are a way to give informations
REM to the procedure. Moreover, it shows one way to retrieve the returning value
REM of the procedure. There are se... |
94 REM *************************************************
95 REM *** 51/00-9527/0 ***
96 REM *** 3D-TRANSFORMATION USING ***
97 REM *** HOMOGENEOUS COORDINATES ***
98 REM *** GEORGE E. HECKLER, IDAHO STATE UNIVERSITY ***
99 REM ****************************... |
30 SCREEN 0:CLS:PRINT SPC(10);"Внимание!":PRINT "Перед Вами игра ";CHR$(34);"Бегущие человечки";CHR$(34):PRINT "Зеленый человечек управляется клавишами перемещения курсора, а синий движется по случайной траектории."
40 PRINT "При их столкновении возникает объект, движущийся по окружности.":PRINT
50 PRINT"Цель игры -... |
10 vpoke1,1024,234
20 for i=0to3
30 vpokei+1,1045+i,22
40 next |
10 PRINT TAB(33);"BATNUM"
20 PRINT TAB(15);"CREATIVE COMPUTING MORRISTOWN, NEW JERSEY"
30 PRINT:PRINT:PRINT
110 PRINT "THIS PROGRAM IS A 'BATTLE OF NUMBERS' GAME, WHERE THE"
120 PRINT "COMPUTER IS YOUR OPPONENT."
130 PRINT
140 PRINT "THE GAME STARTS WITH AN ASSUMED PILE OF OBJECTS. YOU"
150 PRINT "AND YOUR OPP... |
3 REM IMAGESET ADDRESS $1A800
13 PRINT "POKING PALETTE"
14 REM POKE PALETTE DATA
20 POKE $9F20,0:POKE $9F21,$FA:POKE $9F22,$11
30 FOR I = 0 TO 23
40 READ A:POKE $9F23,A:NEXT I
42 REM POKE SPRITE DATA INTO TILE BASE
43 PRINT "POKING SPRITE DATA"
50 POKE $9F20,0:POKE $9F21,$A8:POKE $9F22,$11
60 FOR I = 0 TO 767
70 READ A... |
1 definta-z:inputr:s=-r:e=0:x=r+r:y=0
2 ife>0thenx=x-2:e=e+y-x:s=s+yelsee=e+y+1
3 y=y+2:ifx>=ythen2
4 x=x+2:o!=s+s+s+s+x*x-3:printo!
|
'Vergr”ssert alle Zeichen
SCREEN 12
FOR x = 1 TO 255
LOCATE 1, 1: PRINT CHR$(x)
LOCATE 3, 1: PRINT x
FOR a = 0 TO 7
FOR b = 0 TO 15
LINE (a * 30 + 50, b * 30)-STEP(30, 30), 1, B
NEXT b
NEXT a
FOR a = 0 TO 7
FOR b = 0 TO 15
z% = POINT(a, b)
PAINT (a * 30 + 55, b * 30 + 5), z%, 1
N... |
6000 rem Sprite data for target marker
6010 data 255,255,255
6020 data 128,0,1
6030 data 128,0,1
6040 data 128,0,1
6050 data 128,0,1
6060 data 128,0,1
6070 data 128,0,1
6080 data 128,0,1
6090 data 128,0,1
6100 data 128,0,1
6110 data 128,0,1
6120 data 128,0,1
6130 data 128,0,1
6140 data 128,0,1
6150 data ... |
DECLARE SUB noise (points%(), i1%, i2%, amp AS SINGLE, recdepth%)
DECLARE FUNCTION posofchar% (s$, c$, charnum%)
DECLARE SUB closeapp ()
DECLARE SUB cleartext (startrow%, numrows%)
DECLARE FUNCTION rand# ()
DECLARE SUB ingamekeys (a$)
DECLARE SUB calctargetpos (target AS ANY, i%)
DECLARE FUNCTION calccompaim% (tank() A... |
DECLARE SUB tbox (sx1%, sy1%, sx2%, sy2%)
DECLARE SUB gbar (x1%, y1%, x2%, y2%)
DECLARE SUB viewbox (sx1%, sy1%, sx2%, sy2%)
DEFINT A-Z
SCREEN 7
FOR a = 1 TO 200
s = 3 * RND
X = 320 * RND
Y = 200 * RND
PSET (X - 1, Y), 11: PSET (X + 1, Y), 11: PSET (X, Y - 1), 11: PSET (X, Y + 1), 11
PSET (X - 1, Y - 1), 9:... |
PRINT "This program demonstrares all commands."
FOR X = 1 TO 10
PRINT X; X/2; X; X*X
NEXT
RETURN |
NAME file FREEIEEE
XU C0017 R0001 BZ3F7etY50x3
XU C0029 R0002 I+38a2ah8ZD1
XU C0048 R0004 **3IO3Sa9mp4
XU C0074 R0006 P*30m4CZ6oad
XU C0092 R0007 J+3ft9j8fJm2
XU C0114 R0010 J+3ft9j8fJm2
XU C0127 R0012 P*30m... |
0 REM DUMPER
100 HS=0
110 POKE53280,5:POKE53281,3
120 PRINT"{clear}{down*9}{red}{reverse on}";
125 FORI=1TO8:PRINT"{space*40}";:NEXT
130 PRINT"{reverse off}{down*2}"TAB(8)"{yellow}{sh -}{down}{left}+{down}{left}{sh -}{down}{left}{reverse on} "
140 PRINT"{up}{purple}{cm i*3}{reverse on} {cm y}{cm t}{reverse off} {right}... |
10 REM TEST PLUS OPERATOR WITH TEXT
20 A$ = "HELLO"
30 B$ = "WORLD"
40 C$= A$+", "+B$
50 PRINT C$
99 END
|
REM @english
REM GRAPHICS PRIMITIVES USING PLOT (1)
REM
REM This example will fill the entire screen with random points. It will enable
REM the first bitmap mode available (in order to have better resolution) by
REM using the ''BITMAP ENABLE'' command. Then, it will clear the screen with
REM the black color. Fina... |
10 PRINT CHR$(147);" 0 1 2 3 4 5 6 7 8 9 A B C D E F"
20 FOR Y=0 TO 15: FOR X=0 TO 15
30 C = Y*16+X: CH$ = " "
40 IF (C>=$20 AND C<=$7F) OR (C>=$A0 AND C<=$FF) THEN CH$ = CHR$(C)
50 IF X>0 THEN GOTO 90
60 IF Y<10 THEN GOTO 70
65 PRINT " ";CHR$(Y+$37);" ";CH$;" ";
67 GOTO 100
70 PRINT Y;" ";CH$;" ";
80 GOTO 100
90 P... |
100 REM LASTWORD
110 GOSUB 1100
120 PRINT"enter no. of players"
130 GOSUB 2100
140 GOSUB 2900
150 PRINT"enter names........."
160 FOR N=1 TO K
170 PRINT "player. ";N:GOSUB 2200
180 LET V$(N)=K$
190 NEXT N
200 GOSUB 1300
210 DIM L(4,26)
220 GOSUB 3000
230 LET T=0
240 GOSUB 1200
250 IF T>0 THEN PRINT "last word by:"
260 ... |
dbMemo "SQL" ="SELECT DISTINCT ts.Unit_Code, ts.Visit_Year, ts.Location_ID, ts.Route, ts.Transe"
"ct_ID, ts.Transect, ts.Area, ts.E_Coord, ts.N_Coord, ts.Quadrat_ID, ts.Quadrat, "
"ts.IsSampled, ts.NoExotics, ts.Position_m, ts.ColName, IIf([Unit_Code] In (\"CAR"
"E\",\"DINO\",\"GOSP\",\"ZION\"),[Utah_Speci... |
// Fixing degrees of freedom in nodes
*Set cond Point_Fix_Value *nodes
*Add cond Line_Fix_Value *nodes
*loop nodes *OnlyInCond
*format "%i%f"
NODES[*NodesNum].Fix(DUMMY_UNKNOWN);
*end nodes
*Set cond Point_Dummy_Load *nodes
*loop nodes *OnlyInCond
NODES[*NodesNum].Fix(DUMMY_POINT_SOURCE);
*end nodes |
10 COLOR 15,0,0
20 SCREEN 8:VDP(10)=VDP(10) AND &H7F
30 BLOAD "REDUCED.SC8",S
40 K$=INPUT$(1) |
Attribute VB_Name = "modGDIPlus"
Option Explicit
Public Function AppPath() As String
AppPath = App.path
'Root ends in "\" so check first
If Right$(AppPath, 1) <> "\" Then
AppPath = AppPath & "\"
End If
End Function
Public Function ColorSetAlpha(ByVal lColor As Long, _
ByVal Alpha As B... |
10 REM ARRAY FUNCTION RND1%()
15 DIM D%(3)
20 ARR A% = RND1%(5%)
30 ARR B% = RND1%(3%)
40 ARR C% = RND1%(4%)
45 ARR D% = RND1%
50 PRINT "ARRAY A"
60 ARR PRINT A%
70 PRINT "ARRAY B"
80 ARR PRINT B%
90 PRINT "ARRAY C"
100 ARR PRINT C%
110 PRINT "ARRAY D"
120 ARR PRINT D%
200 OPTION BASE 1
220 ARR A% = RND1%(5%)
230 ARR B... |
Attribute VB_Name = "KMLR"
Option Explicit
Function BasicArray(data1(), data2(), step)
Dim dataInf1() As Long, dataInf2() As Long
Dim res(), row As Long
Dim time As Double, tMax As Double
Dim L(2) As Long, D(2) As Long, W(2) As Long
Dim i As Long, j As Long
Call SAV.GetArrayInfo(data1, dat... |
10 :REM'UNITVALU - Unit Value Comparator - 28 APR 2001 rev.28 JUL 01
20 CLS:KEY OFF
30 IF EX$=""THEN EX$="EXIT"
40 COMMON EX$,PROG$
50 UL$=STRING$(80,205)
60 DIM A(64,4)
70 :REM'
80 :REM'.....title page
90 CLS
100 COLOR 15,2,1
110 PRINT " UNIT VALUE COMPARATOR"TAB(57)"by George Murphy VE3ERP ";
120 COLOR 1,0:PRINT STRI... |
Version =20
VersionRequired =20
Begin Form
RecordSelectors = NotDefault
NavigationButtons = NotDefault
AllowAdditions = NotDefault
OrderByOn = NotDefault
AllowEdits = NotDefault
AllowDesignChanges = NotDefault
ScrollBars =2
TabularFamily =0
PictureAlignment =2
DatasheetGridlines... |
10 REM This is a test
20 LET A=10.5
30 LET B%=INT%(A)
40 PRINT A,B%
90 STOP
99 END
|
1 CLS
10 POKE 65283,52:POKE 395,57:POKE 65502,0:POKE 65424,206:EXEC 49648
|
'いいいいいいいいいいいいいいいいいいいいいいいいいいいいいいいいいい
' My Little Grid -- MLGDemo by James Klutho
' Demo all the notifications and Cell types
'いいいいいいいいいいいいいいいいいいいいいいいいいいいいいいいいいい
#COMPILE EXE
#INCLUDE "WIN32API.INC" 'PB's win API declares include file
#INCLUDE "MLG.INC"
%IDC_MLGGRID1 = 101
%IDC_MLGLIST1 = 500
%ID_EXIT =... |
10 REM 'CHR$' TEST PROGRAM
20 PRINT "ENTER THE LOWEST ASCII CODE NUMBER";
30 INPUT L
40 PRINT "ENTER THE HIGHEST ASCII CODE NUMBER";
50 INPUT H
60 FOR X=L TO H
70 PRINT "ASCII CODE";X;"=";
80 PRINT CHR$(X)
90 FOR Y=1 TO 150
100 NEXT Y
110 NEXT X
999 END
|
100 REM A PROGRAM TO CONVERT $xxxx TO _xxxx AND LEAVE THE REST ALONE
110 LINPUT "INPUT ";FILE_INPUT$
120 OPEN FILE_INPUT$ FOR INPUT AS FILE #1,ACCESS READ
130 LINPUT "OUTPUT ";FILE_OUTPUT$
140 OPEN FILE_OUTPUT$ FOR OUTPUT AS FILE #2, ACCESS WRITE,ORGANIZATION SEQUENTIAL VARIABLE
150 LINPUT "NAME ";C$
160 ON ERROR GOTO... |
REM Tennis Game
REM Initialize game state, and store in system RAM banks
10 POKE 1, RND 64
20 POKE 2, 8 + RND 56
30 POKE 3, 1
40 POKE 4, 1
REM Bat locations
50 POKE 5, 8 + RND 56
60 POKE 6, 8 + RND 56
REM Bat Vectors
70 POKE 7, 0
71 POKE 8, 0
REM Scores
72 POKE 9, 0
73 POKE 10, 0
END
.INTR KEYDOWN
81 LET LDY = PEE... |
100 REM Program to demonstrate text-mode graphics with
110 REM a simple graphing program.
120 SCREEN 0,1:COLOR 1,0,0:WIDTH 40:KEY OFF:CLS
130 LOCATE ,,0 'Cursor off
140 REM Draw axes
150 FOR I=1 TO 20:LOCATE I,6:PRINT "I":NEXT I
160 LOCATE 10,7,0:PRINT STRING$(33,"_")
170 REM Label axes
180 COLOR 2... |
10 DATA 1, 2, 3
20 READ A, B, C, D
--- throws: "Out Of Data Error" --- |
Attribute VB_Name = "modCr"
Option Explicit
'this portion of code was developed by Edson Martins
'at Archote instalations on 9 october 2006 12:34
'use:
'-------------------CryptMsgCalculateEncodedLength
'-------------------CryptMsgOpenToEncode
'-------------------CryptMsgUpdate
'-------------------CryptMsgG... |
1 %TITLE "Convert Register files"
%SBTTL "OE_CONV_REGISTER"
%IDENT "V3.6a Calico"
!
! COPYRIGHT (C) 1992 BY
!
! Computer Management Center, Inc.
! Idaho Falls, Idaho.
!
! This software is furnished under a license and may be used and
! copied only in accordance with terms of such license and with
! the incl... |
Attribute VB_Name = "RegAccessModule"
Option Explicit
'API Function and Constant Declarations
'--------------------------------------
'***Declare the value data types
Global Const REG_SZ As Long = 1 '***Registry string
Global Const REG_DWORD As Long = 4 '***Registry number (32-bit number)
'***Declare the keys that s... |
10 DEFINT A-Z:KEY OFF:WIDTH 80:LINE INPUT "Text: ",S$:CLS:RANDOMIZE TIMER
20 L=LEN(S$):Y=(INT(RND*100) MOD 25)+1:X=80:T0#=TIMER:TS=0:COLOR INT(RND*14)+1
30 IF L=0 THEN S$=TIME$:L=LEN(S$):TS=1
40 WHILE LEN(INKEY$)=0
45 IF TS=1 THEN S$=TIME$
50 IF X<1 THEN LOCATE Y,1,0 ELSE LOCATE Y,X,0
60 IF X<1 THEN PRINT RIGHT$(... |
1 %TITLE "Product Type List"
%SBTTL "PD_RPRT_PRODTYPE"
%IDENT "V3.6a Calico"
!
! COPYRIGHT (C) 1986, 1988 BY
!
! Computer Management Center, Inc.
! Idaho Falls, Idaho.
!
! This software is furnished under a license and may be used and
! copied only in accordance with terms of such license and with
! the inc... |
100 ' S O R T
110 ' -------
112 '
114 ' COMPANY PROPRIETARY, LUPFER & LONG COMPUTER SERVICES
120 '
122 ' VERSION 1.2
124 '
130 DIM F$(10)
140 DIM K$(100),P(100)
145 '
147 P1=1 'INPUT FILE POINTER
148 '
150 FILE #3, "COMCOM.TMP"
160 MAT READ #3, F$
190 FILE #3, "COMMOD.TMP"
192 READ #3,W1$,W... |
$hwstack = 128
$swstack = 128
$framesize = 128
$regfile = "m328pdef.dat"
$crystal = 1000000 'set fuse bits to 8 MHZ internal RC and enable Division with 8
$baud = 9600
'*******************************************************************************
$lib "glcd-Nokia331... |
1 %TITLE "Pacific Pride Monthly Close"
%SBTTL "PP_CLOS_CLOSE"
%IDENT "V3.5"
!
! COPYRIGHT (C) 1993 BY
!
! Computer Management Center, Inc.
! Idaho Falls, Idaho.
!
! This software is furnished under a license and may be used and
! copied only in accordance with terms of such license and with
! the inclusion ... |
100 PRINT "autoexec.bas drawing filled circles"
110 VIDMODE 0
120 FOR I=1 TO 100
130 INK RND(256)
140 CIRCLE RND(511), RND(287), RND(100), 1
150 NEXT
160 REM SLEEP 2
200 REM EXEC "demo/galaga.bin"
210 REM EXEC "demo/synth100.bin"
230 REM EXEC "demo/test_pcf.bin"
240 REM EXEC "demo/test_mcp.bin"
250 REM EXEC "demo/slide... |
10 REM GLOBULAR CLUSTER PLOT
12 REM
14 R1=3.14159265/180
16 M0=+0.6: REM RR LYRAE STARS
18 GOSUB 66
20 PRINT
22 INPUT "NAME ";N$
24 INPUT "APPAR. MAG. (H.B.)";M1
26 INPUT "VISUAL EXTINCTION ";M2
28 D=10^(.2*(M1-M2-M0)-2)
30 D=D*3262: REM LIGHT-YEARS
32 INPUT "LONGITUDE";L
34 INPUT "LATITUDE ";B
36 L=... |
10 'myPONG - MSX-BASIC - Version 3 by Rodrivas78
20 COLOR15,1,1:DEFINTA-Z:SCREEN2,2,0:OPEN"GRP:"AS#1:LINE(10,10)-(255,10):LINE(255,10)-(255,191):LINE(255,191)-(10,191):LINE(10,191)-(10,10):C=0:D=0:M=85:N=85:A=7:B=3:X=128:Y=80:FORL=11TO255STEP7:PSET(135,L),15:NEXT
120 PSET(190,20),1:PRINT#1,C:PSET(70,20),1:PRINT#1,D:B1... |
10 rem dechexbinoct for VIC20 v0.3
20 rem copyright 2013 AB sayuti HM Saman
30 rem distributed under the terms of the GNU General Public License
40 gosub 140:gosub 360
50 gosub 900: x=0:y=22:gosub 890:print"{cyan}Number (1-255):{yellow}";:input n
60 if n<1 or n>255 then 130
70 nn=n
80 gosub 360:gosub 310
90 x=1... |
1 REM BOUNCING BALL
10 PRINT "\X93"
15 FOR X = 1 TO 15: PRINT "\X11" : NEXT
20 FOR BL = 1 TO 80
30 PRINT" \XD1\X9D";
40 FOR TM = 1 TO 5
50 NEXT TM
60 NEXT BL
61 REM MOVE BALL RIGHT TO LEFT
70 FOR BL = 80 TO 1 STEP -1
80 PRINT" \X9D\X9D\XD1\X9D";
90 FOR TM = 1 TO 5
100 NEXT TM
120 NEXT BL
130 GOTO 10
// NOTA PARA WIKI:... |
1 Z$="123"
2 INPUT X$,M
3 Z$=MID$(X$,M)
4 Y$=MID$(X$,M+4)
5 PRINT Z$
6 PRINT Y$
|
4 REM --TERIMAKASIH J.C.--C2019--
5 GOSUB1050:GOSUB2000
6 REM G=1WEAK GRAPPLE;G=2STRONG;U CAN ONLY BE KO'D FROM STRONG GRAPPLE MOVE
7 REMDIM P$(5,5):DIMPT$(5,5)
8 XO=19:XT=20:SG=1:MX=27:MN=12:E(1)=50:E(2)=50:K$(1)="\X1E\X12 \X92":K$(2)="\X1E\X12 \X92":PR=0
9 REM SG=1 IN RING/SG=2 OUT RING
10 PRINT"\X93":N$(1)="PLR 1":N... |
1 %TITLE "Purchase Order Register Close/Purge"
%SBTTL "PO_SPEC_PURGE"
%IDENT "V3.6a Calico"
!
! COPYRIGHT (C) 1990 BY
!
! Computer Management Center, Inc.
! Idaho Falls, Idaho.
!
! This software is furnished under a license and may be used and
! copied only in accordance with terms of such license and with
... |
1 REM *CORRECAMINOS**
5 GO SUB 320
10 LET N=10
20 FOR T=1 TO 10
30 CLS
35 PLOT 39,7: DRAW 0,25: DRAW 65,0: DRAW 0,-25: DRAW -65,0
36 PRINT AT 18,5; INK 3; PAPER 7; "Q"; INK 2; " ARRIBA"
37 PRINT AT 19,5; PAPER 7; " ": PRINT AT 20,5; INK 3; PAPER 7; "Z"; INK 2; " ABAJO "
40 PRINT AT 15,7; INK 2, FLASH 1; "SECCION ... |
Version =20
VersionRequired =20
Begin Form
DividingLines = NotDefault
AllowDesignChanges = NotDefault
DefaultView =0
PictureAlignment =2
DatasheetGridlinesBehavior =3
GridX =24
GridY =24
Width =8884
DatasheetFontHeight =11
ItemSuffix =1
Left =315
Top =1200
Right =109... |
10 deffna(i)=val(mid$(z$,i,1))
11 deffnq(i)=fna(1)+fna(2)+fna(3)+fna(4)+fna(5)
12 input"ganz-zahl:";z$::printfnq(.) |
0 REM C H A S E V 1.0 1/16/77 GCC III
1 REM BY HERMAN DEMONSTOY FEB 77 ISSUE KILOBAUD MAG
5 PRINT CHR$(26):PRINT:PRINT:PRINT:PRINT:PRINT
20 Z2=0
50 PRINT"This is the game of CHASE"
100 PRINT"You are in a high voltage maze with five"
110 PRINT"security machines (+) trying to destroy you (X)."... |
Attribute VB_Name = "BatchPrint"
' BatchPrint.vbp
'
' 08/12/98 JPS Added progress meter for feedback during batch print.
' 07/10/98 JPS Broke out into separate routines. Added GUI interface. Added more printers.
' 06/08/98 JPS Created and documented
'
' This program is provided "AS-IS" and without any warranty of any ... |
Check D83C4E30
Auto 8224
# Run-time Variables
Var r: Num = 10
Var s: Num = 0.9
Var x: Num = 20
Var y: Num = 16
Var t: NumFOR = 0, 6.283185, 0.9, 20, 2
# End Run-time Variables
10 LET r=10: LET s=.1
15 LET s=s+.1
20 FOR t=0 TO 2*PI STEP s
25 REM LET r=10
30 LET x=10+r*COS (t)
40 LET y=16+r*SIN (t)
50 P... |
DIM i(8, 8) AS STRING * 1
DIM bild(600)
SCREEN 7
p$ = "TSLDKLSTBBBBBBBB bbbbbbbbtsldklstW"
GOSUB vor
GOSUB auf
GOSUB mal
GOSUB moegl
DO: LOOP WHILE INKEY$ = ""
END
vor:
SCREEN 7, , 1, 0
monster$ = "€ÖÿÿÖ€€ÎûûÊ€€üÿÊŒ€‡þÿÿþ‡ŽÐÿÿÐŽŒÌÿÿÌŒ"
LINE (0, 0)-(50, 10), 15, BF
... |
DECLARE SUB Sprite (Yoshi!, d)
SCREEN 12
RANDOMIZE TIMER
CALL Sprite(Yoshi!, d)
DIM Yoshi(1 TO 168)
GET (100, 0)-(132, 32), Yoshi
d = 1
CALL Sprite(Yoshi, d)
DIM Ufo(1 TO 166)
GET (100, 0)-(132, 32), Ufo
CLS
PRINT "Joystick in Mittelstellung"
StickSchleife1:
StickMitteX = STICK(0)
StickMitteY = ... |
10 'HCAL-D
20 COMMON EX$,X$
30 X$="D":EX$="\hamcalc64\menu\hcal-"+X$
40 CHAIN"\hamcalc64\menu\hcal-x"
|
10 HGR
100 QZ = 1: FOR I = 0 TO 255
110 QX = (I AND 31) * 8:QY = INT (I / 32) * 8
120 QC = I
130 GOSUB 64000
140 NEXT I
150 GOTO 150
63999 END
64000 REM DESENHA CHR$(QC) EM QX,QY, APAGANDO ANTES ANTES SE QZ <> 0
64010 IF QZ THEN FOR QY = QY TO QY + 7: SET QX,QY: UNDRAW 7,0: NEXT QY:QY = QY - 8
64020 IF QC <... |
10 INPUT "", a$
20 PRINT "You said "; a$
30 END
|
IF usercommand$(runcommands) = "cyan" THEN
textcolor = 11
speechprint$ = speechoutput$
GOSUB textprint
usercommands = -1
END IF
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.