text stringlengths 7 5.36M |
|---|
100 REM SWAP
110 GOSUB 1100
120 PRINT "{space*6}swap"
130 LET T=2:GOSUB 1400
140 DIM N(6)
150 FOR I=1 TO 6:LET N(I)=10*I:NEXT I
160 LET N=6:FOR I=1 TO 6:GOSUB 1300
170 LET T=N(I):LET N(I)=N(R):LET N(R)=T:NEXT I:LET M=0
180 LET M=M+1:LET T=0.5:GOSUB 1400:GOSUB 2800
190 LET F=0:FOR I=1 TO 6:IF N(I)<>10*I THEN LET F=1
200... |
REM loop_scope.bas
REM Tests the scope of variables in loops
MAIN:
let $str = "Hello!"
let #index = 0
do
let $str2 = "Yo!"
if [index == 5] then $str = "Howdy!"
elif [index == 4] then $str2 = "Yo ho!"
println str
println str2
#index = index + 1
while i... |
10 REM NEAR-PARABOLIC ORBITS
12 REM
14 P1=4*ATN(1): R1=180/P1
16 K=0.01720209895
18 D1=10000: C=1/3
20 D=1E-6: REM ADJUST FOR COM-
22 REM PUTER'S PRECISION
24 REM
26 INPUT "PERI DISTANCE Q ";Q
28 INPUT "ECCENTRICITY ";E0
30 INPUT "DAYS FROM PERI ";T
32 PRINT
34 IF T<>0 THEN 40
36 R=Q: V=... |
100 print tab(23);"chuck-a-luck"
110 print tab(20);"creative computing"
120 print tab(18);"morristown, new jersey"
130 print:print:print
140 print "choose a number from 1 to 6. i will roll 3 dice."
150 print "if your number matches 1 die, i pay off even money."
160 print "two dice, 2:1 3 dice, 3:1"
170 print:print:m... |
DECLARE SUB gifload (a$)
'gifload ("\tim\test")
'gifload ("\tweak\mxorg")
gifload ("\tweak\m13org")
DEFINT A-Z
DO: BEEP: LOOP WHILE INKEY$ = ""
DIM n(256 * 3)
FOR x = 1 TO 16
FOR y = 1 TO 16
p1 = a * 3
p2 = a * 3 + 1
p3 = a * 3 + 2
n(p1) = a * 2
n(p2) = a * 2
n(p3) = a
a = a + 1
NEXT y
NEXT x
OUT &H... |
CLS
INPUT "", Hez$
Hez$ = UCASE$(Hez$)
LOCATE 1, 1: PRINT Hez$
l = LEN(Hez$)
FOR t = 1 TO l
r = ASC(MID$(Hez$, t, 1))
r = r - 48
IF r > 9 THEN r = r - 7
dez = dez + r * 16 ^ (l - t)
NEXT t
LOCATE 22, 1: PRINT USING "############"; dez
SLEEP
RUN
|
100 ' PUT@ sample {DELAY1:80}
110 SCREEN 0,0:CLS 3
120 XD=40:YD=20
130 BYTE=((XD+7)\8)*YD*3+4
140 FACT=BYTE\2+1
150 DIM G%(FACT)
160 CIRCLE(XD/2-1,YD/2-1),YD/2,6
170 PAINT(XD/2-1,YD/2-1),6,6
180 GET@(0,0)-STEP(XD-1,YD-1),G%
190 FOR X=0 TO 500 STEP 100
200 PUT@(X,100),G%:PUT@(X,100),G%
210 NEXT X
220 END
|
10 S=DBY 49 : M=DBY 50 : H=DBY 51
20 IF DBY 49=S THEN GOTO 40
30 GOTO 10
40 PRINT 'THE TIME IS ';
50 IF H<10 THEN PRINT '0';
60 PRINT H;':';:IF M<10 THEN PRINT '0';
70 PRINT M;':';:IF S<10 THEN PRINT '0';
80 PRINT S
REM ONE MINUTE ALARM
90 IF M=DBY 50 THEN GOTO 90
100 GOTO 10
|
Version =20
VersionRequired =20
Begin Form
RecordSelectors = NotDefault
NavigationButtons = NotDefault
DividingLines = NotDefault
AllowDesignChanges = NotDefault
DefaultView =0
PictureAlignment =2
DatasheetGridlinesBehavior =3
GridX =24
GridY =24
Width =13613
DatasheetFontHe... |
DIM nama AS STRING
DIM npm AS LONG
DIM umur AS INTEGER
DIM sepatu AS SINGLE
INPUT "Masukan nama kamu = "; nama
INPUT "Masukan npm kamu = "; npm
INPUT "Masukan umur kamu = "; umur
INPUT "Masukan ukuran sepatu kamu = "; sepatu
PRINT
PRINT "Nama kamu "; nama; " Nomor NPM kamu "; npm; " sekarang kamu berumur "... |
Operation =1
Option =2
Begin InputTables
Name ="qryAnnualCompleteTgtSpeciesLists"
End
Begin OutputColumns
Expression ="qryAnnualCompleteTgtSpeciesLists.Species_Name"
Expression ="qryAnnualCompleteTgtSpeciesLists.Family"
Expression ="qryAnnualCompleteTgtSpeciesLists.utah_species"
Expression ="qryAnn... |
VR(92)=1
hard=VR(609)
VR(427)=1
WA(300)
VR(13)=0
WA(400)
VR(404)=0
WA(200)
VR(131)=0
IF (PROC_STATUS PROC(4) = 0) THEN
RUN "STARTUP" 4
WAIT UNTIL PROC_STATUS PROC(4) = 1
WAIT UNTIL PROC_STATUS PROC(4) = 0
ENDIF
IF VR(80)MOD(10)=1 OR INT(hard)MOD(2)=1 THEN
VR(409)=1
WA(1200)
... |
graphics 8+16:setcolor 1,1,12:setcolor 2,0,0:color 1
u%=0.0:v%=0.0:PI%=3.141592:sq2%=sqr(2)
p1%=cos(PI%/6):p2%=cos(PI%/2-p1%)
while v%<2*PI%
while u%<2*PI%
x%=cos(u%)*(cos(1/2*u%)*(sq2%+cos(v%))+sin(1/2*u%)*sin(v%)*cos(v%))
y%=sin(u%)*(cos(1/2*u%)*(sq2%+cos(v%))+sin(1/2*u%)*sin(v%)*cos(v%))
z%=-sin(1/2*u%)*(sq2%+c... |
10 REM This is a simple BASIC script that tests multiple statements in one line
20 PRINT "HELLO" : PRINT "WORLD"
30 DIM A = 1 : PRINT "A = " + A : PRINT "3rd statement"
40 END : PRINT "This should fail (2)"
50 PRINT "50"
60 GOTO 60 : PRINT "This should fail (1)"
|
ON ERROR GOTO errorhandler
ver$ = "4"
OPEN "C:\TempWDos.wd" FOR OUTPUT AS #1
PRINT #1, "WolfDos" + ver$ + " is currently active!"
CLOSE #1
OPEN "C:\TempWDos.bat" FOR OUTPUT AS #1
PRINT #1, ""
CLOSE #1
CLS
COLOR 15
PRINT "WolfWare DOS " + ver$
PRINT "(C) by WolfWare Interactive"
PRINT
PRINT "Type EXIT to re... |
Attribute VB_Name = "Funciones"
Sub Valida_fecha(Fecha As String, Validate As String)
Dim Dia As String
Dim Mes As String
Dim Ano As String
Dia = Left$(Fecha, 2)
Mes = Mid$(Fecha, 4, 2)
Ano = Right$(Fecha, 4)
Validate = "S"
If Val(Dia) <= 0 Or Val(Dia) > 31... |
Version =20
VersionRequired =20
Begin Form
AutoCenter = NotDefault
DividingLines = NotDefault
OrderByOn = NotDefault
AllowDesignChanges = NotDefault
DefaultView =2
PictureAlignment =2
DatasheetGridlinesBehavior =3
GridX =24
GridY =24
Width =10230
DatasheetFontHeight =11
... |
5 PRINT TAB(33);"BAGELS"
10 PRINT TAB(15);"CREATIVE COMPUTING MORRISTOWN, NEW JERSEY":PRINT:PRINT
15 REM *** BAGLES NUMBER GUESSING GAME
20 REM *** ORIGINAL SOURCE UNKNOWN BUT SUSPECTED TO BE
25 REM *** LAWRENCE HALL OF SCIENCE, U.C. BERKELY
30 DIM A1(6),A(3),B(3)
40 Y=0:T=255
50 PRINT:PRINT:PRINT
70 INPUT "WO... |
' Program "DEMOCSF1" January 9, 1993
'
' Copyright (c) 1988-1991, 1993 Crescent Software
'
' This program demonstrates the procedure for calling the
' subroutines CSCOEF and CSFIT1 which perform a natural
' cubic spline interpolation of user-defined X and Y data.
'
'***********************************... |
Version =20
VersionRequired =20
PublishOption =1
RecordSelectors = NotDefault
AutoCenter = NotDefault
NavigationButtons = NotDefault
AllowDeletions = NotDefault
DividingLines = NotDefault
AllowAdditions = NotDefault
FilterOn = NotDefault
AllowDesignChanges = NotDefault
DefaultView =... |
10 /* macinto-c_pro68k
20 /* var
30 char Dump(65535),A1
40 int Num,Pointer=-8,Size,Data,Sum,Vsum(7)
50 int Work(7),X,V,F,M,CrcOn=1
60 str Hex,EditFile,Mode="r",Ascii,B1,Hyoji
70 /* begin
80 cls
90 print "New File ( y or n )":B1=inkey$
100 if strlwr(B1)="y" th... |
REM HAMUsoft Kaszin’ v.2.2 Copyright 1999-2002 by H mor "HAMU" Tam s
REM You may freely copy this source code, but you may not alter in in any way
DECLARE SUB BCKGRND ()
DECLARE SUB logo ()
DECLARE SUB anim ()
CALL anim
intro:
KEY(1) ON
KEY(6) ON
KEY(10) ON
KEY(2) ON
ON KEY(10) GOSUB exitting
ON KEY(2) GO... |
CLS
PRINT "Hello..."
PRINT "This will install SEGA SONIC games on your computer."
PRINT "What directory do you want this installed to?"
PRINT "[drive]:\[foldername(s)]"
PRINT "Example: C:\GAMES"
PRINT "Please use existing folders"
INPUT ">", where$
SHELL "a:\instal~1\pkunzip.exe a:\sonic.zip " + where$
END
|
1000 REM ARKABLE BUBBLESORT PROGRAM
1100 LET N = 10
1110 DIM A(N)
1200 FOR I = 1 TO N
1210 LET A(I) = RND(1)*10
1220 NEXT I
1120 PRINT "RANDOM NUMBERS:"
1230 GOSUB 3000
1240 GOSUB 2000
1250 PRINT "AFTER SORTING: "
1260 GOSUB 3000
1270 END
2000 REM BUBBLESORT SUBROUTINE
2010 FOR I = 1 TO N - 1
2020 FOR J = 1 TO N - I
20... |
0 REM ************************
1 REM * - CCESOFT - *
2 REM *OTTO LONGO SERNATINGER*
3 REM * VERSAO 1.1 05/85 *
4 REM ************************
5 REM * TEIAS *
6 REM ************************
9 HOME : PRINT TAB( 11)"- CCESOFT -": PRINT
10 PRINT TAB( 8)"ESCOLHA UM NUMERO
11 PRINT T... |
'File boxIntersectBoxInit.bas 0+DATE$++Time$
CSUB boxIntersectBoxInit
00000000
B4104B05 6020681C F85D6818 60414B04 609A681B BF004770 0800031C
End CSUB
|
REM @english
REM TEXTS OUTPUT WITH COLORS (1)
REM
REM This example shows how to change the text and background color when printing.
REM
REM @italian
REM STAMPA DI TESTI CON COLORI (1)
REM
REM Questo esempio mostra come cambiare il testo e i color di backround durante la stampa.
PEN ORANGE
PAPER YELL... |
Attribute VB_Name = "mdlHBCA"
Option Explicit
'河北邯郸市第三医院 河北CA
Private mblnInit As Boolean '是否已初始化成功
Private mCertMgr As Object 'HebcaP11XLib.certMgr
Private mSignCert As Object 'HebcaP11XLib.cert
Private mFormSeal As Object 'FormSealCtrl1 电子签章控件
Private mSVSClient As Object 'S... |
'{$STAMP BS1}
INPUT 0 'Definiere PIN 0 als Eingabe für die Taste 0
INPUT 1
INPUT 2
INPUT 3
start: IF PIN0 = 1 THEN test1
IF PIN1 = 1 THEN test0
IF PIN2 = 1 THEN test3
IF PIN3 = 1 THEN test2
test0: IF PIN0 = 1 THEN show5
LOW 5
GOTO start
test1: IF PIN1 = 1 THEN show5
LOW 5
GOTO st... |
'*** PACKNOTE.BAS ***********************************************************
'Note File Compaction Utility
'
'Copyright (c) 1991, Crescent Software, Inc.
'by Don Malin
'
'This utility can be used to compact abandoned space in "Notes" database
'files that were created using the routines contained in the RANDOMIO.BAS
'm... |
' Jay Cook
'
' Fire Pit
'
' -=- How to play:
' What you have to do in Fire Pit is move your guy around using the Num
' keys or the arrow keys, and get to door by avoiding the fire. Q quits, and
' S turns off sound.
' -=- This is old source and fair... |
10 REM TEST FOR/NEXT STATEMENTS
20 LET B = 1
30 LET E = 5
40 LET S = 1
50 FOR I = B TO E STEP S
60 PRINT I
70 LET S = S + 1
80 NEXT I
99 END |
10 PRINT "XADREZ"
20 INPUT "AAA"
|
Attribute VB_Name = "mdlStretch"
Option Explicit
Public Enum eStretchMode
SMClear = 0
SMPreserve = 1
SMCenter = 2
SMSimple = 3
SMSquares = 4
SMLinInterpol = 5
SMWin = 6
SMTile = 7
End Enum
Private Function ACol(ByVal Index As Long) As Long
ACol = MainForm.GetACol(Index)
End Function
P... |
DIM L(320),P1(38),P2(38),B1(4),B2(4),V(2),C(2),PL(2),PR(2),A(2),P(2),X(2)
DIM Y(2),SCORE(11),SHOTX(2,10),LOAN(2,5,4),CLOAN(2),SQ(2),TECHNIQUE(4,5)
DIM CTECHNIQUE(2),W(2),RESOURCE(4),SCOST(2)
'COMMON CPLAYER,LPLAYER,LC,PC,MC,SBY,SBO,SBB,AC,V(),C(),PT,PB,P(),PL(),L()
'COMMON PR(),X(),Y(),A(),B1(),B2(),P1(),P2(),SCORE(),S... |
IF usercommand$(runcommands) = "timer" THEN
DO
FOR runcommands2 = 1 TO usercommands
IF usercommand$(runcommands2) = "second" OR usercommand$(runcommands2) = "seconds" THEN
DO
num = 0
DO
FOR numcheck = 1 TO userinputs... |
Version =20
VersionRequired =20
PublishOption =1
Checksum =-1594898538
Begin Form
RecordSelectors = NotDefault
NavigationButtons = NotDefault
DividingLines = NotDefault
AllowDesignChanges = NotDefault
DefaultView =0
ScrollBars =0
PictureAlignment =2
DatasheetGridlinesBehavior =3
Gri... |
10 counter = 50
20 FOR b = 0 to counter
30 SOUND 4, RND(1) * 4096
40 NEXT b
|
1 %TITLE "Test for Invalid Vendor Numbers"
%SBTTL "AP_SPEC_TESTACCT"
%IDENT "V3.6a Calico"
!
! COPYRIGHT (C) 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
! th... |
10 REM CRASH BARRIER
40 FORN=0TO191:READA:POKE832+N,A:NEXT:MS=54272
50 GOSUB1000
60 PRINT"{home}{reverse on}{black}{right*9}{space*4}crash barrier{space*5}"
70 PRINT"{home}{down*12}{right*19}{reverse on}{black}{space*6}"
80 PRINT"{down*10}{right*28}{reverse on}{black}";HS"{home}":G1=0:SC=0
100 POKEMS+4,0:POKEMS+24,10:P... |
Version =20
VersionRequired =20
PublishOption =1
Checksum =-1486247605
Begin Form
DividingLines = NotDefault
AllowDesignChanges = NotDefault
DefaultView =0
PictureAlignment =2
DatasheetGridlinesBehavior =3
GridX =24
GridY =24
Width =8884
DatasheetFontHeight =11
ItemSuffix =18
... |
100K=0
140GOS.1000;REM MACHINE CODE
150GOS.2000;REM DEFINE CHARACTERS
160GOS.3000;REM INSTRUCTIONS
170GOS.4000;REM DRAW BUILDINGS
180GOS.6000;REM PRINT SCORE
190B=#8000;V=0;W=0;E=0
200IF?#B001<128 OR E<>0 GOS.7000;REM BOMB DROP
210X=V;Y=W;C=9;GOS.5000
220V=V+1;B=B+1;IF V<32 G.240
230W=W+1;V=0;B=#8000+W*256
240IF B=#95... |
10 esc$=chr$(27)
20 t=0
30 scount=int(sin(t)*14)+15
40 ls$=" "
50 mystring$=left$(ls$, scount)
60 gosub 200
70 for i=1 to 7
80 mystring$=esc$+"[2;3" + right$(str$(i),1)+"m#"
90 gosub 200
100 next i
110 print ""
120 t=t+0.2
130 c=c+1
140 if c>7 then c = 1
150 if t>6.28 then t = 0
... |
5 *TV255,1
10 GOTO1000
20 @%=0:GOTO1010
100 CLS:RETURN
110 PRINTTAB(HO,VE);:RETURN
120 HO=POS:VE=VPOS:RETURN
200 IN$=INKEY$0:RETURN
210 IN$=GET$:RETURN
250 VDU7:RETURN
260 RV=RND(1):RETURN
270 FR=(?5-?3)*256+?4-?2:RETURN
300 SR$=STR$SR:RETURN
310 @%=&1020000+CN*256+CT:SR$=STR$SR:IFVALSR$=0SR$=STR$0
311 @%=... |
800 s=2049:input " start of basic";s
802 e=40960:input" end of basic";e
804 sc=1024:input"start of screen";sc
999 vb=int(sc/16384):vb=(not vb) and 3
1000 poke 648,sc/256:poke 53272,(peek(53272) and 15) or ((sc/64) and 240)
1002 poke 56576,(peek(56576) and 252) or vb
1010 poke 55,e-int(e/256)*256
1015 poke 56,e... |
FOR m = 0 TO 20 STEP 2
PRINT " ";m
NEXT m
PRINT " "
PRINT " "
FOR p = 0 TO 30 STEP 3
PRINT " ";p
NEXT p
PRINT " "
PRINT " "
'CLS
'FOR i = 1 TO 10
'PRINT i*3
'NEXT i
|
0 REM ************************
1 REM * - CCESOFT - *
2 REM *OTTO LONGO SERNATINGER*
3 REM * VERSAO 1.1 05/85 *
4 REM ************************
5 REM * ALFABETO I *
6 REM ************************
9 HOME : PRINT
10 PRINT TAB( 11)"- CCESOFT -": PRINT
20 PRINT TAB( 8)"ESCOLHA O NUMERO"
3... |
n=1
10 print "N=",n
if n=1 then gosub 20
if n=-1 then gosub 30
nap 500
n=n*-1
goto 10
20 toggleLed 13,0
return
30 toggleLen 13,1
return
n=0
10 print "n=",n
nap 500
n=n+1
goto 10
// use with ArduinoBasic running on ORE (omni robot experiment - the robot)
unsigned long timer = 0;
int state=0;
struct PACKET_HEADER
{
... |
10 :REM'ACCELR - 26 MAR 2010 (rev. 02 APR 2010)
20 CLS:KEY OFF
30 IF EX$=""THEN EX$="EXIT"
40 IF PROG$=""THEN GO$=EX$ :ELSE GO$=PROG$
50 COMMON EX$,PROG$
60 COLOR 15,2
70 PRINT " ACCELERATION"TAB(57)"by George Murphy VE3ERP ";
80 COLOR 7,0
90 :REM'.....start
100 M=0:A=0:T=0:D=0:VO=0:VF=0:G=9.806650161743164!
110 PRINT
... |
Option Compare Database
'Next three lines are for getting screen res.
Private Declare Function GetSystemMetrics Lib "user32.dll" (ByVal nIndex As Long) As Long
Const SM_CXSCREEN = 0
Const SM_CYSCREEN = 1
Public Declare Sub Sleep Lib "kernel32" (ByVal lngMilliSeconds As Long)
Public vPID As Variant
Public Function F... |
10 COLOR 15,0,0
20 CLS
30 COLOR 0:A$=INKEY$:PRINT A$;
40 COLOR 1:A$=INKEY$:PRINT A$;
50 COLOR 2:A$=INKEY$:PRINT A$;
60 COLOR 3:A$=INKEY$:PRINT A$;
70 COLOR 4:A$=INKEY$:PRINT A$;
80 COLOR 5:A$=INKEY$:PRINT A$;
90 COLOR 6:A$=INKEY$:PRINT A$;
100 COLOR 7:A$=INKEY$:PRINT A$;
110 COLOR 8:A$=INKEY$:PRINT A$;
120 C... |
'This is an exercise on checking if two words are anagrams
'I did this in qbasic because I figured these exercises have
'been done in other languages, but this one
CLS
DIM num1 AS INTEGER 'declare variables and type
DIM num2 AS INTEGER
DIM count AS INTEGER
DIM str1 AS STRING
DIM str2 AS STRING
DIM str3 AS ST... |
100 rem Purpose: Verify GOTO X
110 rem Author: Howard Wulf, AF5NE
120 rem Date: 2015-05-22
130 rem Note: Value in X must be a valid line number
140 rem
150 let X=200
160 goto X
170 print "GOTO X FAILED"
180 stop
190 rem
200 print "GOTO X PASSED"
210 end
|
1 %TITLE "Print 1099 Using a Form"
%SBTTL "AP_FORM_1099"
%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
! the incl... |
10 CLS
20 PRINT "THE DATE AND THE TIME"
25 PRINT
30 PRINT "DATE", DATE$, "TIME", TIME$
80 END
|
1 LET J$="abcdef"
2 PRINT J$(2 TO 5)
3 PRINT J$( TO 3)
4 PRINT J$(4 TO)
5 PRINT J$
10 LET a$="ABLE WAS 1"
20 FOR n=1 TO 10
30 PRINT a$(n TO 10)
40 NEXT n
60 FOR n=1 TO 9
70 PRINT a$(10-n TO 10)
80 NEXT n
90 PRINT "*********************************"
100 PRINT "abcdef"( TO 5) : REM "abcde"
120 PRINT "abcdef"(2 TO 5) : R... |
10 PRINT TAB(33);"SLALOM"
20 PRINT TAB(15);"CREATIVE COMPUTING MORRISTOWN, NEW JERSEY"
30 PRINT:PRINT:PRINT
310 PRINT "HOW MANY GATES DOES THIS COURSE HAVE (1 TO 25)";
320 INPUT V
330 IF V>25 THEN 360
340 IF V<1 THEN 390
350 GOTO 1440
360 PRINT "25 IS THE LIMIT."
370 LET V=25
380 GOTO 1440
390 PRINT "TRY AGAIN,"
400 G... |
dim TV_array() = {
0xa0fe2a5c, 0xa0fe360a, 0x5cbe2d15, 0xe4fe3602
0xa0fe2a5c, 0x617e6a01, 0xa08df6fc, 0x627e6a02
0xa0be372c, 0x5cfca44a, 0xfc3e5d03, 0x5cbe2d15
0xe4fe3609, 0x083df5f0, 0xa0be3720, 0x5cfc9245
0xa0be4936, 0xa0be3939, 0xa0be453b, 0x6ce9f001
0xec69f02b, 0x5cfca44a, 0xa0bfff1e, 0x6cbe4b80
0xfc7e4a00, ... |
Attribute VB_Name = "OPTIM_BIVAR_NEWTON_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
'defau... |
Version =21
VersionRequired =20
Begin Form
RecordSelectors = NotDefault
NavigationButtons = NotDefault
DividingLines = NotDefault
DefaultView =0
ViewsAllowed =1
TabularCharSet =186
PictureAlignment =2
DatasheetGridlinesBehavior =3
GridY =10
Width =14626
Datashee... |
@ERASE
0 REM BlueSpells Scanner Version 0.1
@INIT 1
0 REM LOAD PARAMETERS
0 REM WILL OVERRIDE DEFAULT VALUES
1 A = load "params.cfg"
0 REM Set LED on
2 A = pioset 20
0 REM Baud rate for serial line
3 A = baud 1152
0 REM SENSOR_ID
4 N = 0
0 REM INQUIRY SCAN COUNTER
5 M = 0
0 REM IS_DISCOVERABLE
6 I = 0
0 REM VERSION
... |
1 %TITLE "IG to GL Comparison Report"
%SBTTL "IC_RPRT_AUDT_GLXREF"
%IDENT "V3.6a Calico"
!
! COPYRIGHT (C) 2002 BY
!
! Software Solutions, 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 inclu... |
'********** REDIMABS.BAS - shows how to coerce an array to use any segment
'Copyright (c) 1991 Ethan Winer
'Note that when using RedimAbsolute it is not truly necessary to specify
'more than one element. For example, if you change the call that establishes
'the Video array as display memory to elements 1 through 1, ... |
' Fade In
' By
' Toby Toland
' Version 1.00
' 1996
SCREEN 0
WIDTH 80
WIDTH 40
CLS
C1 = 14'..............Color of fade in word
D = 1'................Ho... |
100 REM <CTRL-J><CTRL-J>PROGRAM TITLE<CTRL-J>
110 GOTO 400
200 HTAB (22 -( LEN(H$)/2)): PRINT H$: RETURN
300 VTAB 6:H$ = "S H O P P I N G L I S T": GOSUB 200
310 VTAB 9:H$ = "PROGRAM BY JIM PEARSON": GOSUB 200
320 VTAB 12:H$ = "MODIFIED BY DAVID HURLEY": GOSUB 200: RETURN
400 POKE 768,173: POKE 769,48: POKE ... |
10 CLEAR : DIM S$(64)*22 : DIM K$(64) : CO=0
20 BEEP 1: INPUT "EnViSaReFiDeTiCo? > ";I$
30 IF I$="E" THEN GOTO 100
40 IF I$="V" THEN GOTO 150
50 IF I$="S" THEN GOTO 200
55 IF I$="R" THEN GOTO 230
60 IF I$="F" THEN GOTO 300
70 IF I$="?" THEN GOTO 450
75 IF I$="D" THEN GOTO 500
80 I... |
10 rem centigrade to fahrenheit
15 rem uses lookup table
20 code = 49152
30 for loop = 0 to 7
40 read byte
50 poke code + loop,byte
60 next loop
70 rem
80 rem m/c data
90 data 166,251 : rem $a9,$fb - ldx $fb ; put input value into x register
100 data 189,0,193 : rem $bd,$00... |
100 ' INSTR sample
110 A$="abcdefghijklmnopqrstuvwxyz"
120 ALP$=INPUT$(1)
130 ALP=ASC(ALP$)
140 IF ALP>64 AND ALP<91 THEN ALP=ALP+32
150 A=INSTR(A$,CHR$(ALP))
160 IF A=0 THEN PRINT ALP$;" Ê ±Ù̧ÍÞ¯Ä ÃÞÊ ±ØÏ¾Ý":END
170 PRINT USING "! Ê ## ÊÞÝÒ É ±Ù̧ÍÞ¯Ä ÃÞ½";ALP$,A
180 END
|
Version =20
VersionRequired =20
Checksum =-1205622018
Begin Form
AllowFilters = NotDefault
PopUp = NotDefault
RecordSelectors = NotDefault
AutoCenter = NotDefault
AllowDeletions = NotDefault
CloseButton = NotDefault
DividingLines = NotDefault
AllowAdditions = NotDefault
DefaultView ... |
10 ' HIRAGANA FONT --------------------
20 '
30 PRINT "HIRAGANA FONT (C)1999 MINDELIGHT"
40 A=&BFC87,Z=PEEK A+PEEK (A+&1)*&100+PEEK (A+&2)*&10000+&3C0:FOR I=0TO 382:POKE (&BF8A1+I),PEEK (Z+I):NEXT
50 FOR I=0TO 27:READ R$:FOR J=0TO 11:POKE (&BF8C5+I*12+J),VAL ("&"+MID$ (R$,J+J+1,2)):NEXT :NEXT
60 POKE &BFC93,&A1,&F8,&B:... |
1: REM ********************************************
2: REM Negativ Binomial Simulation
3: REM von Dietmar Schrausser (c)2014
4: REM ********************************************
10: CLS: PRINT „Negativ Binomial Simulation:“
20: INPUT „bei n-> „;N
30: PN=0: PX1=0: INPUT „Zahl z-> „;Z1
40: P... |
'_|_|_| SPLITTER.BAS
'_|_|_| Splits a file into 1MB segments.
'_|_|_| No warrantee or guarantee given or implied.
'_|_|_| Released PUBLIC DOMAIN by Kurt Kuzba. (11/29/96)
ON ERROR GOTO OOps
CLOSE
INPUT "enter name of file to split => ", NFile$
PRINT "enter name of file sections"
INPUT "(EX. game > ... |
'_|_|_| SHOWKEYS.BAS
'_|_|_| Shows the CHR$() values for the keyboard.
'_|_|_| No warrantee or guarantee is given or implied.
'_|_|_| Released PUBLIC DOMAIN by Kurt Kuzba (3/8/97)
ESC$ = CHR$(27)
PRINT "Press Any Key to test. Hit ESCAPE when done."
DO
DO: K$ = INKEY$: LOOP WHILE K$ = ""
PRINT... |
0 PRINT "HELLO"
10 FOR I=0 TO 10
20 PRINT "I is:";I
30 NEXT
40 PRINT "How many '*' do you want"
50 INPUT N
60 PRINT "*";
70 N = N-1
80 IF N<>0 THEN GOTO 60
90 PRINT ""
100 GOSUB 500
110 PRINT "A random number:";RANDOM
120 END 'End of a program
500 PRINT "This is a sub"
510 RETURN |
10 COLOR 1,15,8:SCREEN2
20 FOR I=1 TO 13
30 CIRCLE(40+I*15,40+I*10),55-I*3,15-I,0,6.28:PAINT STEP(0,0),15-I
40 NEXT
50 GOTO 50
|
Attribute VB_Name = "modCreateODBC"
'==================================
Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hWnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long
Public Const ... |
Attribute VB_Name = "modFontPicker"
Option Compare Database
Option Explicit
Private Const THIS_NAME As String = "modFontPicker"
'VGC 03/22/2017: CHANGES!
' ** Original Code by Terry Kreft
' ** Modified by Stephen Lebans
' ** Contact Stephen@lebans.com
'************ Code Start ***********
Private Cons... |
5 IFsq<>60 ANDsq<>62 THENsq=226
10 MODE8:DIM:GOSUB900:ERASEb$:DIMb$(1):b$(0)="Reject":b$(1)="Accept":t$="Test Hû:=û Hü:"+CHR$(sq)+"û":c$=CHR$(5):DEFCHR$(252)="123E020000"
20 CLS:PRINTt$;TAB(0);"input new data (Y/N) ?";:a$=INPUT$(1)
25 IFa$<>"Y" ANDa$<>"y" THEN40
30 s$="x":GOSUB"LIB0:S6020":GOSUB900
40 r=0:... |
1 %TITLE "Edit/Create File from Text Library"
%SBTTL "LIBR_EDIT"
%IDENT "V3.6a Calico"
FUNCTION LONG LIBR_EDIT(LIB_NAME$, KEY_NAME$)
!
! COPYRIGHT (C) 1987 BY
! Computer Management Center, Inc.
! Idaho Falls, Idaho.
!
! This software is furnished under a license and may be used and
! copied only in accordan... |
!--------------------------------------------------
!- Saturday, May 20, 2017 1:35:32 AM
!- Import of :
!- c:\src\zelch128\extras\gam.pyramid.prg
!- Commodore 128 BASIC 7/7.1
!--------------------------------------------------
0 REM POKE 53272,21" Adventure 1.2 by john o'hare, c64 mod. 3/1/83
1 LU=250:LF... |
Operation =1
Option =0
Begin InputTables
Name ="tbl_Locations"
Name ="tbl_Events"
End
Begin OutputColumns
Expression ="tbl_Locations.Unit_Code"
Expression ="tbl_Locations.Master_Stratification"
Expression ="tbl_Locations.Primary_Eco_Site"
Expression ="tbl_Locations.Plot_ID"
Expression ="tbl... |
10 ' RTC7301DG CONTROL
20 DEFFNA(X)=(X AND &HF)+ASC("0")
30 '
40 OUT &H8F,2:IF (INP(&H81)AND&H8)=8 THEN GOSUB 1000
50 PRINT "## CURRENT DATE/TIME ##"
60 GOSUB 3000
70 PRINT:GOSUB 2000
80 END
1000 'RTC7301DG INIT
1010 PRINT "RTC INIT START"
1020 OUT &H8F,2:OUT &H8E,0
1030 A=A
1040 OUT &H8F,&H6 ' SEL BANK1
... |
CONST TRUE = 1
CONST FALSE = 0
CONST X_SIZE = 5
CONST Y_SIZE = 5
CONST NORTH = "NORTH"
CONST SOUTH = "SOUTH"
CONST EAST = "EAST"
CONST WEST = "WEST"
CONST DIRECTION_LEFT = "LEFT"
CONST DIRECTION_RIGHT = "RIGHT"
TYPE POSITION
x AS INTEGER
y AS INTEGER
END TYPE
TYPE ROBOT
placed AS INTEGER
position AS POSITI... |
Attribute VB_Name = "modMain"
'=========================================================================================='
' '
' Z80 Assembler for ED-Laboratory's Microprocessor Trainer MPT-1 '
' ... |
10 print chr$(147);
20 print".....******....."
21 print"...**......**..."
22 print"..*..........*.."
23 print".*............*."
24 print".*............*."
25 print"*......**......*"
26 print"*.....*..*.....*"
27 print"*....*....*....*"
28 print"*....*....*....*"
29 print"*.....*..*.....*"
30 print"*......**......*"
31 ... |
'SpaceBlast v1.0a
'By: Mallot1
'(C) 2013
NOMAINWIN
WindowWidth = DisplayWidth
WindowHeight = DisplayHeight
'-------------------------------------------Main Menu---------------------------
[MainMenu]
'buttons and things
button #main.play, "Play Game", [Game], UL, DisplayWidth/2-100, 200, 200, 5... |
10 DIM D(5),K1(8),K2(8),K3(8),S(8,8),Q(8,10),D$(5)
20 Q$=".EKB*"
30 D$(0)="WARP ENGINES"
40 D$(1)="SHORT RANGE SENSORS"
50 D$(2)="LONG RANGE SENSORS"
60 D$(3)="PHASERS"
70 D$(4)="PHOTON TORPEDOES":D$(5)="GALACTIC RECORDS"
80 INPUT"PLEASE ENTER A RANDOM NUMBER ";E$:I=ASC(E$)
90 I=I-11*INT(I/11):FOR J=0 TO I:K=RND(1):NE... |
Attribute VB_Name = "modXAccess_07_10_Funcs"
Option Compare Database
Option Explicit
Private Const THIS_NAME As String = "modXAccess_07_10_Funcs"
'VGC 11/23/2016: CHANGES!
' **************************************
' ** VGC 01/13/2013:
' ** NOTE REQUIRED ZZ_'S IN THIS MOD:
' ** zz_qry_System_19_01
' ** ... |
From P.Rocha@ucl-cs.UUCP Fri Jul 7 15:29:24 1989
From: P.Rocha@ucl-cs.UUCP
Subject: Electricity Basics
From: P.Rocha@uk.ac.ucl.cs
I found this on 'The Institute', the IEEE news supplement to
IEEE Spectrum (V13, N4, April 1989). It really made me revise
my concepts of Electricity. I hope you will enjoy it !
Paulo
... |
0 PRINT"{clear}{yellow}fghijk{space*7}{green}pqrst":POKE53280,0:POKE53281,0:V=53248
1 PRINT"{home}{down}{yellow}mino l{purple}":POKEV+24,28:FORI=12288TO12463:READQ:POKEI,Q:NEXT
2 FORI=12544TO12551:POKEI,0:NEXT
3 POKE54273,0:FORI=12672TO12751:READQ:POKEI,Q:NEXT
4 POKEV+21,7:POKE2040,208:POKE2041,209:POKEV+39,8:POKEV+40,... |
!!
This file contains executable examples
Array operations. Examine the code
and run then run this program.
Arrays must dimensioned (DIMed) before
the can be used. The DIM tells the
program how many lists or lists
of lists you will want.
!!
DIM array_1[10]
DIM array_2[10, 5], array_3[10,5,3]
! The following exampl... |
0 REM Reconfiguration Upload Program
0 REM defaults setting for mode
0 REM uncomment the one you want to use as default
0 REM service slave
2 1110
0 REM service master
0 REM 2 3110
0 REM cable slave
0 REM 2 1010
0 REM cable master
0 REM 2 3010
0 REM idle
0 REM 2 0010
0 REM $5 stores the name of the dev... |
CHDIR ".\programs\samples\pete\nlcm2006"
DECLARE SUB managerInfo ()
DECLARE SUB playerSalary ()
DECLARE SUB finance ()
DECLARE SUB endOfSeason ()
DECLARE SUB training ()
DECLARE SUB loadGame ()
DECLARE SUB saveGame ()
DECLARE SUB batOrder ()
DECLARE SUB statistics ()
DECLARE SUB groupTables ()
DECLARE SUB ... |
DECLARE SUB zkreis (xm!, ym!, r!, f!) '=CIRCLE
DECLARE SUB einst () 'Einstellungen
DECLARE SUB zeichne () 'Zeichnet
DECLARE FUNCTION kurz$ (zahl!) 'Wandelt Zahl in kurzen String um
DECLARE SUB tabelle () 'Erstellt Tabelle
DECLARE SUB rechne () '... |
2 PRINT TAB(30);"TIC-TAC-TOE"
4 PRINT TAB(15);"CREATIVE COMPUTING MORRISTOWN, NEW JERSEY"
6 PRINT:PRINT:PRINT
8 PRINT "THE BOARD IS NUMBERED:"
10 PRINT " 1 2 3"
12 PRINT " 4 5 6"
14 PRINT " 7 8 9"
16 PRINT:PRINT:PRINT
20 DIM S(9)
50 INPUT"DO YOU WANT 'X' OR 'O'";C$
55 IF C$="X"THEN 475
60 P$="O":Q$="X... |
PROGRAM TestMore
OPEN "LANDER28G.TXT" FOR INPUT AS FILE #1%
DECLARE STRING inLine
WHEN ERROR IN
WHILE -1%
INPUT LINE #1, inLine
PRINT inLine
NEXT
USE
IF ERR = 11%
THEN
PRINT "Finished"
ELSE EXIT HANDLER
END IF
END WHEN
END PROGRAM
|
20 OPEN "ύΥΛΑ" FOR APPEND AS#1
30 INPUT"A=";A:INPUT"B$=";B$:INPUT"C=";C
50 PRINT #1,A;",";B$;",";C
55 IF C<>0 THEN 30 ELSE CLOSE #1
|
1 %TITLE "Location Balances"
%SBTTL "IC_RPRT_SHEET2_KBJ"
%IDENT "V3.6a Calico"
!
! COPYRIGHT (C) 2000 BY
!
! Software Solutions, 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 of th... |
* ENCODING=ISO-8859-1
NAME ../miplib2010_pre_intslacks/rmine6.pre.mps.gz Iterations 1339 Rows 6763 Cols 7821
XL x_B0_t3 gprec_B0_B37_t2
XL x_B0_t4 gprec_B0_B43_t2
XL x_B0_t5 gprec_B0_B42_t2
XL _sgprec_B65_B107_t3 gprec_B0_B36_t2
XL x_B1_t5 ... |
-- Test mid$
10 print "ErrorCase startPos < 0 => "; mid$("error",-1,2)
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.