text stringlengths 7 5.36M |
|---|
PI = 3.141592654#
DIM x(360), y(360)
FOR temp = 0 TO 360
tempang = (temp * PI) / 180
x(temp) = SIN(tempang)
y(temp) = COS(tempang)
NEXT temp
SCREEN 9
COLOR 8
FOR temp = 0 TO 360
tempang = (temp * PI) / 180
xer = 50 * x(temp)
yer = 50 * y(temp)
LINE (100 - xer, 100 - yer)-(100 - x... |
10 REM This is a test
20 READ A,B,C
30 PRINT A,B,C
40 RESTORE
50 READ A,B,C
60 PRINT A,B,C
80 DATA 10,20,30
90 STOP
99 END
|
Version =20
VersionRequired =20
Begin Form
AutoResize = NotDefault
RecordSelectors = NotDefault
MaxButton = NotDefault
MinButton = NotDefault
ControlBox = NotDefault
AutoCenter = NotDefault
NavigationButtons = NotDefault
AllowDeletions = NotDefault
CloseButton = NotDefault
Divid... |
SCREEN 12
RANDOMIZE TIMER
DIM k(6)
DIM c(6)
DIM loptulos(3)
DIM blackjack(3)
DIM win(3)
DIM panos(3)
DIM tupla(3)
DIM insuu(3)
money = 40
alku:
apukasi = 0
b = 0
tulos = 0
assa = 0
leeveen = 0
CLS
LOCATE 1, 33: PRINT "ROYAL CASINO"
LOCATE 2, 58: PRINT "BLACK JACK"
LINE (0, 0)-(605, 455), , B
LINE (382, 14)-(382, 45... |
$RESIZE:STRETCH
REM $DYNAMIC
$EXEICON:'vacuuflower_icon.ico'
_TITLE "Vacuuflower"
TYPE rectangle
AS _FLOAT x, y, w, h
END TYPE
TYPE barrier
AS rectangle coord
health AS _FLOAT
END TYPE
TYPE molecule
name AS STRING
AS rectangle coord
AS _FLOAT vx, vy
AS _FLOAT rotation
AS _BYTE display
E... |
#!/usr/bin/env yabasic
//Print out samples of both figlet and toilet fonts installed on your system.
//figlet should be able to use toilet fonts too, but I see
//best results if you use them separately.
a$ = system$("locate *.flf")
b$ = system$("locate *.tlf")
dim a$(1): dim b$(1)
numa = token(a$, a$(), "\n")
numb = ... |
1 %TITLE "Equipment Ledger Budget Report"
%SBTTL "EL_RPRT_BUDGET"
%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
! th... |
Attribute VB_Name = "Module1"
Sub testGoto()
x = InputBox("enter a value")
GoTo 1
MsgBox x
1: c = x + 8
MsgBox c
End Sub
|
10 CLS
20 PRINT"Intern-Time >>> ";TIME$
30 PRINT"Intern-Date >>> ";DATE$
40 PRINT
50 INPUT"Date [Day ] : ",A
60 IF A=0 THEN A=1
70 INPUT"Date [Month ] : ",B
80 IF B=0 THEN B=1
90 INPUT"Date [Year ] : ",C
100 PRINT
110 PRINT A;".";B;".";C
120 INPUT"Time [Hour's ] : ",D
130 INPUT"Time [Minut... |
rem basic [2049 - 40959] - TOM at $34/$35 (52/53)
rem screen [8192 - 16191] -
rem colors [1024 - 2023] -
5 poke 53280, 0 : print "{clr}"
10 poke 53272, peek(53272) or 8 : rem bit map at 8192
20 poke 53265, peek(53265) or 32 : rem bit map on
30 gosub 100
50 wait 203, 64, 64
60 end
100 for i = 8192 to 16191 : poke ... |
Version =20
VersionRequired =20
Begin Form
RecordSelectors = NotDefault
AutoCenter = NotDefault
NavigationButtons = NotDefault
DividingLines = NotDefault
AllowDesignChanges = NotDefault
DefaultView =0
AllowUpdating =4
PictureAlignment =2
DatasheetGridlinesBehavior =3
GridX =24
... |
'SERVER
_TITLE ("SERVER")
host = _OPENHOST("TCP/IP:300")
DIM SHARED users(1 TO 1000)
DIM SHARED usersName(1 TO 1000)
DIM SHARED numclients
client = _OPENCLIENT("TCP/IP:300:localhost")
hname$ = "Server Host"
DO: _LIMIT 100
newclient = _OPENCONNECTION(host)
IF newclient THEN
numclients = numclients + 1
... |
SCREEN 13
RANDOMIZE TIMER
cells = 0
r = 1
Cheat = 0
Slow = 0
col% = 2
GridX = 120
GridY = 120
skala3 = 4
DIM c(0 TO GridX + 1, 0 TO GridY + 1) AS INTEGER
DIM tmp(0 TO GridX + 1, 0 TO GridY + 1) AS INTEGER
COLOR 2
start:
r:
CLS
PRINT " - Experiment v1.0 - by SkyMan -"
PRINT ""
INPUT " Do you ... |
10 for j=49152 to 49172:read x:poke j,x:next
20 poke 2040,13:poke 53269,1
30 for j=832 to 894:poke j,255:next
40 poke 53248,100:poke 53249,53
100 poke 56333,127:poke 788,0:poke 789,192
110 poke 56333,129
120 poke 53274,2
130 x=100:d=1
140 print "{clear}{down}{space*2}{cm j}{space*16}{cm j}"
200 if peek(2)=0 go... |
SCREEN 13
x = 220
y = 45
DO
a$ = INKEY$
FOR q = 1 TO 123
NEXT
LINE (x - 56, y - 12)-(x + 23, y + 99), 0, BF
ax = x - 9
ay = y + 23
abx = x + 10
aby = y + 18
fx = x
fy = y + 85
hx = x + 10
hy = y + 85
kx = x + 2
ky = y + 60
IF a$ = CHR$(0) + "K" THEN
x = x - 5
ELSEIF a$ = CHR$(0) + "M" THEN x = x + 5... |
olevba 0.60.1.dev3 on Python 3.8.10 - http://decalage.info/python/oletools
===============================================================================
FILE: Virus.MSOffice.Toot
Type: OLE
-------------------------------------------------------------------------------
VBA MACRO ThisDocument.cls
in file: Virus.MSOffi... |
Attribute VB_Name = "INTEGRATION_ROMBERG_LIBR"
'-------------------------------------------------------------------------------------
'-------------------------------------------------------------------------------------
Option Explicit 'Requires that all variables to be declared explicitly.
Option Base 1 '... |
10 REM 'ON-ERROR-GOTO' TEST PROGRAM
20 ON ERROR GOTO 100
30 PRINT "ENTER A NUMBER AND IT'S INVERSE WILL BE COMPUTED? ";
40 INPUT N
45 IF N = -999 THEN 999
50 A=1/N
60 PRINT "THE INVERSE OF ";N;" IS ";A
70 GOTO 30
100 PRINT "THE INVERSE OF 0 CANNOT BE COMPUTED - TRY AGAIN"
110 goto 20
999 END
|
REM prints "Hello World!" one character at a time
hello$ = "Hello World!"
FOR i = 1 TO LEN(hello$)
CLS
PRINT LEFT$(hello$, i)
_DELAY .5
NEXT i
END
|
10 READ A, B, D, E
15 LET G = A * E - B * D
20 IF G = 0 THEN 65
30 READ C, F
37 LET X = (C * E - B * F) / G
42 LET Y = (A * F - C * D) / G
55 PRINT X, Y
60 GOTO 30
65 PRINT "NO UNIQUE SOLUTION"
70 DATA 1, 2, 4
80 DATA 2, -7, 5
85 DATA 1, 3, 4, -7
90 END |
Attribute VB_Name = "Sub_ABCD_PPP"
Sub ABCD_PPP(X1,Y1,Z1,X2,Y2,Z2,X3,Y3,Z3)
dim X4#,Y4#,Z4#,T#
A1 = Y2*Z3 - Y1*Z3 - Y2*Z1 + Y1*Z1 + Y3*Z1 - Y1*Z1 - Y3*Z2 + Y1*Z2
B1 = Z2*X3 - Z1*X3 - Z2*X1 + Z1*X1 + X2*Z1 - X1*Z1 - X2*Z3 + X1*Z3
C1 = Y3*X2 - Y1*X2 - Y3*X1 + Y1*X1 + Y2*X1 - Y1*X1 - Y2*X3 + Y1*X3
D1 =X1*Y1*Z3 - X1*Y2*Z3... |
10 PRINT "HELLO WORLD" |
Attribute VB_Name = "Module1"
Option Explicit
Global strDrvInfo As String, UserInfo As String
Private Declare Function FindWindowEx Lib "user32" Alias "FindWindowExA" ( _
ByVal hWnd1 As Long, _
ByVal hWnd2 As Long, _
ByVal lpsz1 As String, _
ByVal lpsz2 As String) As Long
P... |
CLS
10 DIM b(10)
20 READ a$
30 FOR I = 0 TO 10
40 b(I) = 0
50 NEXT I
60 la = LEN(a$)
70 FOR I = 1 TO la
80 b(VAL(MID$(a$, I, 1))) = b(VAL(MID$(a$, I, 1))) + 1
90 NEXT I
100 FOR I = 1 TO 9
110 FOR j = 0 TO 10 - I
120 IF b(j) < b(j + 1) THEN 140
130 temp = b(j): b(j) = b(j + 1): b(j + ... |
1 ' 80X28 TEXT SCREEN SUPPORT
2 ' BY
3 ' CLYDE JOHSNON (71170,2572)
4 '
5 '
6 'NOTE: PALETTE REGISTER 0
7 'SHOULD ALWAYS BE SET TO THE
8 'BACKGROUND COLOR OTHERWISE
9 'A SMALL LINE WILL APPEAR AT
10 'THE BOTTOM OF THE SCREEN.
11 'IF YOU ALWAYS USE CLS(1),
12 'THERE WILL BE NO PROBLEM.
13 '
1... |
0 goto 10
5 next
6 if i>12 then end
7 i=k:return
10 for i=0 to 11
20 p = -(i and 1)
25 if not(p) then 100
30 gosub 90
40 goto 5
90 for k=i to i+10
100 j=i+99.9:print i,j
110 if p then for i=i to i+2:print ">>";i
120 goto 40
|
1 ' Xts-uPocket V2 MP3 Player
2 ' MP trackNum / MPUS nb of track
3 RETM=1 : ' return to SYSMENU @ end
4 SCREEN 1 : XO=3 : YO=4
5 MPUS = 0
10 DATAF "juke","MPUS","MPNUM$","MPNAM$"
20 cls : drawpct "mp3_gui",0,0 : MP = 1 : VOL = 20 : PAU = 1 : PLY = 0 : PLF = 0
30 GOSUB 800 : ' display track num
90 MSG$ = "...Xtase is p... |
10 P=$FA0C
20 R=15:G=15:B=15
30 COLOR2,6:CLS
40 VPOKE 1,P,G*16+B:VPOKE 1,P+1,R |
'$INCLUDE: 'QBX.BI'
'$INCLUDE: 'D:\FACT3\FONTS\DRAC3.BI'
'$INCLUDE: 'D:\FACT3\FONTS\SDK_001.BI'
FASTPRINT 0, 0, 2, "Primera prova"
FOR I = 1 TO 2000
FinestraEstat "XXXXXXXXXXXXXXXXX" + LTRIM$(RTRIM$(STR$(I))) + " ", 1
NEXT
FASTPRINT 0, 0, 3, "Segona prova"
FOR I = 1 TO 10
FinestraEstat "weorihjweiorhjwperhio"... |
OPEN "c:\windows\desktop\wave1.wav" FOR BINARY AS #1
l = 20 'l„nge der laust„rkephase
' V das ist l
DIM a(1) AS STRING * 20, q(1) AS STRING * 1
FOR x = 200 TO 200000
GET #1, x, a(1)
GET #1, x, q(1)
t = 0: zz = 0
FOR y = 1 TO l
t = ASC(MID$(a(1), y, 1)) - 128
IF t ^ 2 > zz ^ 2 THE... |
OPTION DIALECT MODERN
PRINT "EXAMPLE BASIC PROGRAM"
Y = 0
WHILE Y<2:X=0
WHILE X<10
X=X+1:PRINT X,
WEND
Y=Y+1:PRINT ">>>";Y
WEND
if X<>10 OR Y<>2 THEN PRINT "TEST FAILED"
|
170 DIM X(3),Y(3),XD(3),YD(3)
180 SCREEN2:R=150:XL=100:YU=50:N=60
220 X(0)=XL:X(1)=XL+R:X(2)=XL+R:X(3)=XL
230 Y(0)=YU+R:Y(1)=YU+R:Y(2)=YU:Y(3)=YU
240 SMU=.08:RMU=1-SMU
250 FOR I=1 TO N:FOR J=0 TO 3
260 XD(J)=RMU*X(J)+SMU*X((J+1)MOD4)
270 YD(J)=RMU*Y(J)+SMU*Y((J+1)MOD4)
280 NEXT
290 FOR J=0 TO 3:LINE (X(J),Y(J)... |
10 HOME
15 HGR2
16 HGR
17 POKE 49234,0:REM "FULL GRAPHICS MODE"
18 S=0
19 Y=0
21 DIM YP(3):YP(1)=0:YP(2)=0:YP(3)=20:REM "PREV PG1,PG2 AND CURRENT COORDS FOR PLAYER"
22 DIM YE(3):YE(1)=0:YE(2)=0:YE(3)=20:REM "PREV PG1,PG2 AND CURRENT COORDS FOR ENEMY"
23 DIM YB(3):YB(1)=0:YB(2)=0:YB(3)=20:REM "PREV PG1,PG2 AND CURRENT ... |
10 PRINT "BINOMIAL DISTRIBUTION"
20 PRINT
30 DIM M(3)
40 PRINT "(TO END PROGRAM ENTER 0)"
50 PRINT "NUMBER OF TRIALS";
60 INPUT N
70 IF N=0 THEN 270
80 PRINT "EXACT NUMBER OF SUCCESSES";
90 INPUT X
100 PRINT "PROBABILITY OF SUCCESS";
110 INPUT P
119 REM - COMPUTE THE FACTORIALS
120 M(1)=N
130 M(2)=X
140 M... |
Version =20
VersionRequired =20
Begin Form
AutoCenter = NotDefault
AllowDesignChanges = NotDefault
TabularFamily =0
PictureAlignment =2
DatasheetGridlinesBehavior =3
GridX =24
GridY =24
Width =15210
DatasheetFontHeight =10
ItemSuffix =33
Left =375
Top =4335
Right =15... |
Attribute VB_Name = "N_ObfParserVBA"
'* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
'* Module : N_ObfParserVBA - парсер кода VBA
'* Created : 08-10-2020 14:12
'* Author : VBATools
'* Contacts : http://vbatools.ru/ https://vk.com/vbatools
'* Copyright : VBATools.... |
3DIMDD9;@=0;T=0;M=6;P=0;E=#8203;F=#2800;O=0;H=#2840;Q=#2880
21F.Z=0TO440;E?Z=0;N.
23P.$12
24?#E1=0
25F.Z=1TO15;F.X=0TOZ;P." ";N.
30P."THE QUEST"';N.Z;F.Z=1TO250;WAIT;N.
31P.$30;?#E1=0
32P.'''''''" a nick foale creation"';F.Z=0TO220;WAIT;N.
35P.$12"GOOD MORROW OH BRAVE ONE,I BE"'"THE INN-KEEPER."
... |
SCREEN 12
FOR i% = 1 TO 15
COLOR i%
PRINT "SCREEN"
NEXT
|
0 rem test with variable
10 a=2
20 on a goto 30,40
30 print "failure"
40 print "success"
|
def text t {
content = "https://bilibili.github.io/bas/"
fontSize = 3%
fontFamily = "黑体"{
x = 5%
y = 50%
alpha = 0
color = 0x84D3FE
scale = 0.2
}
anchorX = 0
anchorY = 0.5
duration = 2s
}
set t {
y = 80%
alpha = 1
scale = 0.5
}
0.3s,"ease-o... |
SCREEN 12
WINDOW (-12, 9)-(12, -9)
PI = 3.141593
a = 1.2
CIRCLE (0, 0), a
PSET (a, 0), 3
FOR n = 0 TO 100
t = 2 * PI * n / 80
X = a * (COS(t) + t * SIN(t))
Y = a * (SIN(t) - t * COS(t))
LINE -(X, Y), 3
IF n MOD 10 = 0 THEN LINE (a * COS(t), a * SIN(t))-(X, Y), 3
NEXT n
|
' This script is an example of the EMDO101 energy manager
' Please visit us at www.swissembedded.com
' Copyright (c) 2011 - 2015 swissEmbedded GmbH, All rights reserved.
' This example reads the EMDO101 on board temperature sensor
' and send the value over LoRa. If a message is received from another sender, it is echoe... |
1 rem: Author: Adriano Hernandez
2 rem: Date: 22 February 2017
3 rem: This simple basic code provides functionality
4 rem: for a bounded, inclusive, integer random subroutine
5 rem: as well as a bounded, uninclusive, floating point
6 rem: random subroutine.
7 rem: Floating point subroutine is at 100.
8 rem: Inte... |
10 LET X = 0
11 LET Y = 0
12 LET I = 1
20 IF I > 5 THEN 99
21 PRINT "Iteration", INT(I)
22 GOSUB 50
23 GOSUB 70
24 LET I = inc(I)
25 PRINT ""
26 GOTO 20
50 REM increase x and decrease y -----------------------------------------------
51 LET X = inc(X)
52 LET Y = Y - 1
53 RETURN
60 REM print x and y --------... |
Version =20
VersionRequired =20
Begin Form
AutoResize = NotDefault
RecordSelectors = NotDefault
MaxButton = NotDefault
MinButton = NotDefault
ControlBox = NotDefault
NavigationButtons = NotDefault
CloseButton = NotDefault
DividingLines = NotDefault
DefaultView =0
BorderStyle =1
... |
SCREEN 12
DEFINT A-Z
DO WHILE INKEY$ = ""
speed = 1
RANDOMIZE TIMER
'Select plaid colors-for backdrop---
k1 = 4: k2 = 8: k3 = 0: cc = 31: aa = 480
b2 = 480: d2 = 480: i1 = 8: i2 = 8
GOSUB backdrop
'--------------
a = 50: B = 50: c = 25
d1 = 1: d2 = 1: d3 = 1: d4 = 1
k1 = 10: k2 = 13: k3 = 0
FOR m = 1 TO 9463
IF ... |
100 ' RESTAURANT
110 ' BY DAVID MANN
120 CLEAR 500:GOSUB 3040
121 CLS
125 INPUT"DO YOU WANT INSTRUCTIONS";QQ$:IFLEFT$(QQ$,1)="Y" THEN GOSUB10000
130 GOSUB2350
140 GOSUB 350
150 TM=2500:NR=1:LV=1:NW=5:NS=1
160 GOSUB 1350
170 GOSUB 480
180 GOSUB 990
190 GOSUB 2450
200 IFAZ=0THEN220
210 GOSUB2220
220 GOSUB 2000:TF=SK+FB
... |
#PBFORMS CREATED V2.01
'------------------------------------------------------------------------------
' The first line in this file is a PB/Forms metastatement.
' It should ALWAYS be the first line of the file. Other
' PB/Forms metastatements are placed at the beginning and
' end of "Named Blocks" of code that should ... |
10 SCREEN 1
20 A$=RIGHT$("0000000000000000"+BIN$(BASE(5*1+0)),16)
30 ?A$:B$=RIGHT$("00000000"+BIN$(VDP(2)),8):?B$ 'Читаем текущий адрес PNT
|
10 PRINT CHR$(12);"!!!!! ATTENTION: THE BEES ARE ATTACKING !!!!!!"
15 PRINT "BEGIN DEFENSE PLAN: "
20 PRINT "TIME: 1"
30 PRINT "ENTER YOUR LAST NAME FOR IDENTIFICATION CHECK"
40 INPUT N$
50 PRINT "ENTER CODE WORD FOR LATER VERIFICATION"
60 INPUT C$
3370 REM CREATE TWO INITIAL SWARMS
3380 RANDOMIZE
3382 DIM E(21),S(... |
1 %TITLE "Posting to IC System"
%SBTTL "IC_TRAN_POST"
%IDENT "V3.6a Calico"
FUNCTION LONG IC_TRAN_POST(LONG OPT, &
LONG SUBOPT, &
STRING BATCH_NUMBER, &
STRING TITLE(), &
UTL_REPORTX_CDD UTL_REPORTX, &
IC_TRANSACTION_CDD IC_TRANSACTION_POST, &
STRING ICPERIOD)
!
! COPYRIGHT (C) 1989 BY
!
! Computer... |
10 X = 1
20 Y = 2
30 Z = X / Y
40 PRINT Z
50 END
|
Attribute VB_Name = "mSSaver"
Option Explicit
Public DisplayHwnd As Long ' Hwnd of display form
Public DispRec As RECT ' Rectangle values of display form
Public PrevWndProc As Long ' Previous window proc (used in subclassing)
Public RunMode As Long ... |
10 PRINT "Hello, minoJiro!"
20 END
|
' Copyright (c) 1990 Crescent Software
DEFINT I-N
DEFDBL A-H, O-Z
SUB NORMAL (IFLAG, X, PROB) STATIC
' Normal distribution subroutine
' Input
' IFLAG = type of computation
' 1 = given x, compute probability
' 2 = given probability, compute x
' Output (or input)
' X ... |
' Copyright (c) 1990 Crescent Software
DEFINT I-N
DEFDBL A-H, O-Z
SUB INTERP1 (N, X(), Y(), XVAL, FVAL) STATIC
' Linear interpolation subroutine
' y = f(x)
' Input
' N = number of X and Y data points ( N >= 2 )
' X() = vector of X data ( N rows )
' Y() = vector of Y data ( N rows )... |
10 CLS:KEY OFF:COLOR 7,0,1:DIM SHOT(8)
20 RANDOMIZE TIMER:LOCATE 17,67:PRINT "|` '|"
30 LOCATE 5,27:PRINT "/'\ \,/ \,/ \ /"
40 LOCATE 6,43:PRINT "/'\ /'\"
50 LOCATE 7,67:PRINT "/ \"
60 LOCATE 9,63:PRINT "/V\ /V\"
70 LOCATE 10,64:PRINT "' `"
80 LOCATE 15,... |
100 ' SQR sample
110 PRINT " << SQUARE ROOT TABLE >>"
120 FOR N=0 TO 10
130 PRINT "N =";N,"ROOT(N) =";
140 PRINT SQR(N)
150 NEXT N
160 END
|
'$INCLUDE:'bin\backup\library\spritetop.bi'
TYPE RECT
left AS LONG
top AS LONG
right AS LONG
bottom AS LONG
END TYPE
TYPE buttonimage
true AS INTEGER
false AS INTEGER
END TYPE
TYPE button
inuse AS _BYTE
show AS _BYTE
value AS _BYTE
status AS _BYTE
click AS _BYTE
hit A... |
10 PRINT "0\n"
20 PRINT "1\n"
30 LET a = 1
40 LET b = a + a
50 PRINT a, "\n"
60 PRINT b, "\n"
70 LET a = a + b
90 LET b = a + b
100 PRINT a, "\n"
110 PRINT b, "\n"
120 IF a < 1000000 THEN goto 70
|
10 PRINT "PROGRAM FILE 24: PLUS AND MINUS"
20 PRINT " ANSI STANDARD 7.2, 7.4"
30 PRINT
40 PRINT "THIS PROGRAM TESTS THE GROSS SEMANTIC CHARACTERISTICS OF"
50 PRINT "THE PLUS AND MINUS OPERATORS FOR THE CONSTRUCTION OF"
60 PRINT "NUMERIC EXPRESSIONS."
70 PRINT
80 PRINT "EXPRESSIONS USING ONLY ONE OPERATOR AND CONSTAN... |
REM SIMPLE INTEREST CALCULATOR
CLS
INPUT "Enter the principal: "; P
INPUT "Enter the duration: "; T
INPUT "Enter 1. Savings Account OR 2. Current Account"; R
PRINT
PRINT
LET R1 = 12.7
LET R2 = 7.5
SELECT CASE R
CASE 1
PRINT "=====================";
PRINT " Account Type: Savings ";
PRINT "... |
1 'Programm: HALLO.BAS
2 'Funktion: Sprachausgabe mit BASIC
3 'Sprache : GW-Basic
4 'Autor : John Lupton
6 input r:
7 if r>0 then z=int(1193280! / R)
10 f=1850:i=97:dim d(f):b=.2
20 out 67,182:out 66,z and 255:
21 out 66,z\256:h=inp(i) or 3:
22 out i,h:l=inp(i) and 252:
23 out i,l
30 key(1) on: key(2) on: ... |
10 DEFSTR A-D: DEFINT E-Z : Q$=CHR$(34)
11 REM MYRS2MB (v) 1.0 28 May 1983 by Ed Mahoney
12 REM *******************************************************************
13 REM This program will convert a Radio Shack BASIC program to a
14 REM Microsoft MBASIC 5.1 program.
15 REM Instructions are given as the ... |
REM Joshua Hipple - MiniQuiz 3
REM Create a menu system
CLS
DO
GOSUB DisplayMenu
SELECT CASE Choice$
CASE "1"
GOSUB CISMenu
CASE "2"
GOSUB ProgMenu
CASE "3"
GOSUB EconMenu
CASE "4"
GOSUB PhotoMenu
CASE ELSE
END SELECT
LOOP UNTIL Choice$ = "5"
END
REM ** DisplayMenu **
REM ** Display ... |
'_|_|_| LIGHTBAR.BAS
'_|_|_| Program to demonstrate scrolling text with lightbar.
'_|_|_| No warrantee or guarantee is given or implied.
'_|_|_| Released to PUBLIC DOMAIN by Kurt Kuzba. (8/20/96)
DECLARE FUNCTION TagBar$ (r%)
RANDOMIZE (TIMER * INP(64) + INP(64))
DIM SHARED tags$(100)
FOR t% = 0 TO ... |
ven = 0
aus = 0
finl = 0
dias = 30
COLOR 3, 4
CLS
LOCATE 12, 31: PRINT "Super arqueologos"
REM PLAY "l20aabbbccgdgdgdgdaaa"
PLAY "l10aabaabl5ab"
DO
LOOP WHILE INKEY$ = ""
CLS
COLOR 10, 1
0 CLS
PRINT " LA HISTORIA "
PRINT " Vos sos el arqueologo Francis Grinpel hiciste un trato c... |
Check 075279D1
Auto 1
10 REM BEEP
20 REM (c)2015 deKay
30 REM dekay.co.uk
40 REM CSSCGC 2015
50 REM No aardvarks were harmed creating this game
90 CLS
100 PAPER 1: INK 7: BORDER 1: CLS
110 BEEP 1,0
120 PRINT AT 1,7; INVERSE 1; FLASH 1;"Welcome to BEEP"
130 PRINT : PRINT " by deKay for the CSSCGC 2015"
... |
CLS
IF COMMAND$ = "" THEN
PRINT "PC Speaker Sound Player by Frenkel Smeijers, March 23 2002."
PRINT "Usage: sndplay [sound file]"
PRINT "Example: sndplay sounds.ck1"
END
END IF
OPEN COMMAND$ FOR BINARY AS #1
IF LOF(1) = 0 THEN
PRINT "Can't find " + COMMAND$
CLOSE #1
KILL COMMAND$
END
END ... |
Attribute VB_Name = "ExceltoCalendarModule"
Option Explicit
Sub ftpDownload()
Dim thisDownload As downloadClassLibrary.downloadComClass
Set thisDownload = New downloadClassLibrary.downloadComClass
CreateObject("WScript.Shell").PopUp "The download might take a minute. Please wait until" & vbCr &... |
5 PR#3 : REM NEEDED TO ACTIVATE 80-COLUMN TEXT MODE ON APPLE IIE
10 REM SUPER STARTREK - MAY 16,1978 - REQUIRES 24K MEMORY
30 REM
40 REM **** **** STAR TREK **** ****
50 REM **** SIMULATION OF A MISSION OF THE STARSHIP ENTERPRISE,
60 REM **** AS SEEN ON THE STAR TREK TV SHOW.
70 REM **** ORIGINAL PROGRAM ... |
10 REM *************************************************************************
20 REM * Calculo de f. de T. de filtros a capacitor chaveado multifasicos *
30 REM * Autor: Antonio Carlos Moreirao de Queiroz - COPPE/UFRJ - 1985 *
40 REM * Versao 1.3 de 03/06/1985 Corrigido para no. impar de incognitas ... |
'$INCLUDE:'commoninit_slim.bi'
a = 100
lps = 2
s = 30
REDIM a(a, 4) AS SINGLE
RANDOMIZE TIMER
FOR x = 1 TO a
a(x, 1) = INT(RND * 640 + 1)
a(x, 2) = INT(RND * 480 + 1)
a(x, 3) = RND * s / lps
a(x, 4) = SQR(s ^ 2 - a(x, 3) ^ 2)
NEXT x
SCREEN 12
DO
_LIMIT lps
CLS
FOR x = 1 TO a
p ... |
'********** Insert.Bas - inserts a string into an array
'Copyright (c) 1988 Ethan Winer
'rough timing on an 8MHz AT: 0.06 seconds to insert/delete 3000 elements
DEFINT A-Z
DECLARE SUB InsertStr (BYVAL Address, Inserted$, Size)
DECLARE SUB DeleteStr (BYVAL Address, Size)
CLS
PRINT TAB(15); "Before:"; TAB(50); "Aft... |
10 rem machine code demo
20 rem print 'a' on the screen
30 code = 828 : rem place code in the tape buffer (828-1020)($033c-$03fc)
40 for loop = 0 to 5
50 read byte
60 poke code + loop,byte
70 next loop
90 rem machine code data - 6 bytes
100 data 169,65 : rem $a9, $41 - lda #asc"a"
110 da... |
10 '***********************
20 '* *
30 '* GO *
40 '* *
50 '* J.W.L *
60 '* *
70 '***********************
80 CLS:W=0
90 FOR I=274 TO 598 STEP 18
100 LINE(I,6)-(I,258)
110 NEXT I
120 FOR J=6 TO 258 STEP 14
130 LINE(274,... |
' ENCRYPTC.FRM
Option Explicit
Sub Command3D1_Click ()
Dim l0020 As Variant
Dim l002A As Variant
Dim l002E As Variant
If Text2.Text = "" Then GoTo 10
For l0020 = 0 To List1.ListCount - 1
l002A = List1.List(l0020)
l002E = InStr(1, l002A, Text2.Text, 1)
If l002E Then
If Len(Text2.Text) = Len(l002A) Then
GoTo 10
End I... |
10 'MEMORY 23999: ' dada demo hace el suyo
20 'LOAD "!8bp.bin":' cada demo carga el suyo
30 MODE 1:CALL &BC02: PEN 1
40 LOCATE 10,1:PRINT " ** **** ****"
50 LOCATE 10,2:PRINT " * * * * * *"
60 LOCATE 10,3:PRINT " * * * * * *"
70 LOCATE 10,4:PRINT " ** *** ***"
80 LOCATE 10,5:PRINT " * * * * ... |
CHDIR ".\programs\samples\thebob\abacus"
'****************************************************************************'
'
'------------------------- A B A C U S 1 2. B A S ---------------------------'
'--------------- Copyright (C) 2007 by Bob Seguin (Freeware) ----------------'
'
'************************************... |
10 KEY OFF
20 CLS
30 OPEN "COM1:1200,N,7,2,RS,CD,DS,CD"AS #2
40 A$="D"
50 PRINT #2,A$;
60 INPU$=INPUT$(14,#2)
65 IF INKEY$="" THEN 70 ELSE CLS:END
70 WERT$=LEFT$(INPU$,9)+" "+RIGHT$(INPU$,5)
80 LOCATE 1,1
90 L=0
100 COLOR 15
110 PRINT WERT$
120 IF MID$(INPU$,3,1)="-" THEN LOCATE 3,1:COLOR 9:PRINT"- NEGATIV"... |
10 :REM'BANDWDTH - 08 OCT 96 rev. 08 APR 97
20 IF EX$=""THEN EX$="EXIT"
30 CLS:KEY OFF
40 COLOR 7,0,0
50 UL$=STRING$(80,205)
60 U$="###.###"
70 M$="###.#"
80 X$=STRING$(80,32)
90 COLOR 15,2
100 PRINT " BANDWIDTHS";TAB(62);"by L.B.Cebik W4RNL ";
110 PRINT STRING$(80,32);
120 LOCATE CSRLIN-1,20:PRINT "Edited for HAMCALC ... |
Attribute VB_Name = "mzzSMLib15"
Option Explicit
#If Win16 Then 'Conditional Compile statements
Declare Sub SetWindowPos Lib "User" (ByVal hWnd As Integer, ByVal hWndInsertAfter As Integer, ByVal X As Integer, ByVal Y As Integer, ByVal cx As Integer, ByVal cy As Integer, ByVal wFlags As Integer)
#Else
Declare ... |
60000 input "renumber from,to ";l,h
60005 input "start, increment ";s,i
60010 dim l(600,2):a=2049:b=256:j=-1
60100 j=j+1:l(j,0)=peek(a+2)+b*peek(a+3):l(j,2)=a+4
60105 if l(j,0)<l or l(j,0)>h then l(j,1)=l(j,0):goto 60120
60110 l(j,1)=s+r*i:r=r+1:nl=l(j,1)
60115 poke a+2,nl-int(nl/b)*b:poke a+3,nl/b
60120 a=peek(... |
' recursion
SUB SUM(n)
IF n = 1 THEN
LET SUM = 1
ELSE
LET SUM = n + SUM(n - 1)
END IF
END SUB
SUB Main
PRINT SUM(100)
END SUB
|
SUB smarts
CALL events
slush = 0: who = 3 - side
c = 9: IF side = 1 THEN c = 15
LOCATE 1, 1: PRINT SPACE$(80);
COLOR c: LOCATE 1, 10: PRINT force$(who); " Side is making decisions";
CALL starfin(star, fin, who)
' Check Supply
FOR i = star TO fin: IF armyloc(i) > 0 AND supply(i) < 1 THEN CALL resu... |
10 ' Sunrise-Sunset
20 GOSUB 300
30 INPUT "Lat, Long (deg)";B5,L5
40 INPUT "Time zone (hrs)";H
50 L5=L5/360: Z0=H/24
60 GOSUB 1170: T=(J-2451545)+F
70 TT=T/36525+1: ' TT = centuries
80 ' from 1900.0
90 GOSUB 410: T=T+Z0
100 '
110 ' Get Sun's Position
120 GOSUB 910: A(1)=A5: D(1)=D... |
10 REM TEST OPEN OUTPUT
20 RECORD A,B,C
30 OPEN 2, "data.txt"
40 FOR I = 0 TO 2
50 READ A,B,C
60 PUT 2,20,I
70 NEXT I
80 CLOSE 2
90 DATA 11,12,13, 21,22,23, 31,32,33
99 END
|
DECLARE SUB valitsestrattie ()
DECLARE SUB ku (kuz%, ku1%, ku2%)
DECLARE SUB wnd (sex%)
DECLARE SUB rela ()
DECLARE SUB gene ()
DECLARE SUB muutmestarit ()
DECLARE SUB maaritakarakter ()
DECLARE SUB hahaa (haha%)
DECLARE SUB pjn ()
DECLARE SUB qelp (qel%)
DECLARE SUB pirtar1 ()
DECLARE SUB pirtar2 ()
DECLAR... |
0 '
1 'Gemdefs definiert saemtliche Variablen, die unter C standardmaessig
2 'fuer die Arbeit mit GEM vordefiniert sind.
3 '
4 '
5 DEF PROC Gemdefs
6 'MULTI EVENT FLAGS
7 K_Rshift%L=$1:K_Lshift%L=$2:K_Ctrl%L=$4:K_Alt%L=$8
8 Scr_Mgr%L=$1:Ap_Msg%L=0
9 Mu_Keybd%L=$1:Mu_Button%L=$2:Mu_M1%L=$4:Mu_M2%L=$8:Mu_Mesag%L... |
10 R=$F
20 GB = $F0
30 VPOKE 1,$FA00,GB
40 VPOKE 1,$FA01,R
50 END |
COLOR 15
10 CLS
PRINT " Silly Sentence Maker"
PRINT "-----------------------------------------------------------------------------"
RANDOMIZE TIMER
a = INT(RND * 5) + 1
IF a = 1 THEN b$ = "Eric"
IF a = 2 THEN b$ = "Scott"
IF a = 3 THEN b$ = "Brian"
IF a = 4 THEN b$ = "Anthony"
IF a = 5... |
Attribute VB_Name = "MShowHide"
Option Compare Text ' THIS ENFORCES case-insensitive comparison in code, EVERYWHERE
Option Explicit ' REQUIRE VARIABLES TO BE DEFINED
' ==== Private Const ERR_BASE As Integer = 1900
Const MimbMinRange As String = "MimbMinRange"
Const version1_0 As String = "1.0"
Const version2_0 ... |
REM "---------------------------------------"
REM "Prints alphabets from a to z and z to a"
REM "---------------------------------------"
A% = 65
Z% = 90
sa% = 97
sz% = 122
PRINT "Alphabets with their ASCII code"
PRINT
REM "Prints alphabets with their ASCII code from A to Z"
FOR m% = A% TO Z% STEP 1
... |
8 DIM RE$(50),FL$(50)
10 HOME : PRINT "LIST Lister"
12 PRINT : PRINT CHR$ (4)"CATALOG": PRINT
15 PRINT "Enter a blank line for main menu."
17 INPUT "List to print: ";PL$
18 IF PL$ = "" THEN PRINT CHR$ (4)"RUN MAINMENU"
20 PRINT CHR$ (4)"OPEN ";PL$: PRINT CHR$ (4)"READ ";PL$
25 INPUT X
28 ... |
10 MODE8:DIM:GOSUB500:c$=CHR$(5):n=1:p=0:DEFCHR$(254)="3E02040830"
20 CLS:PRINT"Percentage points t(x,þ)";
30 z=n:s$="þ":GOSUB400:n=z:IFn=<0 ORFRACn<>0 THEN30
40 z=p:s$="p":GOSUB400:p=z:IFp=<0 ORp>=1 THEN40
60 LOCATE0,1:PRINTc$;".....";
70 sr=0:GOSUB"LIB0:S6430":GOSUB500:IFsr THEN*
75 IFx THENx=ROUND(x,LOG(ABSx)-6)
8... |
/'
Copyright (c) 2011, SavedCoder.
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the
following d... |
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
' Micromite_GPS_LoRa_Mote_5v12.bas
' 2020 November 05. Turn off DutyCycleReq Duty Cycle Request after join otaa. Duty Cycle control remains at Micromite Application level.
' Change "sys sl... |
COMMON SHARED name$, career$
DECLARE SUB keeper ()
CLS
OPTION BASE 1
DIM SHARED existname$(100)
OPEN "./save/CAREER/NAMES.TXT" FOR INPUT AS #1
y = 1
DO UNTIL EOF(1)
INPUT #1, existname$(y)
y = y + 1
LOOP
CLOSE
askname:
LINE INPUT "What is your name? ", name$
LET name$ = UCASE$(name$)
g = 1
DO UNTIL existname... |
5 'from Lauwerier H., 1991. "Fractals Images of Chaos" Penguin 209p.
10 'Bifurcation of the Vehulst Model
20 'with the Bifurcation Diagram after Collet
30 'Name: COLLET
40 SCREEN 1: CLS : LOCATE 10, 1
50 PRINT "Iteration of X:=AX(1-X) for successive"
60 LOCATE 12, 14: PRINT "Values of A"
70 FOR i = 0 TO 10000... |
DECLARE SUB PlayGame ()
DECLARE SUB Intro ()
CLS
SCREEN 13
COLOR 15
DIM SHARED a$(20), letloc(20), b$(20)
CALL Intro
CALL PlayGame
SUB Intro
COLOR 15
LOCATE 15, 14
PRINT "Dynamo Software"
SLEEP 1
FOR i = 30 TO 16 STEP -1
COLOR i
LOCATE 15, 14
PRINT "Dynamo Software"
start = TIMER: WHILE TIMER < (star... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.