text stringlengths 7 5.36M |
|---|
15 z$="{home}{down*12}":poke 650,128
20 let lt=999999
30 let hs=0
40 let s=0
50 let po=205
60 print"{clear}";z$;"----------------------------------------"
70 poke 53280,1:poke 53281,3
80 let ti$="000000":l=5
85 let l=5
90 let x= int(rnd(1)*479)+1
110 if x=po then goto 90
115 poke 1024+x,87
120 poke 1024+po,35
130 let ... |
DECLARE FUNCTION WINDOQ! (J!, FACM!, FACP!)
DECLARE SUB FOUR1 (DATQ!(), NN!, ISIGN!)
SUB SPCTRM (P(), M, K, OVRLAP%, W1(), W2()) STATIC
MM = M + M
M4 = MM + MM
M44 = M4 + 4
M43 = M4 + 3
DEN = 0!
FACM = M - .5
FACP = 1! / (M + .5)
SUMW = 0!
FOR J = 1 TO MM
SUMW = SUMW + WINDOQ(J, FACM, FACP) ^ 2
NEXT J
... |
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... |
0 'It Takes a Thief (disk version)
5 'Copyright 1981 Randy Dobkin
10 CLS:PRINT@462,CHR$(23)"It Takes a Thief
20 CLEAR300:RANDOM:DEFINTA-Z
30 GOTO10000
40 DR$="NSEWUD":R=1:TR=1:GOSUB50:GOTO200
50 CLS:IFOB(14,0)<>RANDOB(14,0)<>0PRINT"It's too dark to see!":GOTO130ELSEPRINTR$(R):PRINT
60 IFRO(R)=0THEN100
70 PRINT"Around m... |
10 let a=10
20 for x=1 to a step 1
30 print "LOL!!!"
35 next x
40 end
|
10 DATA X,Y,Z
20 LET = 3 REM FALTA DECLARAR LA VARIABLE
30 PRINT "HOLA QUE TAL?"
40 FOR I = 1 TO Z
50 TAN(3,12346546356) REM NUMERO DE MAS DE 6 DECIMALES
60 RND(Y)
70 NEXT I
80 READ Z$
90 RANDOMIZE
100 RESTORE
110 END |
5 CONST pi = 3.141592654#
10 SCREEN 12
15 RANDOMIZE TIMER
20 x = INT(640 * RND)
30 y = INT(480 * RND)
40 xx = INT(640 * RND)
45 yy = INT(480 * RND)
50 PSET (xx, yy), 14
55 alfa = ATN((yy - y) / (xx + .00001 - x))
56 e = TAN(alfa): IF e < 0 THEN e = -e
60 LOCATE 1, 1: PRINT "Objekt Koordinaten:"; x; y
70 PRIN... |
1 REM THE CLASSIC FIZZBUZZ PROGRAM IN GENSHI BASIC
10 DEF FN FIZZPR(IDX, S$) = PRINTL CAT$(IDX, S$)
20 FOR I=1 TO 100 STEP 1
30 IF (I % 15) EQ 0 THEN FIZZPR(I, " FIZZBUZZ")
40 IF (I % 3) EQ 0 THEN FIZZPR(I, " FIZZ")
50 IF (I % 5) EQ 0 THEN FIZZPR(I, " BUZZ")
60 ENDFOR
1000 END |
100 defint A-Z
130 R=1:C=1
140 SS=0:X=46:Y=80
151 GOTO 700
200 ON STICK(0) GOTO 210,220,230,240,250,260,270,280
209 GOTO 300
210 Y=Y-4
219 GOTO 300
220 X=X+4:Y=Y-4
229 GOTO 300
230 X=X+4
239 GOTO 300
240 X=X+4:Y=Y+4
249 GOTO 300
250 Y=Y+4
259 GOTO 300
260 X=X-4:Y=Y+4
269 GOTO 300
270 X=X-4
279 GOTO 300
280 X=X-4:Y=Y... |
REM James/8B/10
CLS
INPUT "Panjang sisi persegi = "; s
Luas = s * s
PRINT "Luas persegi = "; Luas; "CM2"
END
|
Version =20
VersionRequired =20
Begin Form
AllowFilters = NotDefault
RecordSelectors = NotDefault
AutoCenter = NotDefault
DividingLines = NotDefault
AllowAdditions = NotDefault
AllowDesignChanges = NotDefault
AllowUpdating =4
ScrollBars =2
PictureAlignment =2
DatasheetGridlinesB... |
* ENCODING=ISO-8859-1
NAME instances/miplib3/vpm1.pre.mps.gz Iterations 122 Rows 128 Cols 297
XL X010101. DATE0102
XL X010102. DATE0103
XL X010103. DATE0105
XL X010104. DATE0106
XL X010105. DATE0202
XL X010106. DATE0203
XL X010201. DATE0204
XL X010202. DATE0205
XL X010203. ... |
'********** Translat.Bas
'Translate will replace the special box characters with normal ASCII
'characters that any printer can use.
'Copyright (c) 1989 Ethan Winer
DECLARE SUB Translate (X$)
CLS
FOR X = 33 TO 254 'create a test string
T$ = T$ + CHR$(X)
NEXT
LOCATE 5
PRINT T$ ... |
COLOR 15
CLS
PRINT " Song Creator Plus!"
PRINT "-----------------------------------------------------------------------------"
PRINT
10 PRINT
PRINT "Enter the the letters of the notes"
PRINT "you would like to play.(c,d,e,f,g,a,b,or p4 for pause)"
INPUT a$
IF a$ = "exit" THEN GOTO 20
I... |
Attribute VB_Name = "WinHttp"
'#Region "@HTTP Request"
'Func HttpPost($sURL, $sData = "")
' Local $oHTTP = ObjCreate("WinHttp.WinHttpRequest.5.1")
' $oHTTP.Open("POST", $sURL, False)
' If (@error) Then Return SetError(1, 0, 0)
' $oHTTP.SetRequestHeader("Content-Type", "application/x-www-form-urlencoded")
' $o... |
100 A = 1
110 ON A GOTO 160,180,200
120 A = A+1
130 IF A > 3 THEN 150
140 GOTO 110
150 END
160 PRINT "1"
170 GOTO 120
180 PRINT "2"
190 GOTO 120
200 PRINT "3"
210 GOTO 120
|
10 DEFINT N,I:INPUT "Введите N";N
20 DIM A(N) 'Массив А описан!
30 FOR I=0 TO N:INPUT A(I):NEXT I
40 'Данный фрагмент позволяет осуществить ввод элементов одномерного массива А (в массиве N+1 элемент!)
|
100 DEFINT J-M
110 DEFSNG A,B
120 DEFDBL D
130 J1=1.23:K=65.643
140 ABC=1.23:BBB=65.634
150 D=3.141592654000003#
160 D%=3.141592654000003#
170 PRINT "J1=";J1,,"K=";K
180 PRINT "ABC=";ABC,,"BBB=";BBB
190 PRINT "D=";D,"D%=";D%
200 END
|
' ISAMDEM2.BAS - third module of the ISAM demonstration program.
'
' Copyright (C) 1989-1990, Microsoft Corporation
'
' Main module - ISAMDEMO.BAS
' Include files - ISAMDEMO.BI
'
'
'$INCLUDE: 'isamdemo.bi'
DEFINT A-Z
' RunCustRec
' Controls customer record form. Provides viewing, u... |
5 REM GETTING STARTED WITH COLOR BASIC
6 REM SPACE GUNS, P291
10 CLEAR 1000
20 FOR Y = 0 TO 1
30 C = (Y+1)*16
40 S$(Y) = CHR$(131+C)+CHR$(139+C)+CHR$(130+C)
50 S2$(Y) = CHR$(128+C)+CHR$(136+C)
60 NEXT Y
100 FOR Y = 0 TO 1
105 C = JOYSTK(0)
110 A(Y) = JOYSTK(0+Y*2)
120 B(Y) = JOYSTK(1+(Y*2))
130 IF A(Y) > 59 THEN A(Y) =... |
1 %TITLE "Maintain List of Customer Contact"
%SBTTL "AP_MAIN_CONTACT"
%IDENT "V3.6a Calico"
FUNCTION LONG AP_MAIN_CONTACT(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.
!
! This so... |
Attribute VB_Name = "hello"
Option Explicit
Const PM_REMOVE As Long = &H1
Const WM_QUIT As Long = &H12
Const WS_OVERLAPPED As Long = &H0
Const WS_MAXIMIZEBOX As Long = &H10000
Const WS_MINIMIZEBOX As Long = &H20000
Const WS_THICKFRAME As Long = &H40000
Const WS_SYSMENU As Long = &H80000
Const WS_CAPTION As Long = &H... |
10 SCREEN 12
WINDOW (0, -50)-(260, 150)
LOCATE 25, 2
PRINT "Bekijk deze twee roterende kubussen stereoscopisch en je zult een 3-dimensio-"
PRINT "nale, rechtsom-draaiende kubus waarnemen."
PRINT "Gemaakt door Erik van Zijst op 24-7-'95."
PRINT "Druk op 'Ctrl-Break' om het programma te beeindigen."
REM *** Draadf... |
PRINT 13+22
PRINT -13+22
PRINT 22-13
PRINT 13*22
PRINT 39/13
PRINT 12^4
|
10 DEF SEG=0
20 DEFDBL S:S=&H436
30 PRINT PEEK(S)
|
DECLARE SUB egomaar (fat%)
DECLARE SUB annapotkut ()
DECLARE SUB cccptabl ()
DECLARE SUB cndcheck ()
DECLARE SUB colchk ()
DECLARE SUB colchk2 ()
DECLARE SUB ehllopturmaar2 ()
DECLARE SUB endseason ()
DECLARE SUB ennenkaudenalkua ()
DECLARE SUB erikoismuut ()
DECLARE SUB gameday ()
DECLARE SUB gamedayehl ()
... |
REM PROGRAMA DE DEMOSTRACION 4
REM EFECTOS PRODUCIDOS AL COMBINAR ROTACIONES Y TRASLACIONES
REM EL EJE DE ROTACION ES SIEMPRE LA LINEA BLANCA.
REM PARA PARAR CADA DEMOSTRACION, PULSAR UNA TECLA CUALQUIERA
REM INDICA CUAL ES LA TARJETA GRAFICA QUE PREFIERES EN LA VARIABLE TARJETA:
REM 1=CGA 4 COLORES (320 x 200... |
\*******************************************************************************
\*******************************************************************************
\***
\*** LDTPF - LDT PROGRAM FILE - PUBLIC FUNCTIONS
\***
\*** REFERENCE: LDTPFFUN.BAS
\***
\*** VERSION A LES COOK ... |
' poly3.bas SmallBASIC modified from samples 2015-04-23 MGA/B+
' 2nd modification for SmallBASIC 0.12.0 05-11-2015 for On-line sample
xc=xmax/2 : yc=ymax/2 : d=3 :sq=yc-10
color 15,0
while 1
cls
? "press any quit,":?
? "Here is "+d+" point poly.":?
dim x(d)
dim y(d)
dm=d-1
for i=0 to dm
t=c... |
OPTION BASE 0
DEFINT X-Y
Pi = 3.14158265359#
CLS
SCREEN 12
RANDOMIZE TIMER
DIM col(7)
FOR i = 0 TO 7
col(i) = INT(RND * 15)
NEXT i
FOR i = 0 TO 7
x = 150 * COS(Pi * i / 4) + 320
y = 150 * SIN(Pi * i / 4) + 240
CIRCLE (x, y), 30, 15
NEXT i
LOCATE 29, 20: PRINT "Нажми Esc для выхода"
KEY 15, C... |
CLS
READ ten, tewenty, thirty, forty, fifty
Average = ten + tewenty + thirty + forty + fifty / 5
PRINT " Average = ", Average
DATA 10,20,30,40,50
END
|
1 N%=15
2 B%=30
3 C%=35
4 DIM M%(N%)
5 SUMM% = 0
6 A%=B%+C%
7 I%=5
8 IF A% > A% THEN
9 A% = 5
10 B% = 1
11 ELSE
12 B% = A%
13 END IF
14 WHILE I% > 5
15 M%(I%) = 1
16 SUMM% = SUMM% + M%(I%)
17 END WHILE
18 STOP |
1 "CHANGE.BAS, from _BASIC Computer Games_ (1978), edited by David H. Ahl."
1 "Reproduced at https://www.atariarchives.org/basicgames/showpage.php?page=39"
1
1 "Adapted for Tiny BASIC in 2020."
1
1 PRINT "","","CHANGE"
2 PRINT "","CREATIVE COMPUTING MORRISTOWN, NEW JERSEY"
3 PRINT ""
4 PRINT ""
5 PRINT ""
6 PRINT "I, ... |
set kernel_options no_blank_lines pfcolors player1colors
set romsize 32k
rem set debug cyclescore
rem goto level_5_cutscene_part_3_setup bank3
const noscore = 1
rem goto level_8_setup bank7
rem i=60
rem goto level_6_cutscene_setup bank4
rem goto level_4_cutscene_part_2 bank2
rem goto level_5_cutscene_setu... |
10 REM TEST WITH PRINT USING
20 LET A = 10
30 PRINT USING
99 END
|
1 %TITLE "Payroll Workman Compensation Summary Report"
%SBTTL "PR_RPRT_WC_SUMMARY"
%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... |
OPTION EXPLICIT
OPTION DEFAULT NONE
OPTION BASE 0
OPTION CONSOLE SERIAL
#INCLUDE "../INC/Dummy.inc"
#INCLUDE "../INC/Utility.inc"
#INCLUDE "../INC/Palette.inc"
#INCLUDE "../INC/Sheet.inc"
#INCLUDE "../INC/Box.inc"
#INCLUDE "../INC/Background.inc"
#INCLUDE "../INC/TileEngine.inc"
#INCLUDE "../INC/Frame.inc"... |
Attribute VB_Name = "mod_Func7"
Option Explicit
Private cn As Object
Private rs As Object
Private strOwner As String
Public Function JustDoIt(ByRef objWebPool As Object, _
ByRef strPara As String) As String
On Error GoTo ChkErr
Dim objPayment As Object
Dim var... |
Attribute VB_Name = "mldMain"
Option Explicit
Public m_strDateList() As String
'// ********************************************************************************
'// 顔写真・口腔内写真用サブ
'// ********************************************************************************
'// 表示用日付の抽出関数(顔写真・口腔内写真用サブ)
Public Sub PickupFileDa... |
10 REM BASIC PROGRAM TO GENERATE N TERMS OF A FIBONACCI SERIES,
20 REM THE FIRST TWO TERMS OF WHICH ARE SPECIFIED BY THE USER.
30 REM
40 REM PRINT THE IDENTIFYING MESSAGE
50 PRINT "PROGRAM TO GENERATE A FIBONACCI SERIES"
60 REM
70 REM GET THE LENGTH AND FIRST TWO TERMS OF THE SERIES
80 PRINT "HOW MANY TERMS DO Y... |
atom=H
contraction shell=S num_primitives=3 num_coefficients=1
34.061341 0.60251978E-02
5.1235746 0.45021094E-01
1.1646626 0.20189726
contraction shell=S num_primitives=1 num_coefficients=1
0.32723041 1.0000000
contraction shell=S num_primitives=1 num_coefficients=1
0.10307241 1.0000000
atom=He
contraction shell=S num_... |
headline:
CLS
REM SeCoNd PaRt To HeLl's
REM BATCH WORM GENERATOR 5.03
name$ = "BATCH WORM GENERATOR 5.03"
RANDOMIZE TIMER
COLOR 1
PRINT " + + + + + + + + + + + + + + + + + + + + + + + + + + + "
PRINT " + + + + + + + + "
PRINT " + + + + "; na... |
10 REM This is a test
20 LET A=10
30 LET B=A+10
40 PRINT A,B
90 STOP
99 END
|
10 KEY 1,"RUN"+CHR$(13)
20 KEY 2,"LOAD"+CHR$(34)
30 KEY 3,"LIST"+CHR$(13)
40 KEY 4,""
50 KEY 5,"LIST -"
60 KEY 6,"COLOR 15,0"+CHR$(13)
70 KEY 7,"SYSTEM"+CHR$(13)
80 KEY 8,"KEY LIST"+CHR$(13)
90 KEY 9,"CLS"+CHR$(13)
100 KEY 10,"SAVE"+CHR$(34)+"KARTENTR"+CHR$(34)+CHR$(13)
110 KEY OFF
120 COLOR ,7
130 CLS
140... |
1 %TITLE "Payroll Comparison Report"
%SBTTL "PR_RPRT_TRN_COMP"
%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
!... |
SUB FLEG (X, PL(), NL)
PL(1) = 1!
PL(2) = X
IF NL > 2 THEN
TWOX = 2! * X
F2 = X
D = 1!
FOR J = 3 TO NL
F1 = D
F2 = F2 + TWOX
D = D + 1!
PL(J) = (F2 * PL(J - 1) - F1 * PL(J - 2)) / D
NEXT J
END IF
END SUB
|
Attribute VB_Name = "Xls_Fn"
Option Explicit
Private Sub Fn_Cno_Col__Tst()
Debug.Assert Fn_Cno_Col(1) = "A"
Debug.Assert Fn_Cno_Col(26) = "Z"
Debug.Assert Fn_Cno_Col(27) = "AA"
Debug.Assert Fn_Cno_Col(123) = "DS"
Debug.Assert Fn_Cno_Col(702) = "ZZ"
Debug.Assert Fn_Cno_Col(703) = "AAA"
Debug.Assert Fn_Cno_Col(16384) = "... |
10 def fn rn(x)=x+1:dim rd(255)
20 a=fn rn(34)
30 b=rd(fn rn(34))
31 b=rd(sin(b))
32 b=rd(asc(chr$(b)))
35 c=sin(fn rn(sin(34)))
40 print a,b,c
|
REM File: .bas
REM Data:
REM Programmer: Yuriy Lomako
REM Description:
REM -------------------------------------------------------------------
CLS
5 PRINT "nagmi liubuiu klavisciu"
10 A$ = INKEY$: IF A$ = " " THEN 10
PRINT "ti nagial klavisciu"
GOTO 5
PRINT "nagmi liubuiu klavisciu dlia drugoi kletki"
80 A$ = INKEY$:... |
10 COLOR 15,1,1
20 SCREEN 5
30 E=0
40 FOR I=27135TO32767:VPOKE I,0:NEXT I
50 FOR I=32767!TO0 STEP -64
60 FOR Z=I-256TOZ:VPOKE Z,0:NEXT Z
70 A=INT((65)*(RND(E))):E=E+.1:IF E>3THEN E=0
80 VPOKE I+A,224
90 X=INT(I/128):SET SCROLL 0,X
100 NEXTI
110 FOR X=255 TO 0 STEP -1
120 SET SCROLL 0,X
130 FOR T... |
INCLUDE "MBPP.BAS"
START:
CLS
GOSUB STARTPRG
C = 3
H = 11
T = 2
MOVE 30 13
PRINT "Calculando..."
GOTO MAIN
MAIN:
$5 = "Calculadora"
$6 = "Suma|Resta|Multiplicacion|Division|Salir"
GOSUB MENUBOX
IF V = 1 THEN GOSUB ADD
IF V = 2 THEN GOSUB SUB
IF V = 3 THEN GOSUB MUL
IF V = 4 THEN GOSUB DIV... |
Version =21
VersionRequired =20
Begin Form
AutoCenter = NotDefault
AllowDesignChanges = NotDefault
ScrollBars =2
TabularFamily =0
PictureAlignment =2
DatasheetGridlinesBehavior =3
GridX =24
GridY =24
Width =11880
DatasheetFontHeight =9
ItemSuffix =43
Top =945
Right =... |
100 REM ANCESTOR Program.
110 REM Prints Charts of Ancestors
120 REM Copyright (c) 1982 ... 1989 by: Melvin O. Duke.
130 OPTION BASE 0
140 DEFINT A-Z
600 REM Titles
610 TITLE$ = "Charts of Ancestors"
620 TITLE$ = TITLE$ + " ON DISPLAY"
700 REM Terminate if not called from the Menu
710 IF CO... |
10 RUN"main.bin
|
10 print "hello asm": i%=255
20 rem [ ldx numby ]
30 rem [ inc 53280 ]
40 rem [ dex; bne 30!; jmp 50! ]
45 rem [ numby; .byte 255 ]
50 goto 10 |
10 REM *** TEST NESTED FOR LOOPS ***
20 REM
30 PRINT " ";
40 FOR I = 2 TO 30
50 IF I < 10 THEN PRINT " ";
60 PRINT " ";I;" ";
70 NEXT
80 PRINT
90 FOR I = 2 TO 30
100 IF I < 10 THEN PRINT " ";
110 PRINT I;" ";
120 FOR J = 2 TO I
130 K = I * J
140 IF K < 100 THEN PRINT " ";
150 IF K < 10 THEN PRINT " ";
1... |
Attribute VB_Name = "MOD_URLFilter"
Option Explicit
Public dicURLBlackList As Dictionary
Public dicURLWhiteList As Dictionary
Public dicEXTBlackList As Dictionary
Public dicEXTWhiteList As Dictionary
Public mlngTimeSec As Long
Public mlngTimeUSec As Long
Const URL_BLACK_LIST_FILE = "urlbl.d... |
10 poke 53280,0 : poke 53281,0
20 print "h" : rem *** clear screen ***
30 for w = 1 to 16
40 read a
50 print
60 print chr$(a);: print "q"
65 rem *** sound ***
70 poke 54296,15
80 poke 54277,0: poke 54278,128
90 poke 54273,28 : poke 54272,49
100 poke 54276,17
110 for t = 1 to 100 : next
120 poke 54276,16
130 next w
135 ... |
100 PRINT "R E V E R S E": PRINT
110 DIM A(9), B(9)
115 T=0
120 FOR I=1 TO 9: A(I)=0 : NEXT I
130 FOR I= 1 TO 9
140 J= RND (20) +1
150 IF J>9 THEN 140
160 IF A(J)#0 THEN 140
170 A(J) =I
180 NEXT I
190 PRINT " 1 2 3 4 5 6 7 8 9": PRINT " -----------------"
191 PRINT "("):: FOR I=1 TO 9: PRINT A(I):: IF I<9 THEN P... |
100 REM HYPOTENUSE DATES (HYPODATE.BAS)
110 REM
120 REM VER 1.0 - JIM MCCLANAHAN W4JBM, JANUARY 2020
130 REM
140 REM INSPIRED BY C LANGUAGE PROGRAM BY T A GIBSON
150 REM SHARED BY LEE BRADLEY (NOT JUST TINY-C)
160 REM
170 REM HYPOTENUSE DATES ARE DATES WHOSE VALUES COULD
180 REM FORM A RIGHT TRIANGE.
190 REM
200 FOR Y=... |
REM Snake Game, for BASIC, web: http://rudih.info
DIM x(500) AS INTEGER
DIM y(500) AS INTEGER
oldhi = 0
blank:
COLOR 14, 0
CLS
LOCATE 8, 35
PRINT "---SNAKE---"
LOCATE 10, 10
PRINT "In game, use arrow keys to move."
LOCATE 11, 10
PRINT "Press <1-3> for speeds, or <Esc> to quit."
IF score > oldhi THEN oldh... |
5 PRINT "NUMERATOR","DENOMINATOR","REMAINDER","INTEGER QUOTIENT"
10 READ N,D
15 REM FIND THE REMAINDER WHEN 'N' IS DIVIDED BY 'D'
20 LET R=N-INT(N/D)*D
30 PRINT N,D,R,INT(N/D)
40 GOTO 10
50 DATA 93,12,100,25,365,52,365,7
52 DATA 365,12,52,13,5280,440,55,6
60 END
|
DECLARE SUB stopf ()
SCREEN 12
CLS
SLEEP
r = 20
FOR i = 1 TO 10
CIRCLE (320, 240), r, 4
r = r + 20
NEXT
COLOR 4
FOR k = 40 TO 360 STEP 40
PSET (320, 240)
DRAW "bu20" + "u180ta" + STR$(k)
FOR j = 1 TO 500
NEXT
NEXT
SLEEP
COLOR 1
10 PAINT (340, 260), , 4
CALL stopf
20 PAINT (340, 245), , 4
CALL stopf
30 PAINT (350, 225... |
10 REM TEST DEF FN WITH STRING ARGS
20 DEF FNL9(S$)=LEN(S$)+1
100 A$="HELLO, WORLD!"
110 PRINT "STRING IS: [";A$;"]"
120 L=FNL9(A$)
130 PRINT "LENGTH IS: "; L
999 END
|
1 'Example 4 of CONFIG KEYPAD$, KEYPAD$, ON KEYPAD$ and RETURN KEYPAD$ statements
10 DATA 65,66,67,68,69,70,71,72:'ASCII 'A' to 'H'
20 DATA 73,74,75,76,77,78,79,80:'ASCII 'I' to 'P'
30 CONFIG PIO &100,0,0,0,1,0:'Lower & upper C ports of an 8255 at &100 are input & output ports
40 OFFSET = KEYPAD$(2):SEGMENT = KEYPAD$(3... |
10 s=54272
20 poke s,150:poke s+1,200
30 poke s+5,8:poke s+6,248
40 poke s+24,15
50 poke s+4,17
60 for t=0 to 1000:next
70 poke s+4,16
80 for t=0 to 1000:next
90 poke s+24,0
|
Attribute VB_Name = "VRPG"
'Private Declare Function SetTimer Lib "user32" (ByVal hwnd As Long, ByVal nIDEvent As Long, ByVal uElapse As Long, ByVal lpTimerFunc As Long) As Long
'Private Declare Function KillTimer Lib "user32" (ByVal hwnd As Long, ByVal nIDEvent As Long) As Long
' Parameters - handle, ID, MilSecs,... |
DECLARE SUB FLY (s!)
INPUT s
CALL FLY(s)
CLS
10 INPUT "K="; K: SCREEN 1
CLS
IF K = 0 THEN END
HGR: HCOLOR = 5
PI = 3.14
FOR X = 0 TO 2 * PI STEP PI / 200
PSET (14 * 9 + FIX(7 * SIN(K * X) * COS(X)), 28 * 4 + FIX(7 * SIN(K * X) * SIN(X)))
NEXT X: GOTO 10
SUB FLY (s)
CLS
FOR i = 1 TO 79
LOCATE 10, i:... |
Attribute VB_Name = "ROM"
Option Explicit
'======================================================================================
'MaSS1VE : The Master System Sonic 1 Visual Editor; Copyright (C) Kroc Camen, 2013-15
'Licenced under a Creative Commons 3.0 Attribution Licence
'--You may use and modify this code how you s... |
REM ZX Spectrum MANUAL
REM A fix for the DivMMX paging issue
REM The DivMMC starts in USR 0 mode (48k BASIC) with the paging register unlocked
REM This locks the paging register
10 PRINT "Starting to unlock the paging register";
15 OUT 32765, 48
|
1 REM Stars
10 PRINT "*"
20 GOTO 10
|
10 :REM'RANDNUM - Random number Generator - 17 DEP 2005 rev. 26 APR 09
20 CLS:KEY OFF
30 IF EX$=""THEN EX$="EXIT"
40 IF PROG$=""THEN GO$=EX$ :ELSE GO$=PROG$
45 PROG$="RANDNUM"
50 COMMON EX$,GO$
60 :REM'
70 :REM'.....title page
80 CLS
90 COLOR 15,2,1
100 PRINT " Random Number Generator"TAB(57)"by George Murphy VE3ERP ";... |
'BF interpreter outline
'Variable list
'-------------
'PROGRAM BF Program
'MEMORY Memory
'IP Instruction Pointer
'IPVALUE Value at Instruction Pointer, [IP]
'MP Memory Pointer
'MPVALUE Value at Memory Pointer, [MP]
'A (Temp) Keystroke
'LEVEL (T... |
Operation =1
Option =0
Where ="(((qasub_Events_scope_filter.Noise_level) Is Null) AND ((tbl_Locations.Location_"
"type) Not In ('Origin','Incidental'))) OR (((qasub_Events_scope_filter.Wind_cond"
") Is Null) AND ((tbl_Locations.Location_type) Not In ('Origin','Incidental'))) O"
"R (((qasub_Events_scope_fil... |
*if(*ndime==2)
*set cond Inlet_2D *nodes
*loop nodes *onlyincond
*nodesnum *\
*end loop
*end if
*if(*ndime==3)
*set cond Inlet_3D *nodes
*loop nodes *onlyincond
*nodesnum *\
*end loop
*end if |
0 REM ************************
1 REM * - CCESOFT - *
2 REM *OTTO LONGO SERNATINGER*
3 REM * VERSAO 1.1 05/85 *
4 REM ************************
5 REM * SIMULACAO DE GRAFICO *
6 REM ************************
120 DEF FN A(X) = EXP ( - X * X * .4)
130 A = - 3:L = 30:B = 3:Y1 = 0:Y2 = 1:H = .4... |
10 HGR
20 FOR C = 1 to 6
30 HCOLOR = C
40 FOR X = 0 to 279
50 FOR Y = 0 to 191
60 HPLOT X, Y
70 NEXT
80 NEXT
90 NEXT
|
REM \
\******************************************************************************
\******************************************************************************
\***
\*** SHELF EDGE LABELS INDIVIDUAL ITEM FILE FUNCTIONS
\***
\*** REFERENCE : SITEMFUN.BAS
\***
\*** Ver... |
1 'Example program using NET$(0) function and NET$ statement
2 'Use Octagon Assign ID command to assign the ID 05 to the
3 'node that has an ID FF.
4 '
5 CLEAR NET$
10 NET$ = ">FFC0533." : 'Send Octagon Assign ID 05 command to node with ID FF
20 Y = 2000
30 DEC Y : IF Y = 0 THEN GOTO 70 : 'Give up if timeout
40 A$ = NE... |
1000 in=3 : out=4
1010 OPEN #in;'ram1_spread_file_BigTest_Psion'
1020 OPEN_OVER #out;'ram1_output'
1025 DIM col_sz%(64),psi_text$(1024,64),psi_form$(1024,64)
1027 form_cnt=0 : text_cnt=0
1030 :
1035 collect_text
1037 BGET #in\0
1038 form_cnt=0 : text_cnt=0
1040 IF get_val$=='TAB0'
1050 g_format$=get_val$
1060 max... |
1 REM build this with `zmakebas`
10 CLEAR 32768
20 LOAD "" CODE
30 RANDOMIZE USR 32768
|
start:
CLS
LOCATE 2,20:PRINT " KEMI"
LOCATE 3,20:PRINT " ˉˉˉˉ"
LOCATE 5,20:PRINT " 1. Pascal"
LOCATE 6,20:PRINT " 2. Volym"
LOCATE 7,20:PRINT " 3. Substansmänd"
LOCATE 8,20:PRINT " 4. Temperatur"
LOCATE 10,20:PRINT " 5. Molmassa"
LOCATE 11,20:PRINT "... |
FOR k=0 TO 1 STEP 0
d=INKEY()
IF d<>0 THEN PRINT d ENDIF
IF d=113 THEN GOTO FINITO ENDIF
PAUSE 20
NEXT k
FINITO:
END |
1050 PRINT "UP: W"
1060 PRINT "DOWN: S"
1070 PRINT "LEFT: A"
1080 PRINT "RIGHT: D"
2000 REM The array G holds one entry for each pixel
2010 REM (X, Y) maps to G[X + Y*50]
2020 REM A non-zero value in G means either the snake occupies the pixel or there is a dot on the pixel
2030 REM A dot is encoded by the value 5
2040... |
100 LOMEM = LOMEM + &200
110 S% = LOMEM - &200
120 FOR N% = 0 TO 2 STEP 2
130 P% = S%
140 [OPT N%
150 LDY #0
160 .LOOP
170 LDA H%,Y
180 BEQ DONE
190 JSR &FFEE
200 INY
210 BNE LOOP
220 .DONE
230 RTS
240 ]
250 H% = P%
260 $H% = "Hello World!" + CHR$(13) + CHR$(10) + CHR$(0)
270 NEXT
... |
PRINT "DECLARE FUNCTION"
FUNCTION fun1# (X, Y) {
Z = X + Y
RETURN Z
}
FUNCTION fun2 (X, Y) {
IF Y = 0 THEN RETURN 0
Z = X / Y
RETURN Z
}
PRINT "CALL FUNCTION"
PRINT fun1#(2, 3)
PRINT fun2(2, 3)
PRINT fun2(2, 0)
PRINT "ARRAY TEST"
FUNCTION initArray (DIM X(0), n, v) {
FOR I% = 0 TO n - 1
X(I%) = v
... |
10 *CLOSE
20 MODE 7
30
40 PRINT " Join :"'
50 PRINT "1) Levels"
60 PRINT "2) Sprites + speech ( bank4 )"
70 INPUT '" Enter your choice : "C
80 CLS
90 ON C GOTO 110,240
100
110 PRINT''" Joining level files ..."'
120 X%=OPENOUT("levels")
130 total%=0
140 PROCjoin("LEVE... |
10 KEY 15,CHR$(4)+CHR$(70)
20 KEY 16,CHR$(12)+CHR$(83)
30 ON KEY (15) GOSUB 1000
40 ON KEY (16) GOSUB 1000
50 KEY (15) ON
60 KEY (16) ON
70 CLS:SCREEN 1,0:KEY OFF
80 LOCATE 25,1:PRINT "Please wait and do not type"
90 W$="D6 E3 F3 U6 BL6":E$="R6 BL6 D3 R3 BL3 D3 R6 BH6" :L$="d6 r6 bh6"
100 C$="BR6 bf1 h1 l4 g1 ... |
Version =20
VersionRequired =20
Begin Form
DividingLines = NotDefault
AllowDesignChanges = NotDefault
DefaultView =0
PictureAlignment =2
DatasheetGridlinesBehavior =3
GridX =24
GridY =24
Width =15150
DatasheetFontHeight =11
ItemSuffix =16
Right =13515
Bottom =7605
Da... |
10 INPUT "Your name: ", U$
20 PRINT "Hello ", U$
30 INPUT "How many stars do you want: ", N
40 S$ = ""
50 FOR I = 1 TO N
60 S$ = S$ + "*"
70 NEXT I
80 PRINT S$
90 INPUT "Do you want more stars? ", A$
100 IF A$ = "" THEN GOTO 90
110 IF A$ = "Y" THEN GOTO 30
120 IF A$ = "y" THEN GOTO 30
130 PRINT "Goodbye ", U$
140 END
|
dbMemo "SQL" ="SELECT *\015\012FROM MSysObjects\015\012WHERE Name LIKE 'q*' AND Name NOT LIKE '"
"*_X';\015\012"
dbMemo "Connect" =""
dbBoolean "ReturnsRecords" ="-1"
dbInteger "ODBCTimeout" ="60"
dbBoolean "OrderByOn" ="0"
dbByte "Orientation" ="0"
dbByte "DefaultView" ="2"
dbBinary "GUID" = Begin
0xe477eaa22... |
DECLARE FUNCTION getSpawnSlot% ()
DECLARE SUB loadText (screenOfs%, textOfs%)
DECLARE SUB handleCamera ()
DECLARE SUB handleScroll ()
DECLARE SUB damagePlayer ()
DECLARE SUB hudPrint (x%, text$, colour1%, colour2%)
DECLARE SUB aDrawTiles (area%, forceOfs%)
DECLARE SUB loadLevel ()
DECLARE SUB myPrint (x%, y%, text$, at... |
CLS
COLOR 4
LOCATE 9, 24
PRINT "C O N T R O L D E M A T E S "
A$ = INPUT$(1)
5 CLS
PRINT "1. NOMBRES I OPERACIONS"
PRINT "2. PROBLEMES"
PRINT "3. GEOMETRIA"
A$ = INPUT$(1)
IF A$ = "1" THEN 10
IF A$ = "2" THEN 20
IF A$ = "3" THEN 30
GOTO 5
10 CLS
PRINT " 344412"
PRINT " + 34535"
PRINT " _________... |
10 PRINT TAB(32);"REVERSE"
20 PRINT TAB(15);"CREATIVE COMPUTING MORRISTOWN, NEW JERSEY"
30 PRINT:PRINT:PRINT
100 PRINT "REVERSE -- A GAME OF SKILL": PRINT
130 DIM A(20)
140 REM *** N=NUMBER OF NUMBERS
150 N=9
160 PRINT "DO YOU WANT THE RULES";
170 INPUT A$
180 IF A$="NO" THEN 210
190 GOSUB 710
200 REM *** MAKE A RANDO... |
10 rem ** nine men morris **
20 g=1024:h=55296:b=53280:s=53281:dimm%(6,24),p%(2,9),a$(2):poke649,1
30 print"{clear}":pokeb,2:pokes,7
40 fork=1to24:forj=0to6:readm%(j,k):next:next
50 m=2:print"{clear}{down}"
60 printtab(10)"{purple}{reverse on}{cm a}{sh asterisk*8}{cm r}{sh asterisk*8}{cm s}"
70 b$="{reverse on}{sh -}{r... |
$ExeIcon:'baskit/NoteOS.ico'
Screen 12
a$ = "Welcome"
Cls
_Title "SYS"
Print "Loading system..."
_Title "Note OS II"
0 Print "Connect to a user :"
Input "Username : ", usrnm$
'play ""
Color 10, 1
'Input "Fulscreen mode?", flsm$
'If flsm$ = "Yes" Then
'Print "Press ALT + ENTER"
'Sleep
'Sleep
'End If
... |
Attribute VB_Name = "RemoveOMS_MOD"
Sub RemoveOMS()
Dim sRange As range
Dim omsRange As range, woRange As range
Dim copyRange As range
Dim SHOutage As String
10 SHOrig = ActiveSheet.Name
On Error GoTo gotError
20 SHOutage = "Outage"
30 If SheetExists(SHOutage, ActiveWorkbook.Name) Then
40 Call AlertsOff
... |
'Draw Image by Sean Godsell
DIM img%(1 TO 1000, 1 TO 32)
SCREEN 9, 1, 0, 0
' Init variables
yf = 8
yo = 25
xf = 10
xo = 70
cont = 0
image = 1
c = 7
LINE (xo - 1, yo - 1)-(xo - 1, 350), 15
LINE (xo - 1, yo - 1)-(640, yo - 1), 15
LINE (0, 0)-(50, 50), 15, B
GOSUB printspcs
grid = 0
sc = POINT(x% *... |
1 'Example program using CONFIG EZIO statement
3 ' The following example configures port B with an initial value of all 1's
4 ' and the lower 4 bits of port C of the Octagon EZ I/O at base address
5 ' &140 as outputs. The example also configures port A and the upper 4 bits
6 ' of port C as inputs. All the bits of the ... |
10 FOR N=1 TO 0
20 PRINT N
30 NEXT N
40 END
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.