text stringlengths 7 5.36M |
|---|
' Lunar Lander2v6.BAS
' Lunar Lander For Nostalganauts
' Written for the Colour Maximite 2 by Vegipete
' V4 Sound added by BigMik
' v4 to v6 by Andrew_G
' August 2020
'
' v6 - fixed over-writing of "Press [H|h] for Help" text
' - tidied up with MMBASIC keywords in uppercase
' v5 - added hel... |
rem ASCII Artist (DRAW.BAS)
rem Version 2.2.2
rem Uses MB++ Version 3.0 beta 3
rem Released under the GNU General Public Licence revision 3
INCLUDE "MBPP.BAS"
preload:
print "loading..."
cls
gosub blank
rem did they specify a filename?
if $1 = " " then $1 = ""
if $1 = "" then goto nopara
rem change any ... |
10 :REM'COMFILT - 26 JAN 2010
20 :REM'COMFILc.BAS rev 26 JAN 2010
30 CLS:KEY OFF
40 IF EX$=""THEN EX$="EXIT"
50 IF PROG$=""THEN GO$=EX$ :ELSE GO$=PROG$
60 COMMON EX$,PROG$
70 :REM'.....title page
80 COLOR 15,2
90 PRINT " COMPLEMENTARY FILTERS"TAB(61)"by R.J.Dehoney IEEE ";
100 COLOR 7,0
110 :REM'.....start
120 PRINT
13... |
# 3D, Transient aquifer to demonstrate MNW1 package
FREE Item 1: Options
CONSTANT 1 Item 2: IBOUND, layer 1
CONSTANT 2 IBOUND, layer 2
999. Item 3: HNOFLO
CONSTANT 100. Item 4: STRT, layer 1
CONSTANT 100. STRT, layer 2
|
100 ! &
! Set the magtape mode variables (Non-file structured) &
! &
D% = 256% ! 12% if 800 BPI, 256% if 1600 BPI &
\ P% = 0% ! 0% if odd parity, 1% if even parity &
\ S% = 0% ! 0% if not to retain MODE after close &
! 8192% if to retain MODE after close &
\ DEV$ = "SY:[21,5]" &
\ INPUT "Output to <KB:>"; ... |
A$="3:a32f4a3MSc0oaa2aB3U^m]<NpSf3n<5Mqn<5Ph`7*T`I2_4^B3P4>bP1p:Rc^+BrCRq/Q3p_eMgn?]_1gkiDE_kn_kn:Gk_oSh3QYk_433%03A33456M337;?16/[`3'OJ]#0#JG4-/C48,C5/9FFJT<O*\(#*#"
V=SADD(A$)
FOR I=0 TO 122
POKE I,4*PEEK(V+I)-204+(PEEK(V+123+I\3)-35)\4^(I MOD 3)
NEXT
CALL ABSOLUTE(Q)
|
10 '-----------------------------------------------
20 ' KASSETTENLAYOUT ATARI ST
30 ' (C) 05.1986 BY RAINER DUDA
40 ' Version 3.01 (complete version)
50 '-----------------------------------------------
60 '
70 START:
80 clear
90 dim a$(2,40),pret$(2,40),coun... |
Attribute VB_Name = "File"
Option Explicit
'********************************************************************
'* Operacje na plikach i katalogach *
'********************************************************************
Public errState As Boolean
Public errMsg As String
Private C... |
REM *** COMPUTER SOFTWARE LOCK v1.1 ***
DECLARE SUB LetterD (x!, y!, co!)
DECLARE SUB LetterE (x!, y!, co!)
DECLARE SUB LetterK (x!, y!, co!)
DECLARE SUB LetterL (x!, y!, co!)
DECLARE SUB LetterM (x!, y!, co!)
DECLARE SUB LetterN (x!, y!, co!)
DECLARE SUB LetterO (x!, y!, co!)
DECLARE SUB LetterS (x!, y!, ... |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% _______________________________________________________ %
% _______________________________________________________ %
% %
% Technische U... |
10 'HCAL-B
20 COMMON EX$,X$
30 X$="B":EX$="\hamcalc64\menu\hcal-"+X$
35 input c$
40 CHAIN"\hamcalc64\menu\hcal-x"
|
10 INPUT "Enter name of .TBI file to convert to text";FI$
20 OPEN "I",1,FI$
30 INPUT "Name of new text file";FO$
40 OPEN "O",2,FO$
50 LINE INPUT #1,A$
60 IF LEFT$(A$,1)="@" THEN 120
70 IF LEFT$(A$,1)<>":" THEN 50
80 LIN=VAL("&H"+MID$(A$,2,4))
90 PRINT #2,LIN;MID$(A$,6)
100 IF EOF(1) THEN 120
110 GOTO 50
120 CLOSE
130 E... |
10 REM I am a comment
20 INPUT A
30 INPUT B
40 LET C = (A - B) * 2
50 IF C < 0 GOTO 20
60 PRINT C
70 END |
CLS
PRINT "It's a beautiful night"
PLAY "ccddc<bp4"
PRINT "The moon is shining bright"
PLAY "b>cc<babg>p4"
PRINT "But I don't get no pleasure out of it"
PLAY "<gagagagagbp4>"
PRINT "I'm just walking around"
PLAY "ccddc<bp4"
PRINT "On this cold, dark ground"
PLAY "b>c<bp16ap16g>p4"
PRINT "Longing, for you"
P... |
1 DATA 1000,M,900,CM,500,D,400,CD,100,C,90,XC,50,L,40,XL,10,X,9,IX,5,V,4,IV,1,I:INPUT"N";N
2 READ A,A$
3 IF A<=N THEN PRINT A$;:N=N-A:GOTO 3
4 IF N>0 GOTO 2
|
WIDTH LPRINT 255
e$ = CHR$(27)
LPRINT e$; "D"; CHR$(27); CHR$(55); CHR$(0);
LPRINT e$; "3"; CHR$(37);
a$(0) = "Pierre VIOLENT"
a$(1) = "48, rue Nicolas CHORIER"
a$(2) = "38000 GRENOBLE"
a$(3) = ""
a$(4) = "Tel: 76.70.00.52"
a$(5) = ""
ta(0) = 38
ta(1) = 38
ta(2) = 38
ta(3) = 38
ta(4) = 38
ta(5) = 38
FOR i = 1 TO ... |
Operation =1
Option =0
Where ="(((dbo_ProjectComponentHeader.MailComponentYN)=True) AND ((dbo_ProjectHeader.Inv"
"oiceNum) Is Null) AND ((dbo_ProjectHeader.Void)=False))"
Begin InputTables
Name ="dbo_ProjectComponentHeader"
Name ="dbo_ProjectHeader"
Name ="dbo_ContactGeneral"
End
Begin OutputColumns
... |
10 :REM'OCTAGON - Octagonal Loop Framework - 30 NOV 2002
20 IF EX$=""THEN EX$="EXIT"
30 COMMON EX$,P
40 PI=4*ATN(1)
50 UL$=STRING$(80,205)
60 :REM'
70 :REM'.....title page
80 CLS:KEY OFF
90 COLOR 15,2,1
100 PRINT " Octagonal Loop Framework"TAB(57)"by George Murphy VE3ERP ";
110 COLOR 1,0:PRINT STRING$(80,223);
120 COLO... |
REM UTF-8
USECLASS CKNJ16
USEGRAPHIC 9
Y=40
K=NEW(CKNJ16,"UTF-8")
RESTORE JPNTXT
WHILE 1
S$=READ$()
IF LEN(S$)=0 THEN BREAK
POINT 0,Y
K.GPRT(S$,7,0)
Y=SYSTEM(29)+16
WEND
WHILE INKEY()=0:WEND
END
LABEL JPNTXT
DATA "日本語表示サンプル"
DATA "このプログラムはMachiKaniaの日本語表示クラスを使い表示しています。"
DATA ""
|
'Ä Area: Itcdev ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ
' Msg#: 14 Date: 12-04-93 12:37
' From: Steve Demo Read: Yes Replied: No
' To: Ming Lee Mark:
' Su... |
10 REM MATRIX FUNCTION CON
15 DIM D(2,3)
20 MAT A = CON(3,5)
30 MAT B = CON(5,3)
40 MAT C = CON(4)
45 MAT D = CON
50 PRINT "MATRIX A"
60 MAT PRINT A;
70 PRINT "MATRIX B"
80 MAT PRINT B;
90 PRINT "ARRAY C"
100 MAT PRINT C;
110 PRINT "MATRIX D"
120 MAT PRINT D;
200 OPTION BASE 1
220 MAT A = CON(3,5)
230 MAT B = CON(5,3)
... |
10 rem dechexbinoct64/128 a.k.a. number systems
20 rem copyright 2013 ab sayuti hm Saman
30 rem distributed under the terms of the gnu general public license
40 rem
50 gosub 190: rem initialize
60 gosub 560: rem display main screen
70 x=1: y=24: gosub 1200: print "{light blue}enter a number (1 - 255):{yellow}";: ... |
100 REM Program to switch to color/graphics adapter,
110 REM draw graphics, then return to the monochrome
120 REM screen with the graphics intact.
130 REM May be started on either screen--always ends
140 REM on the monochrome screen.
150 REM *
160 REM * Will work *only* with two-adapter systems!!!
170 RE... |
$CONSOLE:ONLY
_DEST _CONSOLE
'Sorry for spaghet, this was hacked together real quick.
DIM SHARED lvl AS _UNSIGNED INTEGER
ON ERROR GOTO erh
IF COMMAND$(1) = "bulkmode" GOTO StartBulk
erh:
PRINT "########";
PRINT USING "ERROR ### AT ###_! (##/25)"; ERR, _ERRORLINE, erno%;
PRINT "########"
erno% = erno% + 1
... |
10 dim a(10)
20 for s = 1 to 10
30 a(s) = s
40 next
50 for s = 1 to 10
60 print a(s)
70 next
|
10 let a=5
20 let b=40.2
30 if b/a = 8.04 goto 60
40 print "RUN TIME FAILURE"
50 goto 70
60 print "RUN TIME PASS"
70 end
|
'*************************************************************
' PROGRAM: Guess both username/password.../Version: 1.0.2
' (Captures both username/password;
' also, makes username 'case insensitive'/
' and, password 'case sensitive'.)
' LANGUAGE: QBASIC/Version: QB64 (a F... |
Version =20
VersionRequired =20
PublishOption =1
RecordSelectors = NotDefault
NavigationButtons = NotDefault
DividingLines = NotDefault
AllowDesignChanges = NotDefault
DefaultView =2
ViewsAllowed =2
PictureAlignment =2
DatasheetGridlinesBehavior =3
GridX =24
GridY =24
Width ... |
1 ifpeek(49153)+peek(49154)<>21thenload"ge",8,1
2 ifpeek(49153)+peek(49154)=21thensys49152
6 dimt,d,x:deffnt(x)=int(x/16)*10+(xand15):d=56590:goto10
7 t=fnt(peek(d-3))*1e4+fnt(peek(d-4))*100+fnt(peek(d-5))+fnt(peek(d-6))/10:return
9 poked,(127andpeek(d))+128*peek(678):poked-3,0:poked-4,0:poked-5,0:poked-6,0:r... |
CLS
A = 1
B = 1
C = 1
D = 1
E = 1
SCREEN 13
VIEW (0, 0)-(300, 170), 0
1 LOCATE 1, 1
PRINT ""
PRINT ""
PRINT ""
PRINT ""
COLOR A
PRINT " . . ___ __ __ "
COLOR B
PRINT " | | | | | | |"
COLOR C
PRINT " |___| |__ |__| | |"
COLOR D
PRINT " | | | |\ | |"
COLOR E... |
5 REM PONG - use q and a for left hand controls
10 LET demo=1
20 LET ls=0: LET rs=0
30 BORDER 0: PAPER 4: INK 7
40 LET df=1: CLS : PRINT #0;AT 0,0; PAPER 3; INK 6;" You: ";ls;TAB 26;"ZX: ";rs;CHR$ 6;CHR$ 6;CHR$ 6
50 FOR i=1 TO 40: NEXT i: IF rs>4 OR ls>4 THEN GO TO 999
60 LET x=15: LET y=INT (20*RND )+1
... |
1 %TITLE "Equipment Ledger Account Report"
%SBTTL "EL_RPRT_ACCOUNT"
%IDENT "V3.6a Calico"
!
! COPYRIGHT (C) 1992 BY
!
! Computer Management Center, Inc.
! Idaho Falls, Idaho.
!
! This software is furnished under a license and may be used and
! copied only in accordance with terms of such license and with
! ... |
5 SYS 49500:REM ACTIVATE WEDGE (C64)
10 !I2CAW,66 :REM ADDRESS DEVICE
20 !I2CPU,0 :REM ADDRESS IODIR REGISTER INSIDE DEVICE
30 !I2CPU,0 :REM ADDRESS ALL IOPINS ARE OUTPUT
40 !I2CST :REM STOP I2C
100 PRINT "{clear}all high"
110 !I2CAW,66 :REM ADDRESS DEVICE
120 !I2CPU,9 :REM ADDRESS GPIO REGISTER INSIDE... |
5 print"{clear}"
10 poke 53281,0:poke 53280,0:for a=0 to 24:print:next:b=1504:c=20
20 a=rnd(1)*40:poke 1984+a,46:poke 1984+a+54272,rnd(1)*14+1
25 if rnd(1)>.7 then p=rnd(1)*40:poke p+1984,1:poke p+1984+54272,7
30 geta$:if a$="z" and c>0 then poke b+c,32:c=c-1
35 if a$="m" and c<40 then poke b+c,32:c=c+1
40 poke b... |
0 SW = 32: GOTO 10
1 GOSUB 2: GOTO 7
2 A = SW - ( POS (0) - SW * INT ( POS (0) / SW)): IF LEN (M$) < = A THEN PRINT M$;: RETURN
3 FOR B = A + 1 TO 1 STEP - 1: IF MID$ (M$,B,1) < > " " THEN NEXT : PRINT LEFT$ (M$,A);:M$ = MID$ (M$,A + 1): GOTO 2
4 IF B < A THEN GOSUB 7: PRINT LEFT$ (M$,B):M$ = MID$ (M$,... |
10 gosub 300
20 poke v+0,x:poke v+1,y
30 if peek(653)=1 then x=x+3:if x>255 then x=255
40 if peek(653)=2 then x=x-3:if x<24 then x=24
50 if peek(197)=3 then y=y+3:if y>229 then y=229
60 if peek(197)=6 then y=y-3:if y<50 then y=50
70 goto 20
300 v=53248:print"{clear}":poke 53281,1:x=160:y=100
310 for i=0 to 63:r... |
5 ONERRORGOTO900
20 MODE8:DIM:a=0:b=0:c=0:h=0:c$=CHR$(5)
30 CLS:PRINT"Area (parallelogram)";TAB(0);"1:ah 2:ab„sin";
40 w=ASC(INPUT$(1,@))-48:IFw<1 ORw>2 THEN40
50 ONw GOTO100,200
100 CLS:PRINT"ah a:base h:height";
110 s$="a":z=a:GOSUB500:a=z
120 s$="h":z=h:GOSUB500:h=z
130 z=a*h:GOTO400
200 CLS:PRINT"ab„s... |
Attribute VB_Name = "RegistryAccess"
Option Explicit
' This module reads and writes registry keys. Unlike the
' internal registry access methods of VB, it can read and
' write any registry keys with string values.
'---------------------------------------------------------------
'-Registry API Declarations...
'------... |
1 print tab(34)"keno"
2 print tab(15)" creative computing,morristown, new jersey"
3 dim n(21),m(23),a(8)
9 print:print:print
10 print"keno is played in many casinos in las vegas."
13 print "play keno by computer. one variation of the game, utilizes"
16 print"the random number generator."
19 print
20 print"the player c... |
100 open4,4:cmd4
110 so$=chr$(14): si$=chr$(15)
115 po$=chr$(16): esc$=chr$(27)
120 cn=23:am=16:of=4
130 a$="-":for i=0tocn+am:a$=a$+"-":next
140 sp$=" "
150 printso$" sin curve"
160 printsi$
170 printleft$(sp$, of-1)+"x";
180 printspc(cn-am-of-1)"-1";
190 printspc(am-1)"0";
200 printspc(am-1)"1"
210 ... |
Attribute VB_Name = "mod_Soap"
Option Explicit
'
'
'
'Public Function ClientStatData(DataIn As String) As Boolean
'
'Static x As New SoapClient30
'Dim didThis As Boolean
''Public Sub GetStats(ByVal Mach_ID As String, ByVal StatDataString As String)
'
'On Error Resume Next
'
'RetryAfterInit:
'x.GetStats En... |
SCREEN 0
SCREEN 12
_TITLE "Fibonacci Finder"
gr## = 1.61803398874989484820
DO
DO
DO
term$ = ""
exitloop = 0
DO
CLS
PRINT "What term number would you like to find?"
PRINT "Fibonacci Term #"; term$
SLEEP
... |
10 INPUT "Imprimir A"; A
20 LET S$ = "Hola"
30 LET A = S$
40 IF A>5 THEN GOTO 30.40
50 END |
10 FOR A=0 TO 8
20 FOR X=0 TO 7
30 VPOKE &H2000+65*8+X,(X+A)*16
40 NEXT X
50 NEXT A
60 GOTO 10
|
10 f$=""
20 s$=""
30 print "Calc ver. 2.0"
40 print "Input first number and +"
50 a$=inkey$
60 print a$;
70 if a$="+" then goto 100
80 f$=f$+a$
90 goto 50
100 print "->"+f$
110 print "Input second number and ="
120 b$=inkey$
130 print b$;
140 if b$="=" then goto 170
150 s$=s$+b$
160 goto 120
170 x=val(f$)
180 y=val(s$)... |
10 ERASE
20 CLS
23 ' EXEC "WIFI","RESET"
25 ' ? "Reset OK"
26 PC$="6A06091725648"
30 EXEC "WIFI","CHECK"
40 ? "OK"
50 EXEC "WIFI","PARCEL", PC$
60 ? "OK"
65 N=RZ$(0)
68 ? N, "lines readed"
70 IF N < 4 THEN ? "ERROR" : GOTO 1000
80 CLS
100 ? "########## Colis : ", RZ$(2+1), " ##########"
110 ? ""
120 ? "Date : " , RZ$(3... |
Attribute VB_Name = "Mod_enumprinters"
Option Explicit
Private Declare Function EnumPrinters Lib "winspool.drv" Alias "EnumPrintersA" (ByVal flags As Long, ByVal name As String, ByVal level As Long, pPrinterEnum As Long, ByVal cdBuf As Long, pcbNeeded As Long, pcReturned As Long) As Long
Private Declare Function l... |
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... |
100 rem classic.bas -- Compute the nth Fibonacci Number
110 rem Written December 25, 2018 by Eric Olson
120 rem
130 rem This program demonstrates the expressiveness of the original
140 rem versions of Microsoft BASIC as measured by explicitly coding
150 rem Karatsuba multiplication for big-number arithmetic and th... |
REM SPI-LCD TFT2P0327-E
REM CS:D9 RST:B0
USEVAR VERT
VERT=0:REM Horizontal Mode
SPI 8000
GOSUB LCDINI
GOSUB LCDCLR
GOSUB MARU,80,64,50,$FFFF
END
LABEL MARU
VAR X,Y,R,C,P,Q,F
X=ARGS(1):Y=ARGS(2):R=ARGS(3):C=ARGS(4)
P=R:Q=0:F=-2*R+3
WHILE P>=Q
GOSUB LCDDOT,X-P,Y-Q,C:GOSUB LCDDOT,X+P,Y-Q,C
GOSUB LCDDOT,X-P,Y+Q,... |
10 print "Input first number:";
20 input A
30 print "Input second number:";
40 input B
50 if A = B then print "The numbers are the same"
60 if A > B then print "The first number is largest"
70 if A < B then print "The second number is largest"
75 print ""
80 goto 10
|
10 PRINT CHR$("65")
|
10 sq=62:GOSUB"LIB0:M6740"
|
atom=Al
contraction shell=S num_primitives=1 num_coefficients=1
0.02210 1.000000
contraction shell=P num_primitives=1 num_coefficients=1
0.01460 1.000000
contraction shell=D num_primitives=1 num_coefficients=1
0.0357 1.000000
contraction shell=F num_primitives=1 num_coefficients=1
0.08580 1.000000
atom=Si
contraction s... |
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
10 LET A$="ROBOTS ARE GREAT"
20 LET B$="IF YOU LIKE"
30 LET C$="GREAT METAL IDIOTS"
40 PRINT A$
50 PRINT B$
60 PRINT C$
70 END
|
Attribute VB_Name = "drawing"
Option Explicit
Option Compare Binary
Public mapRadius As Long
Public roomsize As Long
Public absX As Long
Public absY As Long
Public theCenter As Long
Public theMaximum As Long
Public boxX As Long
Public boxY As Long
Public half As Integer
Public timer As New cHiResTimer
Public Sub DrawM... |
'5200BAS -- 5200 Basic compiler
'Copyright 2001-2002 by Jeffry Johnston
CONST VERSION$ = "1.97"
'Version History
'1.97 Modified keypad debounce algorithm
' SCREEN command can now create display lists for ANTIC modes 2-15
' Work in progress: vector graphics
'1.96 Fixed CLS so it can be used when screen ... |
SHELL _HIDE "dir /b *.bas>filenames.txt"
OPEN "filenames.txt" FOR INPUT AS #1
OPEN "MetaData.csv" FOR OUTPUT AS #3
PRINT #3, "Name, lines, source, comment lines, empty lines, total comments, , source %, line comment %, empty line %, % lines commented"
outFormat$ = "& _, & _, & _, & _, & _, & _,_, ##.#_%_, ##.#_%_, #... |
10 PCLEAR 1
20 CLEAR200,&H2800
30 CLS 0
40 LOADM "MINILISP"
50 CLS
60 EXEC
|
' Program LIST / Loader | IchigoJam BASIC 1.0.0+
' original by Taisuke Fukuno https://fukuno.jig.jp/1020
' remaked by Keiichi Shiga (BALLOON | FU-SEN), 2015-2019.
' CC BY 4.0 - https://creativecommons.org/licenses/by/4.0/
10 'Program LIST / Loader
20 CLV
30 P=PEEK(#C00)
40 IF P=0 ?"Only IchigoJam":END
50 L=63:'1M=127 5... |
10 REM TEST NOT OPERATOR
20 LET A$ = "[TEXT]"
30 LET B$ = A$ * 5%
40 PRINT B$
90 END
|
10 REM TEST THE OPTION STATEMENT
20 OPTION TRACE TRUE
30 READ A,B,C
40 PRINT A,B,C
50 OPTION TRACE 1 = 0
90 DATA 1,2,3
99 END
|
1 %TITLE "Move Records from One OE Period to Another"
%SBTTL "OE_SPEC_MOVEBATCH"
%IDENT "V3.6a Calico"
!
! COPYRIGHT (C) 1993 BY
!
! Computer Management Center, Inc.
! Idaho Falls, Idaho.
!
! This software is furnished under a license and may be used and
! copied only in accordance with terms of such license... |
Attribute VB_Name = "Module1"
'Fixed angle Lists
Public FixedAng(0 To 32, 1 To 10) As Single
'Pmac "P" addresses for fixed angle lists
'addresses must match those defined in spoldefm.h
Public Const Afl1 = 640
Public Const Afl2 = 673
Public Const Afl3 = 706
Public Const Afl4 = 739
Public Const Afl5 = 772
Pub... |
' ****************************************************************************
' * Programme écrit par André LINAT 10000 TROYES AUBE *
' * Avec POWER-BASIC Version 2.1 Le 26/08/95 *
' ****************************************************************************
... |
10 SCREEN 5:OPEN "GRP:" AS #1
30 SET PAGE 0,0:CLS:PSET(100,100):PRINT #1,"ABCD" 'Страница 0 отображается и активизируется (ситуация - по умолчанию). На страницу 0 записывается небольшой текст.
50 FOR I=1 TO 1000:NEXT:SET PAGE 1,1:CLS 'Страница 1 отображается и активизируется; рисуются 8 линий.
60 FOR I=0 TO 7:FOR J=... |
0 CLEAR
10 DIM FLAG(10,10)
20 CLS:GRAPH:LOCATE 1,7:PRINT "Perfect"
30 LOCATE 2,5:PRINT "1.Start"
40 LOCATE 3,5:PRINT "2.Load"
50 LOCATE 4,5:PRINT "3.Help"
60 LOCATE 5,5:PRINT "4.Exit";
70 C$=INKEY$
80 IF C$="1" THEN 500
100 IF C$="3" THEN 300
110 IF C$="4" THEN 6200 ELSE 70
300 CLS:GRAPH:PRINT "******Help******"
310 PR... |
/* Lucky Test Smart Contract in DVM-BASIC
Test your chance!
*/
Function AddCoins(value Uint64) Uint64
10 STORE("totalamount", LOAD("totalamount") + value)
20 RETURN 0
End Function
Function CheckStatus()
10 PRINTF "Current jackpot = %d, number of tentatives = %d, started ... |
%INCLUDE STOCKDEC.J86
%INCLUDE PSBF01G.J86
%INCLUDE PSBF20G.J86
INTEGER*2 ITEMS.FILE.SESS.NUM%
INTEGER*2 PASSED.INTEGER%
INTEGER*2 CURRENT.REPORT.NUM%
INTEGER*2 RC%
INTEGER*1 STOCK.EOF%
INTEGER*1 ITEM.COUNT%
!INTEGER*4 OFFSET%
!INTEGER*2 MODE%
STRING NEW.DATE.LAST.REC$
STRING ITEMS.F... |
REM Androidz Redux (DROID2)
REM By Stephen Scott 1993, 2021
REM Annotated version
*FX3
IF PAGE<>&E00:PROCrelocate
R%=&100
H%=&130
PROCinit
MODE 2
VDU 23,1,0;0;0;0;
REM The high point of the game code mustn't
REM go beyond this memory location, otherwise
REM game data is overwritten.
HIMEM=&2763
REM Disable the Escape... |
Attribute VB_Name = "MOD_QueryFreq"
Option Explicit
Private Declare Function QueryPerformanceFrequency Lib "kernel32" (lpFrequency As Currency) As Long
Private Declare Function QueryPerformanceCounter Lib "kernel32" (lpPerformanceCount As Currency) As Long
Private curFreq As Currency
Private curStart As Curren... |
DECLARE SUB ImpostaGrafico ()
DECLARE SUB Grafico ()
DECLARE SUB ImpostaPass ()
DECLARE SUB Opzioni ()
DECLARE SUB Password ()
DECLARE SUB Calcolatrice ()
DECLARE SUB Esci ()
DECLARE SUB InserisciValori ()
DECLARE SUB Calcola ()
DECLARE SUB Colori ()
DECLARE SUB Lavora ()
DECLARE SUB Apri ()
DECLARE SUB Eli... |
10 sid=54272:dim x(500)
20 input "attack, decay, sustain,release";a,d,s,r
25 for j=sid to sid+24:poke j,0:next
27 poke sid+24,15
30 poke sid+19,16*a+d:poke sid+20,16*s:rem a,s,d
40 poke sid+14,11
42 poke sid+15,48
50 poke sid+18,0:poke sid+18,33
60 for j=0 to 25:x(j)=peek(sid+28):next
70 poke sid+18,0
80 for ... |
DECLARE SUB Pagina8 ()
DECLARE SUB Sinistra2 (AltP!, Text$)
DECLARE SUB Center2 (AltP!, Text$)
DECLARE SUB Barra (Alt, ValoreT!, Valore!)
DECLARE SUB Pagina7 ()
DECLARE SUB Pagina6 ()
DECLARE SUB Pagina5 ()
DECLARE SUB Sinistra1 (AltP!, Text$)
DECLARE SUB Pagina4 ()
DECLARE SUB Center1 (AltP!, Text$)
DECLARE ... |
Version =20
VersionRequired =20
Begin Form
RecordSelectors = NotDefault
AutoCenter = NotDefault
NavigationButtons = NotDefault
DividingLines = NotDefault
AllowDesignChanges = NotDefault
DefaultView =0
ScrollBars =0
ViewsAllowed =1
TabularFamily =127
PictureAlignment =2
Datas... |
Version =20
VersionRequired =20
Begin Report
LayoutForPrint = NotDefault
MaxButton = NotDefault
MinButton = NotDefault
ControlBox = NotDefault
AutoCenter = NotDefault
CloseButton = NotDefault
DividingLines = NotDefault
ScrollBars =0
BorderStyle =0
DateGrouping =1
GrpKeepToge... |
0 ' AUTHOR: Rich Noe Date Created 11-23-85
1 title$=" Financial Pak "
2 title$=chr$(32)+chr$(14)+chr$(15)+title$
3 title$=title$+chr$(14)+chr$(15)+chr$(32)
4 poke systab+24,1
5 a#=gb
6 gintin=peek(a#+8)
7 poke gintin+0,peek(systab+8)
8 poke gintin+2,2
9 s#=... |
' QB64 adaptation of 'Spy Eyes' from Usborne Publishing's 'Computer Spy Games' available here: https://usborne.com/browse-books/features/computer-and-coding-books/
' Adapted by Kevin Church (https://github.com/duckgames/)
' There are some odd jumps in line number, e.g. 40-60 with no 50. The original code took one line... |
200 goto460
210 :
220 :
230 rem slide subroutine
240 ifra<0thenra=r
250 rb=r:t=s+v*z7:pokevn,v*z7:pokenl,fl(ra
):pokenh,fh(ra):syss2:poket+z4,wv
+z1
260 fori=ratorbstepsgn(rb-ra)/2:poket,fl(i
):poket+1,fh(i):next
270 ifpeek(ik)=jandpeek(ik)-64then270
280 ra=rb:poket+z4,wv+p:v=v+mn*(z1+z3*(v=z
2)):retur... |
10 print"Testbspl.bas"
20 on error goto fehlerroutine
30 rem:Test for changing GOTO's and GOSUB's
40 print:rem:test for addition
50 ':test for change in REM's
60 print"***************"
70 print"test with variables a,b,x,y":input"x=";x
80 print x*x,x+x,sin(x),cos(sqr(abs(x)))
90 dim u1... |
10 COLOR 1,15,8:SCREEN2
12 FOR E=5 TO 0 STEP-.099:CIRCLE(128,96),80,1,,,E:NEXT
30 GOTO 30
|
0 REM*OSAKESˇˇSTˇJˇT*
1 REM**** SAMI.K ****
2 REM**** 1984 ****
3 REM*PC-k„„nn”s by *
4 REM*Esa Heikkinen *
5 REM* 1991 *
6 REM****************
7 F=0:KEY OFF
8 GOSUB 1100
9 SCREEN 0,0,0:WIDTH 40
10 DIM A$(12),A(12),B$(2),C(2),D(2,12),X(12)
20 FOR I=1 TO 2
30 PRINT:PRINT"Pelaajan"I"nimi":INPUT B$(I)
40 IF LEN(... |
PRIVATE SUB CMDFOR_CLICK( )
DIM IZ AS INTEGER
DIM IX AS INTEGER
CLS
IZ = 1
DO WHILE IZ <= 10
FOR IX = 1 TO 10 STEP 1
PRINT "VISUAL BASIC"
NEXT IX
IZ = IZ + 1
Loop
END SUB
|
5 PRINT TAB(34); "AWARI"
7 PRINT TAB(15); "CREATIVE COMPUTING MORRISTOWN, NEW JERSEY"
10 DATA 0
15 DIM B(13), G(13), F(50): READ N
20 PRINT: PRINT: E = 0
25 FOR I = 0 TO 12: B(I) = 3: NEXT I
30 C = 0: F(N) = 0: B(13) = 0: B(6) = 0
35 GOSUB 500
40 PRINT "YOUR MOVE";: GOSUB 110
45 IF E = 0 THEN 80
50 IF M = H THEN GOSUB... |
10 print "hallo"
20 rem [ldx #$ff]
30 rem [loopy; inc 53280]
40 rem [dex; bne loopy]
50 rem [numby=$ff; ldx #numby]
55 rem [jmp 60!; *=$c000;]
60 rem [inc 53280]
70 rem [dex; bne 60!]
80 rem [ldx HURZ]
90 rem [inc 53280]
100 rem [dex; bne 90!; jmp 110!; HURZ; .byte 255]
110 for i=250 to 260
120 i%=i:rem [lda i%!; cl... |
1 %TITLE "Material Requisition Register Maintenance"
%SBTTL "WP_MAST_REQREGISTER"
%IDENT "V3.6a Calico"
!
! COPYRIGHT (C) 1991 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 licens... |
Attribute VB_Name = "mGlobals"
Option Explicit
Private Declare Function GetForegroundWindow Lib "user32" () As Long
Private Declare Function rtcCallByName Lib "msvbvm60" (ByRef vRet As Variant, ByVal cObj As Object, ByVal sMethod As Long, ByVal eCallType As VbCallType, ByRef pArgs() As Variant, ByVal LCID As Lon... |
'
' ÛÛÛÛÛ Û Û Û ÛÛÛÛÛ ÛÛÛÛÛ ÛÛÛÛÛ Û Û
' Û Û Û Û Û Û Û ÛÛ Û
' ÛÛÛÛÛ Û Û Û ÛÛÛÛÛ ÛÛÛÛÛ ÛÛÛ Û ßÜ Û
' Û Û Û Û Û Û Û Û ÛÛ
' ÛÛÛÛÛ ÛÛÛÛÛ ÛÛÛÛÛ ÛÛÛÛÛ ÛÛÛÛÛ ÛÛÛÛÛ Û Û
' îîîîîîîîîîîîîîîîîîîîîîîîîîîîîîîîîîîîîîîîîî /îîîîîîîîîî\
' ... |
1 %TITLE "Post Load Journal"
%SBTTL "PO_POST_CALCORDER"
%IDENT "V3.6a Calico"
!
! COPYRIGHT (C) 1994 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 inclusio... |
10 REM STRING VARIABLE EXAMPLE
20 REM By: Mr. Pellegrino
30 REM 2019 09 27
40 REM
50 LET A$="HELLO"
60 LET B$="hello"
70 LET C$="Hello"
80 PRINT "WHAT IS THE WORD OF THE DAY?"
90 INPUT D$
100 IF D$=A$ THEN GOTO 150
110 IF D$=B$ THEN GOTO 150
120 IF D$=C$ THEN GOTO 150
130 PRINT "NOPE - THAT'S NOT THE WORD OF THE DAY"
1... |
10 FOR I = 0 TO 1
20 ON I + 1 GOTO 30, 50
30 PRINT "FOO"
40 GOTO 60
50 PRINT "BAR"
60 NEXT I
|
1 PRINT CHR$(26):WIDTH 80
2 PRINT TAB(30);"ONE CHECK":PRINT
4 PRINT TAB(15);"CREATIVE COMPUTING MORRISTOWN, NEW JERSEY"
6 PRINT: PRINT: PRINT
8 DIM A(64)
10 PRINT "SOLITAIRE CHECKER PUZZLE BY DAVID AHL"
15 PRINT
20 PRINT "48 CHECKERS ARE PLACED ON THE 2 OUTSIDE SPACES OF A"
25 PRINT "STANDARD 64-SQUARE CHECKER... |
10 rem window lister
63000 def fn deek(l)=peek(l)+256*peek(l+1)
63010 n=m+1:gosub 63300:l1=l:n=m+12:gosub 63300
63020 print "{clear}{blue}list" li "-" l:rem this lists 12 lines
63030 print "{blue}m=" m ":goto 63200{white}"
63040 poke631,19:poke632,13:poke633,19:poke634,17:poke635,13:poke198,5:end
63200 get x$:if ... |
5 REM Taken from Usborne's 1982 book
6 REM "Computer Battlegames"
10 CLS
20 PRINT "COWBOY SHOOTOUT -"
30 PRINT "YOU ARE BACK TO BACK"
40 PRINT "YOU TAKE 10 PACES"
50 FOR I=1 TO 10
60 PRINT I;"..";
65 FOR J=1 TO 60000
66 NEXT J
70 NEXT I
80 PRINT
90 FOR I=1 TO RND(1)*60000
100 NEXT I
110 IF INKEY$(1)<>"" THEN GO... |
0010 rem test performance
0020 LET n=100
0021 LET nw=10 // the number of windows
0022 LET nf=10
0030 LET com$="GOSUB,FOR,IF,LET=,GOTO"
0040 LET wincom$="PRINT,WINDOW,SHOW,HIDE,WPRINT"
0050 LET filecom$="OPEN,PUT,SEQ,RANDOM,DEL"
0060 LET startrun=ticks()
0900 rem get FOR/NEXT Overhead
0901 x:=gc()
0905 PRINT datentime(n... |
DECLARE FUNCTION WP% (A%)
DECLARE SUB MAKEBOAT (T%)
DECLARE SUB SELL (K%)
DECLARE SUB iven ()
DECLARE SUB outbag (index%)
DECLARE SUB INVENTORY ()
DECLARE SUB INBAG (item%)
DECLARE SUB SHOPx (PER%)
DECLARE FUNCTION WALK% ()
DECLARE FUNCTION BCOV$ (CAR%)
DECLARE FUNCTION tcov$ (TM%)
DECLARE SUB Init ()
DECLA... |
5 REM input a number, output its binary representation
10 HOME
20 TEXT : PR#3
30 LET X = 0
40 LET P = 1
50 INPUT "Enter an integer greater or equal than zero: ";A
60 IF (A < 0 OR A<>INT(A)) GOTO 50
70 LET B = A - INT (A/2) * 2
80 REM PRINT B
90 LET X = B * P + X
100 LET P = P * 10
110 LET A = (A - B) / 2
120 IF (A > 0... |
Attribute VB_Name = "FINAN_PORT_RISK_BACKTEST_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.
'*******************************************************... |
' Balloon Trip | IchigoJam BASIC
' Copyright (c) 2015 Keiichi Shiga (BALLOON | FU-SEN)
' The MIT License (MIT) - https://mit.balloon.net.eu.org/#2015
10 CLS:CLV:LET Y,11:LET L,10
20 SCROLL 1
30 IF S%L==0 LC 0,RND(25):? "+";
40 LC 35,Y:? CHR$(11);
50 LC 35,Y+1:? CHR$(12);:WAIT L
60 LET I,BTN():LET Y,Y-I+(I==0)
70 IF VPE... |
1 WIDTH 80 :REM
10 GOSUB TAB,26:PRINT "ACEY DUCEY CARD GAME" :REM
20 GOSUB TAB,15:PRINT "CREATIVE COMPUTING MORRISTOUN, NEW JERSEY" :REM
21 PRINT
22 PRINT
23 PRINT
30 PRINT "ACEY-DUCEY IS PLAYED IN THE FOLLOWING MANNER"
40 PRINT "THE DEALER (COMPUTER) DEALS TUO CARDS FACE UP"
50 PRINT "YOU HAVE AN OPTION TO BE... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.