text stringlengths 7 5.36M |
|---|
BITMAP ENABLE(16)
CLS BLACK
COLOR BORDER BLACK
INK WHITE
CONST w = SCREEN TILES WIDTH - 5
CONST h2 = IF(SCREEN TILES HEIGHT>24,2,1)
joystick = LOAD IMAGE("joystick4.png")
LOCATE 0,10: CENTER "A TUTTO IL GRUPPO DI"
LOCATE 0,12: CENTER "RetroProgramming Italia"
LOCATE 0,14: CENTER "RP Italia (A division of RetroCampus... |
1 LET R=C1=Y=0
85 PRINT "INSTRUCTIONS ARE: 0-NO HIT; 1-HIT; 2-DOUBLE; AND"
90 PRINT "3-SPLIT A PAIR."
151 PRINT "WHAT NUMBER BETWEEN 1 AND 1000 IS LUCKY FOR YOU TODAY";
152 INPUT Y
153 IF ABS(1000*RND(1)+1-Y)>1 THEN 153
155 LET K=0
160 LET W1=0
170 LET N=INT(1945*RND(0)+1)
175 PRINT
200 LET X=INT(10*RND(0))... |
1 %TITLE "Category"
%SBTTL "PO_MAIN_CATEGORY"
%IDENT "V3.6a Calico"
FUNCTION LONG PO_MAIN_CATEGORY(CDD_WINDOW_CDD SMG_WINDOW, LONG MOPTION, &
LONG MLOOP, LONG MFLAG, STRING MVALUE)
!
! COPYRIGHT (C) 1990 BY
!
! Computer Management Center, Inc.
! Idaho Falls, Idaho.
!
! This software is furnished under a l... |
10 INPUT A,B,H
20 FOR I=A TO B STEP H
30 I=I^2:NEXT:PRINTI
|
100 DEFINTA-Z:COLOR15,4,7:SCREEN1:WT=2000
110 FORI=0TO30STEP2:VPOKE&H3800+I,&HAA:VPOKE&H3801+I,&H55:NEXT
120 V1=VDP(1)AND&HFC:PUTSPRITE0,(0,0),15,0
130 '
140 VDP(1)=V1+0:GOSUB180
150 VDP(1)=V1+1:GOSUB180
160 VDP(1)=V1+2:GOSUB180
170 VDP(1)=V1+3:GOSUB180:GOTO140
180 FORI=0TOWT:NEXT:RETURN
|
atom=Cu
contraction shell=S num_primitives=1 num_coefficients=1
0.0154 1.0
contraction shell=P num_primitives=1 num_coefficients=1
0.0140 1.0
contraction shell=D num_primitives=1 num_coefficients=1
0.0426 1.0
contraction shell=F num_primitives=1 num_coefficients=1
0.2615 1.0
contraction shell=G num_primitives=1 num_coe... |
Version =20
VersionRequired =20
Begin Form
AutoResize = NotDefault
PopUp = NotDefault
Modal = NotDefault
RecordSelectors = NotDefault
AutoCenter = NotDefault
NavigationButtons = NotDefault
DividingLines = NotDefault
DefaultView =0
ScrollBars =0
ViewsAllowed =1
TabularFamily ... |
print "Play with one hand on each side of the keyboard."
print "Move: adws";
print "Shoot: i"
rem score variables
killedenemycount = 0
lettercolor = "black"
letterheight = 5
letterwidth = 4
numberofdigits = 3
timeinseconds = 0
drawingtime = false
gosub 1900
ARRAY enemyxs
ARRAY enemyys
enemycount = 0
ARRAY bulletxs
AR... |
Attribute VB_Name = "ONSMAC"
'Option Explicit
'
'---------------------------------------------------------------------------
' Used to get the MAC address.
'---------------------------------------------------------------------------
'
Private Const NCBNAMSZ As Long = 16
Private Const NCBENUM As Long = &H37
Private Cons... |
Operation =1
Option =0
Where ="(((tbl_Locations.Location_type)<>'Incidental' And (tbl_Locations.Location_type)<"
">'Origin'))"
Having ="(((tbl_Sites.Park_code)='LEWI' Or (tbl_Sites.Park_code)='SAJH'))"
Begin InputTables
Name ="tbl_Sites"
Name ="tbl_Locations"
Name ="qasub_Events_scope_filter"
End
Begin... |
CLS
PRINT "Enter 3 numbers"
INPUT A
INPUT B
INPUT C
LET SUM = A + B + C
LET AVG = SUM / 3
PRINT "SUM", SUM
PRINT "AVERAGE", AVG
END
|
1 REM HAIKU, Vers. 1.2
2 REM from Experiments in Artificial Intelligence for Small Computers by John Krutch
3 REM ported to BBC BASIC by lurkio @ Stardot, 2021-12-07
5 *FX15
6 MODE 7:PRINT TAB(0,9)"Press a key...";:T=TIME:REPEATUNTILTIME-T>600ORINKEY(0)<>-1:IFRND(-TIME)
10 REM Supervisor
20 GOSUB 120:REM Initializ... |
CLS
DIM array(10)
FOR i = 1 TO 10
array(i) = i
NEXT i
REM ///////////////////////////////////
REM Your Code Start
REM ///////////////////////////////////
REM ///////////////////////////////////
REM Your Code End
REM ///////////////////////////////////
END
|
Attribute VB_Name = "ShareMacros"
'#If VBA7 Then
' Private Declare PtrSafe Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long)
'#Else
' Private Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long)
'#End If
Private Sub SendMacro()
'Send the user's macro to to Google Sheets
Dim HttpRequest ... |
CLS
OPEN "1085.in" FOR INPUT AS #1
OPEN "1085.out" FOR OUTPUT AS #2
INPUT #1, n
ans = 0
FOR i = n - 1 TO 1 STEP -1
ans = ans + i
NEXT i
PRINT #2, LTRIM$(STR$(ans))
CLOSE #1
CLOSE #2
END
|
! BeckBasic_PlotFunc.bas,6/3/18m
!flagOri = 0
flagOri = 1 ;Portrait
GOSUB openScreen
GOSUB userfunctions
! Create sine function to work with.
_2pi = 2*3.14159
aa = 600
DIM x [ aa ]
DIM y [ aa ]
FOR i = -_2pi TO _2pi STEP 0.10
ctr +... |
10 ! &
! Program name: rep5 Compiled with SCALE 0 on V09.3 &
! Decompiled on 28-Nov-16 at 05:11 PM
30 ON ERROR GOTO 19000 &
\ JUNK$=SYS(CHR$(6%)+CHR$(-7%)) &
\ TEMP$=SYS(CHR$(12%)) &
\ PRJPRG$=MID(TEMP$,23%,2%)+NUM1$(ASCII(MID(TEMP$,25%,1%)))+":"+"["+NUM1$(ASCII(MID(TEMP$,6%,1%)))+","+NUM1$(ASCII(MID(TEMP... |
Check E1E209D7
Auto 8224
# Run-time Variables
Var adr: Num = 50000
# End Run-time Variables
10 INPUT "adr=";adr
50 PRINT "adr=";adr
60 PRINT "high=";FN l(adr)
70 PRINT "low=";FN h(adr)
100 DEF FN h(n)=INT (n/256)
101 DEF FN l(n)=n-(FN h(n)*256)
|
0 PRINT CHR$(147)
10 M=RND(1)
11 A=0
12 B=0
20 IF M<0.6 THEN 1000
30 GOTO 2000
1000 A=INT(RND(1)*99+1)
1010 B=INT(RND(1)*99+1)
1020 IF A<B THEN C=A:A=B:B=C
1030 PRINT STR$(A)+" - "+STR$(B)
1040 INPUT E
1045 T=A-B
1050 IF T=E THEN PRINT"STIMMT":GOTO 10
1060 GOTO 1030
2000 A=INT(RND(1)*10+1)
2010 B=INT(RND(1)*10+1)
2030 ... |
10 PRINT TAB(30);"STOCK MARKET"
20 PRINT TAB(15);"CREATIVE COMPUTING MORRISTOWN, NEW JERSEY"
30 PRINT: PRINT: PRINT
100 REM STOCK MARKET SIMULATION -STOCK-
101 REM REVISED 8/18/70 (D. PESSEL, L. BRAUN, C. LOSIK)
102 REM IMP VRBLS: A-MRKT TRND SLP; B5-BRKRGE FEE; C-TTL CSH ASSTS;
103 REM C5-TTL CSH ASST... |
1 %TITLE "Insert Help Message from a Text Library in the Source Module"
%SBTTL "HELP_INSERTSOURCE"
%IDENT "V3.6a Calico"
FUNCTION LONG HELP_INSERTSOURCE(LIBR.NAME$,KEY.NAME$)
!
! COPYRIGHT (C) 1987 BY
! Computer Management Center, Inc.
! Idaho Falls, Idaho.
!
! This software is furnished under a license and ... |
IL = 60: CL = 151: NL = 59: RL = 33: MX = 5: AR = 11: TT = 13: LN = 3: LT = 125: ML = 71: TR = 3
DIM NV(1), C0%(151), C1%(151), C2%(151), C3%(151), C4%(151), C5%(151), C6%(151), C7%(151)
DIM NV$(59, 1), IA$(60), IA(60), RS$(33), RM(33, 5), MS$(71), NT$(1), I2(60)
SCREEN 0, 0, 0, 0: COLOR 7, 0, 0: WIDTH 8... |
COMMON t AS INTEGER
COMMON x AS SINGLE
COMMON d AS SINGLE
COMMON b1 AS INTEGER
COMMON b2 AS INTEGER
COMMON a AS SINGLE
COMMON c AS SINGLE
COMMON e AS SINGLE
SCREEN 9
CLS
t = 1
b1 = 1
pi = 3.1415927#
10
SCREEN 9, , b1, b2
CLS
SWAP b1, b2
WINDOW (-90 / t, -90 / t)-(90 / t, 90 / t)
a = .51
b =... |
' IchigoJam Song | IchigoJam BASIC
' Copyright (c) 2016 Keiichi Shiga (BALLOON | FU-SEN)
' The MIT License (MIT) - https://mit.balloon.net.eu.org/#2016
10 'IchigoJam ノ ウタ
20 BEEP RND(100)+1,30
30 WAIT 30
40 GOTO 10
|
REM File: .bas
REM Data:
REM Programmer: Yuriy Lomako
REM Description:
REM -------------------------------------------------------------------
5 CLS
10 FOR a = 0 TO 10 STEP 3
20 x = a * 5
30 PRINT a, x
40 NEXT a
|
10 X=5.08:Y=15.5
20 PRINT "עותץלרפבפש"
30 PRINT "X = ";X,"Y = ";Y
31 PRINT "X = "X"Y = "Y
40 END
|
Attribute VB_Name = "WEB_STRING_MATH_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.
'***********************************************************... |
Version =20
VersionRequired =20
PublishOption =1
Checksum =-758976877
Begin Form
AllowFilters = NotDefault
RecordSelectors = NotDefault
NavigationButtons = NotDefault
AllowDeletions = NotDefault
DividingLines = NotDefault
AllowAdditions = NotDefault
AllowEdits = NotDefault
AllowDesignCh... |
REM PROGRAMA GENERADOR DE FIGURAS DE REVOLUCION
REM PASO: NUMERO DE LADOS PARA LAS BASES
PASO = 15
REM CALCULAMOS LAS CONSTANTES
RESTORE DATOS
PI = 3.141591 / 180
READ NDISCOS
TOTV = NDISCOS * PASO
DIM V(TOTV, 2)
PASO2 = 360 / PASO
REM CALCULAMOS LOS VERTICES DE LA FIGURA
FOR F = 0 TO NDISCOS - 1... |
!--------------------------------------------------
!- 27 October 2019 08:06:27
!- Import of : GAL.PRG
!- From Disk : c:\users\marka\games\c64\cbmprg\cassette50reboot\galdogfight.d64
!- Commodore 64
!--------------------------------------------------
10 POKE53280,0:POKE53281,0:PRINT"{clear}{down}";
11 POKE649,1:... |
DEFINT A-Z
DECLARE SUB Espera ()
DECLARE SUB Center (row, text$)
DECLARE SUB Box (Row1%, Col1%, Row2%, Col%)
DECLARE SUB BorraBox (Row1%, Col1%, Row2%, Col%)
DECLARE SUB MarcaVencimiento ()
DECLARE FUNCTION MeteDatoLetra$ (fila%, columna%, largo%, caden$)
DECLARE FUNCTION EntraDatoNumero$ (fila%, columna%, largo... |
Version =21
VersionRequired =20
Begin Form
AutoCenter = NotDefault
AllowDesignChanges = NotDefault
ScrollBars =2
ViewsAllowed =1
TabularFamily =124
PictureAlignment =2
DatasheetGridlinesBehavior =3
GridX =24
GridY =24
Width =8099
DatasheetFontHeight =9
ItemSuffix =13
... |
SCREEN 12
REM ---Charakterwerte holen------
DIM skill$(80), skill(80), cargo$(30)
OPEN "inter.bas" FOR INPUT AS #1
INPUT #1, name$
INPUT #1, ship$
FOR i = 1 TO 80
INPUT #1, skill$(i)
INPUT #1, skill(i)
NEXT i
FOR i = 1 TO 6
INPUT #1, stat$(i)
INPUT #1, stat(i)
NEXT i
INPUT #1, file$
INPUT #1, cred: INP... |
10 GOSUB 30:PRINT 1:END
20 PRINT 2:END
30 POKE (&HF0A0-4),&H10'Адрес перехода
40 RETURN 'изменен с адреса &H800A на'адрес &H8010
|
10 s=54272:for l=s to s+24:pokel,0:next
20 dim h(2,200),l(2,200),c(2,200)
30 dim fq(11)
40 v(0)=17:v(1)=65:v(2)=33
50 poke s+10,8:poke s+22,128:poke s+23,244
60 for i=0 to 11:read fq(i):next
100 for k=0 to 2
110 i=0
120 read nm
130 if nm=0 then 250
140 wa=v(k):wb=wa-1:if nm<0 then nm=-nm:wa=0:wb=0
150 dr%=nm... |
DECLARE SUB trans (flag!, c!)
DECLARE SUB keyboard (pacx!, pacy!, way!, newway!, key$)
DECLARE SUB checkmap (pacx!, pacy!, way!, ballx!(), bally!(), ballxold!(), ballyold!(), ballcount!(), ballway!(), points!, finish!, value!(), rotateindex!)
DECLARE SUB loadmap (map$(), marker!, letter!())
DECLARE SUB winner (letter!(... |
Version =21
VersionRequired =20
Begin Form
RecordSelectors = NotDefault
AutoCenter = NotDefault
NavigationButtons = NotDefault
AllowDeletions = NotDefault
FilterOn = NotDefault
DefaultView =0
TabularFamily =124
PictureAlignment =2
DatasheetGridlinesBehavior =3
GridX =24
Grid... |
' Program "DEMOPOLY" December 29, 1990
'
' Copyright (c) 1988, 1989, 1990 Crescent Software
'
' This program demonstrates the procedure for calling
' subroutines QUADRATIC, CUBIC and QUARTIC which solve for
' the real roots of quadratic, cubic and quartic equations.
'
'********************************... |
1 CLS
10 PRINT "Willkommen bei VeP 1.0"
20 INPUT "Kennst du dich mit VeP aus (j/n) "; w$
30 IF w$ = "n" THEN GOTO 65
40 IF w$ = "j" THEN GOTO 120
45 PRINT w$; "? Du hast zu dicke Finger!"
50 GOTO 20
65 CLS
70 PRINT "Gebrauchsanweisung"
80 PRINT "Gebe die Nummer deines Systems an (2-16)."
85 PRINT "Eine Ziffer... |
Attribute VB_Name = "modLinedTextBox"
Option Explicit
' *********************************************************************************
' modLinedTextBox - a module to add line numbers to the common textbox.
' *********************************************************************************
'
' Author: G. D. Seve... |
REM chi-squared distribution
SCREEN 9
DEF FNf (x) = .39894228# * EXP(-.5 * x ^ 2)
PSET (445, 215)
FOR z = -.75 TO 3 STEP .1
LINE -((100 * z / 3 + 500), -110 * FNf(z) + 200)
NEXT
PSET (445, 215): LINE -STEP(200, 0): PSET (445, 215): LINE -STEP(0, -75)
LOCATE 17, 55: PRINT 0: LOCATE 17, 69: PRINT "xý"
FOR z = -.... |
1 %TITLE "Maintain Accounts Payable Control Record"
%SBTTL "AP_MAIN_CONTROL"
%IDENT "V3.6a Calico"
FUNCTION LONG AP_MAIN_CONTROL(CDD_WINDOW_CDD SMG_WINDOW, &
LONG MOPTION, LONG MLOOP, LONG MFLAG, STRING MVALUE)
!
! COPYRIGHT (C) 1987, 1988 BY
!
! Computer Management Center, Inc.
! Idaho Falls, Idaho.
!
! ... |
CLS
DIM Inpt AS STRING * 1
OPEN "bob.raw" FOR BINARY AS #1
OPEN "bob.qad" FOR BINARY AS #2
FOR a = 0 TO 29
FOR i = 1 TO 30
GET #1, i + (a * 60), Inpt
PUT #2, i + (a * 30), Inpt
NEXT i
NEXT a
CLOSE #2
CLOSE #1
|
1 REM KALEIDOSCOPE EXAMPLE PROGRAM
2 REM FROM PAGE 111
3 REM TRS-80 MC-10 MICRO COLOR COMPUTER
4 REM OPERATION AND LANGUAGE REFERENCE MANUAL
10 CLS0
20 X=RND(32)-1
30 Y=RND(16)-1
40 Z=RND(9)-1
50 GOSUB90
60 GOTO20
90 IFZ=0 OR RND(7)=3THEN150
100 SET(31-X,16+Y,Z)
110 SET(31-X,15-Y,Z) : REM BUGFIX '+' WITH '-'
120 SET(... |
10 REM Just for fun: Zeichne Linien
20 USING$:CLS:PRINT CHR$(27),'f':FOR i=1 TO 25:PRINT:NEXT
30 x1=RAND 256:x2=RAND 256:y1=RAND 176:y2=RAND 176
40 xf1=1:yf1=1:xf2=1:yf2=1:t1=PEEKL $4BA:t2=t1
50 WHILE
60 t=PEEKL $4BA
70 IF t>t1 THEN t1=t+500:PRINT:y1=y1+8:y2=y2+8
80 IF t>t2 THEN t2=t+40 ELS... |
10 REM IF STATEMENT WITH INVALID SUBSTATEMENT
20 IF A < 7 THEN 99 ELSE DATA 20,30,40
99 END
|
Version =20
VersionRequired =20
PublishOption =1
Checksum =531847037
Begin Form
RecordSelectors = NotDefault
MaxButton = NotDefault
MinButton = NotDefault
AutoCenter = NotDefault
NavigationButtons = NotDefault
DividingLines = NotDefault
AllowDesignChanges = NotDefault
ScrollBars =0
... |
FUNCTION MultiText$ (FileName$, Temp&)
fc% = FileOPEN(FileName$, "I")
LINE INPUT #fc%, TempT$
Items& = VAL(TempT$)
FOR i& = 1 TO Temp&
LINE INPUT #fc%, TempT$
NEXT
MultiText$ = TempT$
CLOSE fc%
END FUNCTION
|
CLS
LET a.x = 60
LET a.y = 40
LET b.x = 50
LET b.y = 20
boom:
CLS
SCREEN 13
PSET (a.x, a.y), 2
PSET (b.x, b.y), 3
c.go$ = INKEY$
SELECT CASE c.go$
CASE "W"
PSET (a.x, a.y - 5), 2
CASE "S"
PSET (a.x, a.y + 5), 2
CASE "A"
PSET (a.x - 5, a.y), 2
CASE "D"
PSET (a.x + 5, a.y), 2
END SELE... |
10 D$ = CHR$ (4):G$ = " ":SU = 0
20 PRINT D$;"OPEN INPUT.TXT"
30 PRINT D$;"READ INPUT.TXT"
40 ONERR GOTO 2000
50 INPUT S$:F$ = LEFT$ (S$,1): GOSUB 1000
60 INPUT S$: GOSUB 1000
70 GOTO 60
990 END
1000 X$ = G$
1010 FOR I = 1 TO LEN (S$)
1020 Y$ = MID$ (S$,I,1)
1030 IF X$ = Y$ THEN SU = SU + VA... |
cls
screen 1
COLOR 14,1
LOCATE 2,2
INPUT " ZAKÓDUJTE ALARM " ;KOD$
ZPED:
SCREEN 1
COLOR 14,1
LOCATE 2,2
cls
INPUT " ODKÓDUJTE ALARM " ;UNKOD$
IF UNKOD$=KOD$ THEN GOTO NOTALARM
SOUND 1000+12,100
GOTO ZPED
NOTALARM:
END |
Version =20
VersionRequired =20
Begin Report
LayoutForPrint = NotDefault
DividingLines = NotDefault
AllowDesignChanges = NotDefault
DateGrouping =1
GrpKeepTogether =1
PictureAlignment =2
DatasheetGridlinesBehavior =3
GridX =24
GridY =24
Width =11400
DatasheetFon... |
1 REM SIMPLEX
2 CLEAR ' 1000
3 CLS
10 CLS:PRINT TAB(10);"LINEAR PROGRAMMING":PRINT
20 PRINT "LINEAR PROGRAMMING IS A MATHEMATICAL TOOL DESIGNED TO HELP
25 PRINT "MANAGEMENT TO MAKE OPTIMUM USE OF COMPETING RESOURCES.
30 PRINT "IT IS A VERY POPULAR TECHNIQUE AND INVOLVES LINEAR INEQUALITIES
35 PRINT "CAL... |
3000 ' ------------------------------------------------------------------
3010 ' -- Subroutine: PARAKEET (stepped loop technique)
3020 ' -- Requires: (nothing) Returns: (nothing)
3030 FOR K = 1 TO 2 ' -- Chirp twice
3040 FOR J = 1 TO 2
3050 FOR I = 2600 TO 2200 STEP -50
3060 ... |
Attribute VB_Name = "Protocol"
'**************************************************************
' Protocol.bas - Handles all incoming / outgoing messages for client-server communications.
' Uses a binary protocol designed by myself.
'
' Designed and implemented by Juan Martín Sotuyo Dodero (Maraxus)
' (juansotuyo@gmail.... |
'- Catloaf 2600
'- 2007 - Joe King
'- Delta Code (http://deltacode.sytes.net)
'-----------------------------------------
'-----------------------------------------
DECLARE SUB GFX_DrawSprite(x AS INTEGER, y AS INTEGER, n AS INTEGER)
DECLARE SUB GFX_WriteText(text AS STRING, y AS INTEGER, col AS INTEGER)
DECL... |
REM File: .bas
REM Data:
REM Programmer: Yuriy Lomako
REM Description:
REM -------------------------------------------------------------------
5 CLS
10 FOR a = 1 TO 50
20 PRINT "privet"
30 NEXT a
|
Version =20
VersionRequired =20
Begin Form
AllowDesignChanges = NotDefault
DefaultView =2
ViewsAllowed =2
TabularFamily =103
PictureAlignment =2
DatasheetGridlinesBehavior =3
GridX =24
GridY =24
Width =4539
DatasheetFontHeight =10
ItemSuffix =30
Right =13515
Bottom =... |
10 A=100000
20 B=10
30 PRINT A/B
|
REM
REM --- Tiny BASIC Interpreter and Compiler Project
REM --- Lunar Lander Demonstration Game
REM
REM --- Released as Public Domain by Damian Gareth Walker 2019
REM --- Created: 15-Aug-2019
REM
REM --- Variables:
REM A: altitude
REM B: fuel to burn this turn
REM ... |
CLS
INPUT "This is a guessing game. You have 5 chances to guess the correct number between 0 and 5. Push any key when ready.", f$
PRINT
PRINT
PRINT
PRINT
PRINT
PRINT
PRINT
PRINT
PRINT
COLOR 15
PRINT " Fatal error. Internal virus installing...": SLEEP 4: SOUND 1000, 1: PRINT "Install complete."
SLEEP 1
CLS... |
atom=H
contraction shell=S num_primitives=1 num_coefficients=1
0.0207 1.0000
contraction shell=P num_primitives=1 num_coefficients=1
0.0744 1.0000
contraction shell=D num_primitives=1 num_coefficients=1
0.1560 1.0000
contraction shell=F num_primitives=1 num_coefficients=1
0.2740 1.0000
contraction shell=G num_primitive... |
'{$STAMP BS1}
INPUT 0 'Definiere PIN0 als Eingabe für die Taste 0
start: IF PIN0 = 1 THEN show7 'Falls Taste 1 gedrückt gehe zu show7
GOTO start
show7: FOR B2 = 0 TO 10 'Zähle B2 von 0 bis 10
HIGH 7
PAUSE 500
LOW 7
PAUSE 500
... |
5 rem not working
10 dim a(8,8)
20 for i=1 to 8:for j=1 to 8
30 a(i,j)=0
40 next j:next i
50 a(1,7)=-1:a(2,7)=-1:a(6,7)=-1:a(7,7)=-1:a(8,7)=-1
55 a(6,8)=-5:a(7,8)=-255:a(3,6)=-3:a(4,6)=-3:a(5,6)=-9
60 a(1,2)=-1:a(2,4)=1:a(3,3)=1:a(2,1)=255
65 a(5,3)=3:a(8,3)=9:a(3,1)=5
70 gosub 1000
80 print"evaluation= ";q
... |
1 REM Saddle Curve
100 FINPUT"CHOOSE VIEW POSITION"'"X="%L,"Y="%M,"Z="%N
110 FINPUT"LOOKING TOWARDS"'"X="%A,"Y="%B,"Z="%C
115 %L=%L-%A;%M=%M-%B;%N=%N-%C
120 W=4;CLEAR4
150 %S=%L*%L+%M*%M;%R=SQR%S
160 %T=%S+%N*%N;%Q=SQR%T
200 FORX=-10TO10
210 Y=-10;GOS.c;GOS.m
220 FORY=-9TO10;GOS.c;GOS.p;N.;N.
23... |
10 :REM'CONCUR - Constant Current Op Amp - 10 OCT 06
20 CLS:KEY OFF
30 IF EX$=""THEN EX$="EXIT"
40 IF PROG$=""THEN GO$=EX$ :ELSE GO$=PROG$
50 COMMON EX$,PROG$
60 UL$=STRING$(80,205)
70 :REM'
80 :REM'.....title page
90 CLS
100 COLOR 15,2,1
110 PRINT " CONSTANT CURRENT OP AMP CIRCUIT"TAB(61)"by R.J.Dehoney IEEE ";
120 CO... |
'********* InCount.Bas - counts number of occurrences of one string in another
'Copyright (c) 1988 Ethan Winer
DEFINT A-Z
DECLARE FUNCTION InCount2% (Source$, Search$) 'InCount% is case-sensitive
CLS
Source$ = "This tests the number of times a test string is found by testing."
Search$ = "TEST"
Count = InCount2%... |
* ENCODING=ISO-8859-1
NAME instances/miplib3/misc03.pre.mps.gz Iterations 55 Rows 95 Cols 223
XL _sROW007 ROW002
XL COL003 ROW003
XL COL097 ROW004
XL COL005 ROW005
XL COL134 ROW006
XL _sROW011 ROW007
XL COL119 ROW008
XL _sROW014 ROW009
XL _sROW015 ROW010 ... |
'**********************************************************
'*
'* Program :Port in/uit demo
'* Author :Arjan Vuik
'*
'**********************************************************
'header
$regfile "m8def.dat" 'ATmega8
$crystal = 80000000 ... |
10 PRINT " HURKLE"
20 PRINT " (C) CREATIVE COMPUTING"
25 PRINT "ADAPTED FOR MC-10 BY CHRIS HAVEL"
30 PRINT
110 N=7
120 G=10
210 PRINT
220 PRINT "A HURKLE IS HIDING ON A";G;"BY";G
225 PRINT "GRID. HOMEBASE ON THE GRID IS"
230 PRINT "POINT 0,0 AND ANY GRIDPOINT IS A"
240 PRINT "PAIR OF WHOLE NUMBERS SEPAR... |
1 %TITLE "Product On Order Report"
%SBTTL "IC_OUTP_ORDER"
%IDENT "V3.6a Calico"
FUNCTION LONG IC_OUTP_ORDER(PD_PRODUCT_CDD PD_PRODUCT, &
UTL_LOCATION_CDD UTL_LOCATION, &
STRING SYSTEM)
!
! COPYRIGHT (C) 1992 BY
!
! Computer Management Center, Inc.
! Idaho Falls, Idaho.
!
! This software is furnished und... |
5 ONERRORGOTO2000:DEFSEG=0
10 CLS:MODE8:DIM:ERASEa,b,d:DIMa(1,1),b(1,1),d(1,1):m=1:n=1:o=1:p=1:q=1:r=1:c$=CHR$(5):e=1
40 GOSUB460:GOSUB470:GOSUB420
50 LOCATE0,0:PRINTc$;"Matrix A";m$;":B";n$;
60 LOCATE28,1:z=ASC(INPUT$(1)):IFz>96 THENz=z-32
100 ONz-41 GOTO1250,1300,,1350,1500,,,,,,,,,,,,,,,,,,,120,130,700,800,,,,,800,... |
'' piano.bas
''
'' Piano
'' Variables
' Número de teclas pulsadas
Dim nPlayed as uByte = 0
' Turno
Dim tPiano as uByte = 0
' Dirección de memoria
Dim addr as uInteger
' Color
Dim color as Byte
Dim key (7) as uByte => { _
0, 0, 0, 0, 0, 0, 0, 0 _
}
Dim keySharp (4) as uByte => { _
0, 0, 0, 0, 0 _
}
D... |
10 REM **SUPERFROG
20 REM **BY ARMANDO FOX
30 REM **<C> 1983, ALL
40 REM **RIGHTS RESERVED
50 REM **
60 TEXT : HOME : NORMAL
70 IF PEEK (768) + 256 * PEEK (771) < > 35360 THEN PRINT CHR$ (4);"BLOAD FROG.SOUND,A$300"
80 LS = 768:RS = 803
90 GOTO 110
100 HTAB (40 - LEN (A$)) / 2: PRINT A$: RETURN
110 VT... |
110 GOTO 200
200 LET a = 2 + 3
210 LET b = a + 1
215 LET c = a+b
230 PRINT a + 3
90 PRINT "abs"
100 GOTO 400
20 INPUT a
30 INPUT b
40 INPUT c
250 PRINT a + b * c + 3
400 IF a=3 THEN 30
410 ELSEIF a = 4 THEN 20
420 ELSE THEN 40
430 ENDIF
205 WHILE IF B=3
220 END WHILE |
'==============PROGRAM TO PRINT OUT TEAM RANKINGS 3/25/2006
'==============NAME: NFLRANK.BAS
DIM TM(1:4,1:17,1:3),T$(1:17),F$(1:17),A$(1:17),STD(1:8,1:4,1:7),_
AFC(1:16,1:7),NFC(1:16,1:7),TEAM$(0:84),NFL(1:8,1:4)
'----------------------
CLS
COLOR 11:LOCATE 10,20:INPUT"FOR DIV RANK ONLY ENTER (R) ",TS$
CLS
D... |
10 FOR X=1 TO 10
20 PRINT RND(5),
30 NEXT X
40 END
|
LET 循环次数 = 5
DIM 电流(循环次数) AS DECIMAL
FOR 索引 = 1 TO 循环次数
电流(索引 - 1) = 索引 / 2 + 1
END FOR
V = 180
PRINT V \ 2 - 4, " ", 5
FOR 索引 = 1 TO 循环次数
PRINT " # ", 电流(索引 - 1)
END FOR
|
CLS
OPEN "strm.in" FOR INPUT AS #1
OPEN "strm.out" FOR OUTPUT AS #2
INPUT #1, m, n
DIM a$(m)
FOR i = 1 TO m
INPUT #1, a$(i)
NEXT i
INPUT #1, p, k
b$ = a$(p)
PRINT #2, MID$(b$, k, 1)
END
|
CLS
SCREEN 9
FOR c = 14 TO 1 STEP -1
PSET (300, 170): COLOR c, 0
FOR s = 0 TO 126 STEP .005
x = 229 * SIN(s) + 300
y = 148 * COS(s) * SIN(s * .95) + 150
LINE -(x, y + 20)
NEXT: NEXT
PSET (300, 170): COLOR 15, 0
FOR s = 0 TO 126 STEP .001
x = 229 * SIN(s) + 300
y = 148 * COS(s) * SIN(s * .95) + 150
LINE -(x... |
1 %TITLE "General Ledger Financial Report Writer"
%SBTTL "GL_RPRT_GENFIN"
%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... |
5 rem from page 73 in book 1 and 2, but does not appear to work
10 s=54272 : poke s+24,15
20 poke s+5,0 : poke s+6,240
30 poke 53280,0 : poke 53281,0
40 poke s+4,16 : print chr$(147)
50 for r=3 to 18
60 poke 214,r : print chr$(129)
70 print tab(11);chr$(18);" ";
80 print tab(26);" "
90 poke 214,3 : print : pok... |
CLS
KEY ON
KEY 2, ""
KEY 1, "МЕНЮ"
KEY(1) ON
ON KEY(1) GOSUB VIXOD:
LOCATE 3, 13
PRINT "ДАННАЯ ПРОГРАММА СОСТАВЛЯЕТ ТЕСТЫ НА ЗАДАННУЮ ТЕМУ"
PRINT "\/\/\/\/\/\/\/\/\/\/\/\/\/\//\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/"
FOR EW = 1 TO 123238
NEXT EW
10 CLS
DIM a$(20, 15), m(20), a1(20), d(20), o$(20, 15), ... |
10 rem Loop-and-math benchmark
20 let start = timer
30 let a = 1
40 for i = 1 to 1000
50 let a = a / 2 + a / 3
60 next i
65 print a
70 let finish = timer
80 print finish - start
|
Attribute VB_Name = "wskapiAO"
'**************************************************************
' wskapiAO.bas
'
'**************************************************************
'**************************************************************************
'This program is free software; you can redistribute it and/or modi... |
1 X=A.R.%256;Y=A.R.%192
2 L=A.R.%256;M=A.R.%192
4 G=R.%10;H=R.%10;I=R.%10;J=R.%10
5 DIM A100,B100,C100,D100
6 FOR T=1TO50 ;A?T=0;B?T=0;C?T=0;D?T=0;N.
10 CLEAR 4
20 FOR T=1 TO 50
50 MOVE (C?T),(D?T);PLOT7,(A?T),(B?T)
70 IF L+G>255 OR L+G<0;G=-G
80 IF X+I>255 OR X+I<0;I=-I
90 IF M+H>191 OR M+H<0;H=-H
100 ... |
Attribute VB_Name = "Cipher"
Option Explicit
'CryptAPI用定数定義
Private Const CRYPT_VERIFYCONTEXT As Long = &HF0000000
Private Const ALG_TYPE_BLOCK As Long = 1536
Private Const ALG_CLASS_DATA_ENCRYPT As Long = 24576
Private Const ALG_SID_AES_128 As Long = 14
Private Const ALG_SID_AES_192 As Long = 15
Private Const ALG_SID... |
Version =20
VersionRequired =20
PublishOption =1
Checksum =-253698503
Begin Form
RecordSelectors = NotDefault
NavigationButtons = NotDefault
DividingLines = NotDefault
AllowDesignChanges = NotDefault
DefaultView =0
ScrollBars =0
PictureAlignment =2
DatasheetGridlinesBehavior =3
Cycl... |
0 REM ************************
1 REM * - CCESOFT - *
2 REM *OTTO LONGO SERNATINGER*
3 REM * VERSAO 1.1 04/85 *
4 REM ************************
5 REM * MOLDURA *
6 REM ************************
7 HOME : PRINT : PRINT TAB( 11)"- CCESOFT -": INVERSE : PRINT : PRINT TAB( 13)"MOLDURA... |
'=============================================================================
' DEMOWIN.BAS
'
' Demonstration of PDQComm terminal emulations.
'
' Copyright (c) 1991 Clearware Computing, By David Cleary
'
' Note: In order to run this demo, you must un-comment the SetTTYWindow
' routine in TTYDISP.BAS. See t... |
DECLARE SUB FILECHK (FDRIVE$, FPATH$, FILEN$, FOUND!)
DECLARE SUB OUTFILES ()
DECLARE SUB HLPMSG (F2HELP$)
DECLARE SUB USERHELP ()
DECLARE SUB EXOUT (ANSCODE!)
DECLARE SUB RCELL (IROW!, ISTART!, NS!, TXT$)
DECLARE SUB GETDIR (EXT$, SELECT$, directory$)
DECLARE SUB ACELL (IROW!, ISTART!, NS!, TEXT$, ITYPE!)
DECLARE SUB ... |
10CLS:CLEAR200:DIMA$(8):DIMB$(10):DIMP(10)
20A$(1)=STRING$(6,CHR$(191))
22A$(2)=STRING$(6,CHR$(128))
23A$(3)=CHR$(128)+CHR$(159)+CHR$(128)+CHR$(128)+CHR$(159)+CHR$(128)+CHR$(143)+CHR$(207)
24A$(4)=STRING$(6,CHR$(128))+CHR$(143)+CHR$(207)
25A$(5)=STRING$(6,CHR$(191))+CHR$(143)+CHR$(207)
26A$(6)=CHR$(143) + STRING$(4,CHR... |
'restaura registros de otra base de datos
CLOSE
OPEN "F:\kevinprg\kevindat\new.dbf" FOR RANDOM SHARED AS #1 LEN = 200
FIELD #1, 200 AS all$
OPEN "c:\tmp\new.dbf" FOR RANDOM SHARED AS #2 LEN = 200
FIELD #2, 200 AS todo$
CLS
FOR k = 974 TO 995
GET #2, k: RSET all$ = todo$: PUT #1, k
NEXT k
GET #2, 101... |
'REM test input for basc1.c
*main
1 gosub fib
2 end
*fib
1 i= 1
2 j= 0
3 input m
4 for n= 0 to m
5 print i
6 k= i
7 i= i+j
8 j= k
9 next n
10 return
|
10 REM Exemplo BASIC Classic
20 PRINT "Classic BASIC"
30 END
|
!--------------------------------------------------
!- Saturday, May 20, 2017 1:38:34 AM
!- Import of :
!- c:\src\zelch128\extras\prg.star trek.prg
!- Commodore 128 BASIC 7/7.1
!--------------------------------------------------
20 Q$="{sh +}XV@*"
25 DA$(0)="{purple} Move":DA$(2)="{purple} {sh -} 1.5":DA$(3)=... |
1 %TITLE "Document a Menu"
%SBTTL "TK_DOCU_MENU_RNO"
%IDENT "V3.6a Calico"
!
! COPYRIGHT (C) 1987 BY
! Computer Management Center, 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 the above... |
REM TUIMENU
REM (c) Michel Clasquin-Johnson 2020
REM Released into the Public Domain
REM A menuing program for QuickBasic 4.5 in screen mode 0.
REM this demo presents not one, but TWO menuing systems.
REM The first presents the menus in horizontal overlays, with hotkeys.
REM The second uses hotkeys for the firs... |
'BFI.BAS -- BF program emulator
'slower than BFI2, gearing towards ASM emu
DEFINT A-Z
DIM M(29999): P = 0
DIM G(1000)
'get program data
F$ = COMMAND$
F$ = "C:\BF\SORT.BF"
IF F$ = "" THEN INPUT "Enter filename of BF source [.BF]: ", F$
F = INSTR(F$, "."): IF F = 0 THEN F$ = F$ + ".BF"
OPEN F$ FOR BINARY AS #1
SL = LOF(... |
REM MAZE MAKER (a unique way to generate a maze)
0 GOTO100
1 FORX=1TO30:PRINT:NEXT
4 POKE56900,0
5 POKE130,215:POKE129,64
8 FORI=1TO55
9 A$=A$+CHR$(WL)
10 NEXT
11 FORX=1TO2
12 B$=B$+CHR$(WL)
13 NEXT
20 X=31
25 FORY=0TO32:POKEX+Y*64+SC,32:NEXT
50 RETURN
100 DIMA(3)
110 A(0)=2:A(1)=-128:A(2)=-2:A(3)=128
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.