text stringlengths 7 5.36M |
|---|
10 '*************************
20 '*** SET-UP ***
30 '*** PROGRAM I OF III ***
40 '*** TO LOAD 24 HI-RES ***
50 '*** SCREENS INTO 64K ***
60 '*** MEM. EXP. ***
70 '*** BOB KITCH 6/88 ***
80 '*************************
90'
91 '***MAKE INVERSE CHARACTERS IN LINES 600 AND 620********... |
Attribute VB_Name = "INTEGRATION_ROMBERG_LIBR"
'-------------------------------------------------------------------------------------
'-------------------------------------------------------------------------------------
Option Explicit 'Requires that all variables to be declared explicitly.
Option Base 1 ... |
999 END
1000 REM Ink Colour
1010 LET INK$=STR$(INK)
1020 PRINT CHR$(27)+"[38;5;";RIGHT$(INK$,LEN(INK$)-1);"m";
1030 RETURN
1050 REM Paper Colour
1060 PAPER$=STR$(PAPER)
1070 PRINT CHR$(27)+"[48;5;"+RIGHT$(PAPER$,LEN(PAPER$)-1)+"m";
1080 RETURN
1100 REM Move Row - Col
1110 LET ROW$=STR$(ROW):LET COL$=STR$(COL)
1120 PRIN... |
1 %TITLE "Accounts Payable Vendor Dump"
%SBTTL "AP_RPRT_APV005"
%IDENT "V3.6a Calico"
!
! COPYRIGHT (C) 1987, 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
... |
10 let abc=5.2
20 if 5.1<=abc goto 50
30 print "RUN TIME FAILURE"
40 goto 60
50 print "RUN TIME PASS"
60 end |
10 rem program to calculate primes.. FOR AWESOMENESS!!!
20 rem Will use sieve of Eratosthenes.
21 rem adjust n (line 30) to the desired number
22 rem The higher n, the more memory will be used
23 rem integer is 16 bit.
24 rem eg. program will use (n+1)*2 bytes in memory
25 rem It might be needed to use dim primes(n) as... |
1 %TITLE "PR Employee Birth Date Report"
%SBTTL "PR_RPRT_BIRTH"
%IDENT "V3.6a Calico"
!
! COPYRIGHT (C) 1987, 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
... |
10 :REM'GRAPHS - 25 JAN 2006
20 CLS:KEY OFF:SCREEN 0
30 IF EX$=""THEN EX$="EXIT"
40 IF PROG$=""THEN GO$=EX$ :ELSE GO$=PROG$
50 COMMON EX$,PROG$
60 :REM'.....title page
70 CLS
80 UL$=STRING$(80,205)
90 COLOR 15,2,1
100 PRINT " GRAPHS"TAB(63)"by Robert Dehoney ";
110 COLOR 1,0:PRINT STRING$(80,223);
120 COLOR 7,0
130 :RE... |
REM ---------------------------------------------------
REM
REM TEST2.BAS
REM
REM MORE GENERIC TESTS INCLUDING USER DEFINED FUNCTIONS
REM
REM AUTHOR: ANDRE MURTA
REM DATE: 20/12/1992
REM
REM DEVELOPED AT CENTRO DE ENSINO SUPERIOR DO PARA
REM
REM ---------------------------------------------------
DEFFN teste1(p1,p2,p3... |
'********** FLAGS.BAS
DEFINT A-Z
DECLARE SUB ClearAll () 'clears all flags
DECLARE SUB ClearFlag (FlagNum) 'clears a single flag
DECLARE SUB SetFlag (FlagNum) 'sets a single flag
DECLARE FUNCTION GetFlag% (FlagNum) 'retrieves a single flag
CLS
ClearAll ... |
2 max = 0
4 cant = 0
10 input "ingrese un numero";n
20 if n=0 then goto 100
25 if n>max then
30 max = n
35 cant = 1
40 else
50 if n = max then
55 cant = cant + 1
60 end if
70 goto 10
100 print "fin"
|
$CHECKING:OFF
SCREEN _NEWIMAGE(1280, 720, 32)
_SCREENMOVE _MIDDLE
DIM EndLine AS STRING, EndLength AS LONG
DIM word(22, 5000) AS STRING '2d word list, by lenth, count
DIM MemWord AS _MEM
MemWord = _MEMNEW(30 * 5000 * 30) '30 word lists (from 0 to 29 letters), of up to 5000 words, of up to 30 characters each -- much ... |
Version =20
VersionRequired =20
Begin Form
RecordSelectors = NotDefault
NavigationButtons = NotDefault
DividingLines = NotDefault
AllowDesignChanges = NotDefault
DefaultView =0
ScrollBars =0
BorderStyle =0
PictureAlignment =2
DatasheetGridlinesBehavior =3
PictureType =1
Grid... |
10 def fnloop
20 if n=0.0 then
30 r=0.0
40 else
50 print n
60 n=n-1.0
70 r=fnloop()
80 end if
90 =r
100 n=10
110 print fnloop
|
10 REM OTHELLO
100 M=1;H=8;C=3;DIM A(99),NN(7),B(9)
110 NN(0)=11;NN(1)=10;NN(2)=9;NN(3)=1
120 NN(4)=-1;NN(5)=-9;NN(6)=-10;NN(7)=-11
130 P.$12;?#E1=0;P." A B C D E F G H"'
140 @=7;FOR I=1 TO 8;P.I" * * * * * * * *"';NEXT
150 FOR I=0 TO 99;A?I=0;NEXT
160 T=C;P=44;GOSUB a;P=55;GOSUB a
170 T=H;P=45;GOSUB a;P=54;GO... |
100 dim s(52): for j=l to 52
110 c=int(52*rnd(1))+1: rem random number 1-52
120 if s(c)>0 then 110:rem if used retry
130 s(c)=j: printc: next: rem set j: go back |
REM File: .bas
REM Data:
REM Programmer: Yuriy Lomako
REM Description:
REM -------------------------------------------------------------------
CLS
SCREEN 7
MY = 23
MX = 30
DIM MAP(MY, MX)
LOCATE 11, 17: PRINT "SOKOBAN"
LOCATE 1, 1: PRINT "É"
FOR i% = 2 TO 39
LOCATE 1, i%
PRINT "Í"
NEXT i%
LOCATE 1, 40: PRINT "»"... |
1000 REM *** GAME OF ROULETTE WRITTEN BY DAVID JOSLIN
1010 REM *** CONVERTED TO BASIC-PLUS BY DAVID AHL, DIGITAL
1015 RANDOMIZE
1020 PRINT "WELCOME TO THE ROULETTE TABLE"
1030 PRINT
1040 PRINT "WANT INSTRUCTIONS (Y OR N)"; \ INPUT Y$
1060 IF Y$<>"Y" THEN 1550
1070 PRINT
1080 PRINT "THIS IS THE BETTING LAYOUT"... |
REM ---------------------------------------------------
REM
REM LOCATE.BAS
REM
REM USE OF SOME SCREEN COMMANDS TO POSIT. THE CURSOR
REM
REM AUTHOR: ANDRE MURTA
REM DATE: 20/12/1992
REM
REM DEVELOPED AT CENTRO DE ENSINO SUPERIOR DO PARA
REM
REM ---------------------------------------------------
X=5
Y=5
LOCATE 1,5 : CL... |
DECLARE FUNCTION ShowTime$ (x%, y%, f%, b%)
COLOR , 0: CLS : LOCATE 5: COLOR 14, 6
LOCATE , 10: PRINT " 1> Menu selection 1 "
LOCATE , 10: PRINT " 2> Menu selection 2 "
LOCATE , 10: PRINT " 3> Menu selection 3 "
LOCATE , 10: PRINT " 4> Menu selection 4 "
LOCATE , 10: PRINT " 5> Menu selection 5 "
LOCATE , 10: PR... |
2 PRINT TAB(33);"GOMOKO"
4 PRINT TAB(15);"CREATIVE COMPUTING MORRISTOWN, NEW JERSEY"
6 PRINT:PRINT:PRINT
8 DIM A(19,19)
10 PRINT "WELCOME TO THE ORIENTAL GAME OF GOMOKO."
20 PRINT: PRINT "THE GAME IS PLAYED ON AN N BY N GRID OF A SIZE"
30 PRINT "THAT YOU SPECIFY. DURING YOUR PLAY, YOU MAY COVER ONE GRID"
40 PRINT "IN... |
10 CLEAR1500:CLS(3):PRINT@192," TREASURES OF BARSOOM":GOTO1230
20 DR$="NSEWUD":R=1:TR=2
30 CLS:PRINT:PRINTR$(R):PRINT:IFN(R)=0THEN70
40 PRINT"LOOKING AROUND ME I CAN SEE: ",:FORO=1TONO:IFO(O)<>R THEN NEXT:GOTO60
50 PRINTO$(O),:NEXT
60 PRINT
70 PRINT"DIRECTIONS I CAN TRAVEL TO: ",:FORD=1TO6:IFE(R,D)>0THENPRINTD$(D),... |
10 REM LENGTH OF ARRAY
20 OPTION BASE 0
22 LET B = 0
50 DATA 3
52 DATA "THREE", "FOUR", "EIGHT", "TEN"
60 GOSUB 400
70 DATA 15
72 DATA "ONE", "ZERO", "TWO", "MINUS ONE", "THREE", "ZERO", "ZERO", "FIVE"
73 DATA "TWO", "ONE", "FOUR", "MINUS THREE", "ONE", "ZERO", "FIVE", "ZERO"
80 GOSUB 400
120 OPTION BASE 1
122 LET B = ... |
0 REM **********
1 REM * *
2 REM * РЕЧНИК *
3 REM * *
4 REM **********
5 ONERR GOTO 1050
6 CLEAR
7 D$ = CHR$ (4): REM CTRL+D
8 M$ = CHR$ (13): REM RETURN
9 RA$ = "=": REM РАЗДЕЛИТЕЛ
10 TEXT : NORMAL : SPEED= 255: HOME
12 SETMOD 1
15 PRINT M$D$"CLOSE"
17 HOME
2... |
5 rem < > <= >= = <> and or not xor ()
10 score = 10
20 if score > 60 then print "ok" else print "ng!"
|
Attribute VB_Name = "Replacements"
Option Explicit
Const MODULE_NAME$ = "Replacements"
Private Enum ReplacementsErrors ' you may make this Public for tests
ErrorBase = vbObjectError + 513 ' you may adjust this minimum
NotInitted
AlreadyInitted
' add error numbers here
End Enum
Private... |
1 dimw%(7):dimb%(7)
10 input"tiefe (1-7)";o%
20 ifo%<1oro%>7then10
30 m%=2^(7-o%)
90 :
100 :
101 : rem hauptprogramm
102 :
120 gosub10000:gosub200:poke198,0:wait198,1:gosub14000:goto10
130 :
160 :
165 : rem hilbert-prozedur
170 :
200 ifo%=0theno%=o%+b%:return
205 w%=w%-w%(o%):o%=o%-b%:w%(o%)=-w%(o%+b%... |
Version =20
VersionRequired =20
Begin Form
RecordSelectors = NotDefault
NavigationButtons = NotDefault
DividingLines = NotDefault
DefaultView =0
ScrollBars =0
PictureAlignment =2
DatasheetGridlinesBehavior =3
GridX =24
GridY =24
Width =13995
DatasheetFontHeight =10
ItemS... |
REM TREK73 -- re-typed by Pete Turnbull, November 2003.
REM -- with corrections July 2009 - January 2010
1 COM A$[20],B$[20],C$[20],M$[20],O$[20],P$[20]
2 COM Q$[20],R$[20],S$[20],V$[20],X$[72],Y$[72],Z$[72]
3 COM A[50],B[50],C[50],D[50],E[50],F[50],G[10],H[10],I[50],J[50]
4 COM K[50],L[50],M[10,6],N[1... |
100 ' CMD OUTM sample
110 CMD OUTM &H90
120 CMD OUTM 60
130 CMD OUTM 64
140 FOR W=0 TO 500:NEXT W
150 CMD OUTM &H80
160 CMD OUTM 60
170 CMD OUTM 0
180 END
|
1,"Ravi Prakash"
2,"Pratibha Gupta"
3,"Arun Prakash"
4,"Urmila Gupta"
5,"Dr. Prem Prakash"
6,"Himanshu Tyagi"
7,"Vinayak Kaushal Thakur"
8,"Karan Sachar"
9,"Vinod K."
10,"Anand Krishna Kaul"
11,"N.S. Vinayak"
12,"Rohan Gupta"
13,"Shashwat Verma"
14,"Rahul Tayal"
15,"Nitin Nayyar"
16,"Malind Bajaj"
17,"M... |
50 INPUT"Чему равны A,B,C,D";A,B,C,D
60 P0=(A+B)*(C+D):P1=A*D:P2=B*C:S1=P0-(P1+P2):S2=P1-P2
80 PRINT "AC+BD=";S1,"AD-BC=";S2
90 END
|
P0 (DEFINE MORE 21 VARIABLES WITH COMMAND "DEFM 21")
2 IF A=0;B=14:GOTO 7
3 GOSUB#9
4 FOR B=0 TO A-1
5 IF D$(B)=C$ THEN 7
6 NEXT B:B=14
7 $=R$(2*B)+R$(2*B+1)
8 PRINT $: GOTO 2
P1
3 IF A>=14 THEN 11
4 GOSUB#9
5 D$(A)=C$:$="":INPUT "TEL-NO",$
6 B$=LEN($):R$(2*A+1)=R$(29)
7 IF B>14 THEN 11
8 IF B>7;R$(2*A)=MID(1,7):R$(... |
'makes a big file of genomes
OPEN "c:\dokume~1\rafael\desktop\genomes.gms" FOR OUTPUT AS #1
DIM i(2000) AS STRING
genes = 300
genomes = 30
FOR x = 1 TO genes
'i(x) = CHR$(INT(RND * 26 + 97)) + CHR$(INT(RND * 26 + 97)) + CHR$(INT(RND * 26 + 97)) + CHR$(INT(RND * 26 + 97)) + CHR$(INT(RND * 26 + 97)) + CHR$(I... |
10 REM SCREENS
50 DIMG8,Z-1;GOS.9000
100 S=-1;X=#8000;C=#20202020;W=0
110 DOX?512=#AA;X?513=#55
120 F.I=0TO511STEP4;X!I=C;N.
130 X=X+512;S=S+1
140 U.?X<>#AAORX?1<>#55
200 P.$12;@=2;P."ENTER ;"''
210 P."1-"S" TO EDIT SCREENS"'
220 P." P TO PLAY SCREENS"'
230 P." S TO SAVE ON ON TAPE'"'
240 P." L TO LOAD FROM TAPE"... |
Attribute VB_Name = "MOD_RecycleBin"
Option Explicit
Const SHERB_NOCONFIRMATION = &H1
Const SHERB_NOPROGRESSUI = &H2
Const SHERB_NOSOUND = &H4
Private Type ULARGE_INTEGER
LowPart As Long
HighPart As Long
End Type
Private Type SHQUERYRBINFO
cbSize As Long
i64Size As ULARGE_INTEGER
i64NumItems As ... |
#PBFORMS CREATED V2.01
'------------------------------------------------------------------------------
' The first line in this file is a PB/Forms metastatement.
' It should ALWAYS be the first line of the file. Other
' PB/Forms metastatements are placed at the beginning and
' end of "Named Blocks" of code that sho... |
Attribute VB_Name = "NewMacros"
Dim FSO As New FileSystemObject
Dim msword As New Word.Application
Dim flo As Folder
Dim flo1 As Folder
Dim fil As File
Dim varerrorno As Integer
Dim vartxt
Dim vartxt1
Dim strFile As String
Dim varCloseTag As Boolean
Dim txt1 As TextStream
Dim txt2 As TextStream
Dim txt3 As... |
10 DEFINT A-Z:INPUT "Time: ",M!:S=M!*60
20 PRINT (S\60); ":"; (S MOD 60);
30 ON TIMER(1) GOSUB 50:TIMER ON
40 WHILE INKEY$<>CHR$(27):WEND:PRINT "":END
50 IF S=0 THEN SOUND 800,9 ELSE S=S-1
60 LOCATE ,1: PRINT (S\60); ":"; (S MOD 60);
70 RETURN
|
10 _TURBO ON
20 COLOR15,1,1:SCREEN2:X=120:Y=86:T=.03:PX=86:PY=40:VX=21:VY=-10:F=0
30 B$=CHR$(&H18):B1$=CHR$(&H3C):S$=B$+B1$+B1$+B$:SPRITE$(1)=S$:PUTSPRITE1,(X,Y),11
40 I=I+1:IF PY<Y THEN YA=Y-PY ELSE YA=PY-Y
50 IF PX<X THEN XB=X-PX ELSE XB=PX-X
60 IF PY=Y THEN D1=XB ELSE D1=SQR(YA+XB)
70 IF PX>X THEN AX=-1*(PX-XB... |
1 COLOR 15,2,2
2 SCREEN 2,2,0
3 CALL TURBO ON
4 DEFINT B-X
5 ' A- Acceleration and Y-position are double
19 RESTORE 1030
20 FOR S=0 TO 8
25 A$=""
30 FOR I=1 TO 32
40 READ R
50 A$=A$+CHR$(R)
60 NEXT I
70 SPRITE$(S)=A$
80 NEXT S
82 LINE (15,15)-(175,175),4,BF
83 GOSUB 2010
84 FOR I=2 to 21: VPOKE &H1800+i... |
Version =20
VersionRequired =20
Begin Form
RecordSelectors = NotDefault
NavigationButtons = NotDefault
DividingLines = NotDefault
AllowDesignChanges = NotDefault
DefaultView =2
ViewsAllowed =2
PictureAlignment =2
DatasheetGridlinesBehavior =3
GridX =24
GridY =24
Width =11843... |
SUB MEMCOF (DATQ(), N, M, PM, COF(), WK1(), WK2(), WKM())
P = 0!
FOR J = 1 TO N
P = P + DATQ(J) ^ 2
NEXT J
PM = P / N
WK1(1) = DATQ(1)
WK2(N - 1) = DATQ(N)
FOR J = 2 TO N - 1
WK1(J) = DATQ(J)
WK2(J - 1) = DATQ(J)
NEXT J
FOR K = 1 TO M
PNEUM = 0!
DENOM = 0!
FOR J = 1 TO N - K
PNEUM = PNEU... |
Attribute VB_Name = "Sorters"
Attribute VB_Description = "Module supporting direct and indirect (indexed) sorting of Singles and Doubles."
'
'###############################################################################
'# ____ __
'# / __/___ ____ / /_ ___ ____ ___... |
Version =20
VersionRequired =20
PublishOption =1
Checksum =-875695873
Begin Report
LayoutForPrint = NotDefault
Modal = NotDefault
DividingLines = NotDefault
AllowDesignChanges = NotDefault
PageHeader =1
DateGrouping =1
GrpKeepTogether =1
PictureAlignment =2
DatasheetGridlinesBehavio... |
5 OPTION DIALECT HP
20 LET A$ = NFORMAT$(3.12345,3)
30 IF A$ <> "3.1" THEN PRINT "TEST FAILED"
99 END
|
10 rem ** pintable **
20 cn=12288:ch=53248:sg=54272:vc=56334
30 forl=1to24:pokesg+l,0:next
40 g=1024:h=55296:pokesg+5,8:pokesg+15,175:pokesg+24,15
50 print"{clear}";chr$(124);
60 poke53280,4:poke53281,7:poke52,48:poke56,48
70 pokevc,peek(vc)and254:poke1,peek(1)and251
80 forj=0to463
90 pokecn+j,peek(ch+j)
100 next
110 f... |
DECLARE SUB PADDLE () : DECLARE SUB BALL ()
DIM SHARED BALL.X: DIM SHARED BALL.Y: DIM SHARED BALL.X.SLOPE: DIM SHARED BALL.Y.SLOPE: DIM SHARED SPEED: DIM SHARED SPEED2: DIM SHARED PADDLE.SIDE: DIM SHARED PADKEY: DIM SHARED PADDLE.LEFT.X: DIM SHARED PADDLE.LEFT.Y: DIM SHARED PADDLE.RIGHT.X: _
DIM SHARED PADDLE.RIGHT.... |
10 REM This is a test
20 LET A$="HELLO"
30 LET B$="WORLD"
40 PRINT A$,B$
90 STOP
99 END
|
Operation =1
Option =0
Where ="(((dbo_ProjectHeader.ID)=21265))"
Begin InputTables
Name ="dbo_ProjectComponentHeader"
Name ="dbo_ProjectComponentProof"
Name ="dbo_ProjectHeader"
Name ="dbo_ContactGeneral"
End
Begin OutputColumns
Expression ="dbo_ProjectHeader.ID"
Expression ="dbo_ContactGeneral... |
10 GOTO 35
31 PRINT "Dave"
32 GOTO 1000
35 PRINT "Josh"
545 GOTO 31
1000 PRINT "NanoBASIC ROCKS" |
5 def fnbank(address)=fix(address/16384)+4
6 def fnmodulo(value,modulo)=value-modulo*fix(value/modulo)
10 roller.size=512:scr.size=720*256/8
20 roller.base=round((himem-scr.size-roller.size)/512)*512
30 scr.size=720*256/8
40 scr.base=roller.base+roller.size
50 memory roller.base - 1
60 print "Free memory:";fre(0... |
1000 PRINT TAB(33);"SALVO"
1010 PRINT TAB(15);"CREATIVE COMPUTING MORRISTOWN, NEW JERSEY"
1020 PRINT:PRINT:PRINT
1030 REM
1040 DIM A(10,10),B(10,10),C(7),D(7),E(12),F(12),G(12),H(12),K(10,10)
1050 Z8=0
1060 FOR W=1 TO 12
1070 E(W)=-1
1080 H(W)=-1
1090 NEXT W
1100 FOR X=1 TO 10
1110 FOR Y=1 TO 10
1120 B(X,Y)=0
1130 NEX... |
dbMemo "SQL" ="SELECT Unit_Code, Visit_Year, Route, MIN(Area) AS Area, PlantCode, IsDead, COUNT"
"(Transect) AS TransectsDetected\015\012FROM Route_Transect_AverageCover\015\012W"
"HERE TotalCover IS NOT NULL\015\012GROUP BY Unit_Code, Visit_Year, Route, PlantC"
"ode, IsDead\015\012ORDER BY Unit_Code, Visi... |
DECLARE FUNCTION MouseDown (B!)
DECLARE SUB MOUSEINFO ()
DECLARE FUNCTION MOUSEREGION2! (Y!, X!, Y2!, X2!)
DECLARE SUB SETBOTOXY (X!, Y!, X2!, Y2!, B!)
DECLARE SUB SETMAXBOTONS (MAX!)
DECLARE SUB SHOWBOTO (TITOL$, B!)
TYPE GEST ' ESTRUCTURA DE UN BOTO
X AS INTEGER
Y AS INTEGER
X2... |
CLS
PRINT "eliminar arxiu s/n"
INPUT e$
IF e$ = "n" THEN 4
KILL "agenda"
END
4 CLS
10 INPUT "Crear o recuperar c/r "; Z$
IF Z$ = "r" THEN 20
PRINT "Rutina de fer arxiu"
OPEN "AGENDA" FOR OUTPUT AS #1
FOR A = 1 TO 10
PRINT "entra un nom."; A
INPUT NOM$(A)
PRINT #1, NOM$(A)
NEXT A
CLOSE #1
FOR w = 1 T... |
CLS
DIM u(1) AS STRING * 1 ' 8bit
DIM i(0) AS INTEGER '16bit
DIM l(0) AS LONG '32bit
OPEN "c:\windows\desktop\lied.txt" FOR INPUT AS #1
INPUT #1, gbs, bpm 'gesamtbeats, beats per minute
p = 2 * 3.141592653# '2*pi
wz2 = 2 ^ (1 / 12) '12te wurzel von 2
dpos = 47 'posi... |
REM @english
REM GRAPHICS PRIMITIVES USIGN POSITION (2)
REM
REM This example will show how to obtain current graphic position,
REM using the ''XGR'' and ''YGR'' variables.
REM
REM @italian
REM PRIMITIVE DI GRAFICA PER POSIZIONE 2)
REM
REM Questo esempio mostra come ricavare la posizione grafica corrente,
REM ... |
12000 rem sfx for dropping a coconut
12010 poke 54296, 15: rem main vol at max
12020 poke 54277, 15*1+3: rem attack and decay, ch1
12030 poke 54278, 10*16+4: rem sustain and release, ch1
12040 poke 54276, 16+2+1: rem triangle, sync, and enable ch1
12050 rem poke 54274, 71: poke 54275, 5: rem 33% dc for ch1
12060 poke 5... |
10 SCREEN 0:WIDTH 40
20 FOR I=0 TO 2
30 GOSUB 100:GOSUB 200 'WW▐
40 NEXT I
50 IF INKEY$="" THEN 50
60 I=(I+1)MOD3:GOSUB 100 'WW▐
70 GOTO 50
90 'OOOOO Подпрограмма 1 OOOOO
100 IF I=0 THEN BASE(0)=0 ELSE BASE(0)=&H2000+(I-1)*&H400
110 IF I=0 THEN POKE &HF922,&H0:POKE &HF923,&H0 ELSE POKE &HF92... |
'
' Charger, afficher une boŒte de dialogue et exploiter les champs Edit
' OMIKRON-BASIC DIALOG2.BAS
'
'
LIBRARY Gem ,"gem.lib"
Dialog%L=0' Constantes dans DIALOG.H2
Entree%L=3
Affichage%L=5
Ok%L=6
Fin%L=7
'
Appl_Init
'
Rsrc_Load("DIALOG2.RSC",Ret%L)
I... |
#*
sample: ambient sensor handler
this sample shows how to do basic
sensor handling.
ambient sensor is attached to one of
the analog inputs, so we need to use
information provided by the sdk regarding
sensor reading. That information is on $13.
SDK will expect us to store messaging
information on $10, and display st... |
10 REM Square Root Calculator using Newton's Method
100 LET X = 1337
400 GOSUB 1000
500 PRINT "The square root of ",X," is approximately ",Y
600 END
1000 REM Calculate the square root of a given Number
1001 REM Expects input to be in X. Output will be in Y.
1002 REM Uses Z as a temporary variable.
1050 LET Y = 0.5 * ... |
100 m = 54272
110 for z = 54272 to 54299 : poke z,0 : next
120 poke m+14,20: poke m+18,16
130 poke m + 24,143
140 poke m + 6,240: poke m + 4,33
150 n = 5728
160 for t = 1 to 300
170 fq = n + peek(m + 27)* 100
180 hf = int(fq/256): lf = fq-hf*256
190 poke m,lf : poke m + 1 ,hf
200 next
210 poke m+ 24,0
|
CLS
COLOR 15
LOCATE 5
LOCATE , 26
PRINT "лл лл"
LOCATE , 26
PRINT " лл лл ллллл лл лл"
LOCATE , 26
PRINT " ллл лл лл лл лл"
LOCATE , 26
PRINT "л лл лл лл лл ллл"
LOCATE , 26
PRINT " ллл ллллл ллллл лл"
PRINT
PRINT
LOCATE... |
SCREEN 12 'unfortunately, it will not make it all the way across
DIM byte AS STRING * 1
OPEN "worldmap.dat" FOR BINARY AS #1
a! = TIMER
RANDOMIZE TIMER
FOR i = 0 TO 48 * 16
FOR j = 0 TO 48 * 10
byteposition& = i + j * (48 * 16) + 1
GET #1, byteposition&, byte$
s = ASC(byte)
SELECT CASE s
CASE 44 TO 5... |
CLS
SCREEN 9
LINE(0,0)-(639,349),8,BF
LINE(100,50)-(539,299),7,BF
LINE(100,50)-(539,299),15,B
COLOR 4,7
LOCATE 5,30
PRINT"Keyboard practice(FREE)!"
COLOR 14,7
LOCATE 7,31
PRINT"Chose practice skill:"
A:
COLOR 2
LOCATE 9,30
PRINT" Novice"
COLOR 10
L... |
2 PRINT TAB(30); "CHIEF"
4 PRINT TAB(15); "CREATIVE COMPUTING MORRISTOWN, NEW JERSEY"
6 PRINT: PRINT: PRINT
10 PRINT "I AM CHIEF NUMBERS FREEK, THE GREAT INDIAN MATH GOD."
20 PRINT "ARE YOU READY TO TAKE THE TEST YOU CALLED ME OUT FOR";
30 INPUT A$
40 IF A$ = "YES" THEN 60
50 PRINT "SHUT UP, PALE FACE WITH WISE TONGUE... |
REM D‚monstrateur de d‚filement d'‚cran sous le Basic PRO
REM Tous droits r‚serv‚s par les Chevaliers de Malte 1997
REM Programmeur: Sylvain Maltais
SCREEN0:WIDTH80:COLOR7,0
BytesPerLine(320) 'Instruction suppl‚mentaire pour faire ‚largir les bandes ‚cran en 320/2=160 caratŠres de large
FillBox(0,0)-(159,49)... |
1 %TITLE "Object for General Ledger"
%SBTTL "AD_MAIN_CONTROL"
%IDENT "V3.6a Calico"
FUNCTION LONG AD_MAIN_CONTROL(CDD_WINDOW_CDD SMG_WINDOW, LONG MOPTION, &
LONG MLOOP, LONG MFLAG, STRING MVALUE)
!
! COPYRIGHT (C) 1987 BY
!
! Computer Management Center
! Idaho Falls, Idaho.
!
! This software is furnished ... |
REM SPDX-License-Identifier: MIT
'''
' 这是一段非 ascii 字符
'''
PRINT """Hello, World'""" ' 又一行注释
END
|
1 REM Basic version on Selection sort
10 MAXSIZE% = 20
20 DIM Numbers%(MAXSIZE%),SortedNumbers%(MAXSIZE%)
30 FOR x% = 0 TO MAXSIZE%
40 Numbers%(x%) = RND * 200
50 NEXT x%
60 GOSUB SELECTSORT:FULLW 2:CLEARW 2
70 PRINT " UNSORTED NUMBERS "," SORTED NUBMERS"
80 FOR x... |
num% = 1
CLS
PRINT EXP(num%)
END
'...output...
'2.718282
|
10 REM *********************
11 REM *** ***
12 REM ** BRICK WALL **
13 REM *** ***
14 REM *********************
15 REM
16 REM
20 GOSUB 1000: REM INSTRUCTIONS
30 GOSUB 2000: REM SETUP
40 GOSUB 3000: REM PLAY
50 GOSUB 4000: REM END
60 END
1000 :
1001 REM *** INSTRUCTIONS
1002 :
1005 POKE ... |
10 REM Git-Test BASIC v1.0
20 REM (L)2016, donas11
30 REM Version 1.0: 12/11/16
40 DATA 72,111,108,97
50 READ H,O,L,A
60 PRINT CHR$(H)+CHR$(O)+CHR$(L)+CHR$(A)
70 GOTO 10
|
Local H, S, BInf, BSup, NbDiv, i
InputFunc f(x),"f(x)=", "f"
Input BInf, "Borne Inférieure?"
Input BSup, "Borne Supérieure?"
Input NbDiv, "Nombre de Divisions?"
ClrText
Print {"(BSup-BInf)/(2*NbDiv)⇒H"}
Print {"H=(", BSup, "-", BInf, ")/(2*", NbDiv, ")"}
(BSup-BInf)/(2*NbDiv)⇒H
0⇒S
For 1⇒i To NbDiv
Print {S, "+2*f(2*",... |
1 definta-z:inputr:s=0:l=r+1:e=0:x=r+r:y=0:g=r
2 ife>0thenl=l-1:x=x-2:e=e+y-xelsee=e+y+1
3 ifl>0thens=s+l:g=g+1:l=l-1:y=y+2:ifx>=ythen2
4 o!=s+s-g:o!=o!+o!:o!=o!+o!:printo!-3
|
10 REM Это комментарий
20 INPUT A
30 INPUT B
40 LET C = A - B
50 IF C < 0 GOTO 20
60 OUTPUT C
70 END
|
' Copyright (c) 2017 swissEmbedded GmbH, All rights reserved.
' Energy planner
' Documentation
' @DESCRIPTION Plan energy consumer to use as much photovoltaic energy as possible
' @VERSION 1.0
trace extended
owkey$="21254ca4c403151ea2540fa0f1545e6d"
owpos$="q=Baden+CH"
owlng$="de"
owunit$="metric"
owcb$="owC"
owcnt%=... |
1 'Example of LINE INPUT statement
10 LINE INPUT "Enter two strings and a value"; A$, B$, X
20 PRINT A$: PRINT B$: PRINT "Value entered = ";X
|
CLS
DIM ampl(1) AS SINGLE
INPUT "Enter amplification factor"; ampl(1)
ampl(1) = ampl(1) - 1
INPUT "Enter start frame"; n1
INPUT "Enter end frame"; n2
DIM f1(720) AS STRING * 1
DIM f2(720) AS STRING * 1
DIM diff(720) AS INTEGER
DIM p AS STRING * 1
FOR n = n1 TO n2
DATA1$ = STR$(n)+"-1.raw"
DATA... |
REM File: .bas
REM Data:
REM + 1 EURO
REM Programmer: Yuriy Lomako
REM Description:
REM -------------------------------------------------------------------
SCREEN 12
REM quadrato
LINE (110, 70)-(190, 120), , B
REM Shtrihpunktirnaya liniya
LINE (0, 0)-(320, 200), 3, , &HFF00
|
olevba 0.60.1.dev3 on Python 3.8.10 - http://decalage.info/python/oletools
===============================================================================
FILE: Virus.MSOffice.NoStyle.d
Type: OLE
-------------------------------------------------------------------------------
VBA MACRO ThisDocument.cls
in file: Virus.M... |
1 %TITLE "Cash Receipt Journal Maintenance"
%SBTTL "AR_JOUR_CRJ"
%IDENT "V3.6a Calico"
!
! COPYRIGHT (C) 1987, 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
... |
@ERASE
@INIT 50
50 Z = 0
51 RETURN
@IDLE 100
100 A = slave 5
101 RETURN
@SLAVE 150
150 A = link 1
151 RETURN
|
'********** Display.Bas - slide show display program for QuickScreens
'by Don Malin and Ethan Winer
'Copyright (c) 1987 - 1989 Crescent Software Inc.
DEFINT A-Z
DECLARE SUB Lib2Scrn (NameInLib$, ScrnLib%(), MonoCode%, ReqLines%, ErrorCode%)
DECLARE SUB LoadScreen (ScrName$, MonoCode%, Attribute%, ErrorCode%)
DECLAR... |
10 :REM'VARAYFED - Vertical Antenna Array Feed - 27 JUN 1998
20 IF EX$=""THEN EX$="EXIT"
30 CLS:KEY OFF
40 COLOR 7,0,1
50 PI=4*ATN(1) :REM'3.141593
60 UL$=STRING$(80,205)
70 :REM'
80 :REM'.....title page
90 CLS
100 COLOR 15,2
110 PRINT " VERTICAL ANTENNA ARRAY FEED METHOD";
120 PRINT TAB(57);"by George Murphy VE3ERP "... |
REM File: .bas
REM Data:
REM Programmer: Yuriy Lomako
REM Description:
REM -------------------------------------------------------------------
CLS
FOR i = 0 TO 9
FOR j = 0 TO 9
FOR k = 0 TO 9
PRINT i; j; k
NEXT k
NEXT j
NEXT i
|
1 RANDOMIZE
5 PRINT TAB(33);"BAGELS"
10 PRINT TAB(15);"CREATIVE COMPUTING MORRISTOWN, NEW JERSEY"
12 PRINT TAB(10);"ECMA-55 PORT BY. B. WATSON, URCHLAY AT SLACKWARE.UK"
14 PRINT
16 PRINT
20 REM *** BAGELS NUMBER GUESSING GAME
22 REM *** ORIGINAL SOURCE UNKNOWN BUT SUSPECTED TO BE
25 REM *** LAWRENCE HALL OF SCIENCE, U... |
10 print "Ejercicio 2"
20 input "Ingrese el número: "; n
30 f = 1
40 for i = 2 to n
50 f = f * i
60 next
100 print "Factorial: "; f |
Version =20
VersionRequired =20
Begin Form
AutoResize = NotDefault
RecordSelectors = NotDefault
AutoCenter = NotDefault
NavigationButtons = NotDefault
DividingLines = NotDefault
AllowDesignChanges = NotDefault
DefaultView =0
ScrollBars =0
PictureAlignment =2
DatasheetGridlinesBe... |
DECLARE SUB MouseDriver (AX%, bx%, CX%, DX%)
DECLARE FUNCTION MouseInit% ()
DECLARE SUB mouseshow ()
DECLARE SUB mousestatus (lb%, RB%, Xmouse%, Ymouse%)
DIM SHARED mouse$
DIM a(22, 80)
RESTORE
mouse$ = SPACE$(57)
FOR i% = 1 TO 57
READ a$
H$ = CHR$(VAL("&H" + a$))
MID$(mouse$, i%, 1) = H$
NEXT i%
DATA 55,8... |
DECLARE SUB MouseDriver (AX%, bx%, CX%, DX%)
DECLARE FUNCTION MouseInit% ()
DECLARE SUB mouseshow ()
DECLARE SUB mousestatus (lb%, RB%, xmouse%, ymouse%)
DIM SHARED mouse$
RESTORE
mouse$ = SPACE$(57)
FOR i% = 1 TO 57
READ A$
H$ = CHR$(VAL("&H" + A$))
MID$(mouse$, i%, 1) = H$
NEXT i%
DATA 55,89,E5,8B,5... |
10 rem ********************************
20 rem * The Valley for PET *
30 rem * *
40 rem * typed-in and debugged by: *
45 rem * Trantor/Hokuto Force *
50 rem * *
60 rem * (C)1982 by Computing Today *
65 rem * (CT - April '82 Issue) *
... |
100 REMark **
110 REMark ** This SuperBASIC program sets up a Hotkey to
120 REMark ** perform the action of preparing a table in Psions Abacus
130 REMark ** to be completly importable into QSpread using the
140 REMark ** "PsionImport" filter
150 REMark ** (column width are preserved)
152 REMark $$asmb=win1_rext_Outln_r... |
10fori=8192to16191:pokei,0:next:printi
20fori=8192to16191:pokei,11:nexti:printi
30fori=8192to16191step12:pokei,11:nexti:printi
40fori=20000to10000step-7:pokei,11:nexti:printi
45fori=20000to10000step-1:pokei,11:nexti:printi
50fori=20to10step-7:pokei,11:nexti:printi
|
1 REM
2 REM INTRODUCTION TO COMPUTER PROGRAMMING BASIC FOR BEGINNERS
3 REM BY USBORNE BOOKS
4 REM https://usborne.com/browse-books/features/computer-and-coding-books/
5 REM
8 CLS
10 FOR J=7 TO 2 STEP -1
20 PRINT "THERE ARE ";J;" PIES LEFT"
30 NEXT J
40 PRINT
50 PRINT "I SHALL EXPLODE"
60 FOR K=1 TO 1000
70 REM DO NOT... |
DECLARE FUNCTION F1DIM! (X!)
DECLARE FUNCTION FUNC2! (X!(), NCOM!)
COMMON SHARED NCOM, PCOM(), XICOM()
FUNCTION F1DIM (X)
DIM XT(NCOM)
FOR J = 1 TO NCOM
XT(J) = PCOM(J) + X * XICOM(J)
NEXT J
F1DIM = FUNC2(XT(), NCOM)
ERASE XT
END FUNCTION
|
10 FOR I = 0 TO 999
20 FOR J = 0 TO 999999
30 PRINT "Hello from loop number: ";I;" This is counter number: ";J
40 NEXT J
50 NEXT I |
DIM Numbers(10) AS INTEGER
DIM High AS INTEGER
DIM Low AS INTEGER
DIM x AS INTEGER
CLS
FOR x = 1 TO 10
INPUT "Enter Number: ", Numbers(x)
NEXT x
High = Numbers(1)
Low = Numbers(1)
FOR x = 2 TO 10
IF Numbers(x) > High THEN
High = Numbers(x)
ELSEIF Numbers(x) < Low THEN
L... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.