text stringlengths 7 5.36M |
|---|
10 sq=3:GOTO"LIB0:M6510"
|
;TOP DOWN ASSEMBLY LANGUAGE PROGRAMMING FOR YOUR VIC-20 AND C64
;
;BASIC PROGRAM TO SAVE ANY MACHINE LANGUAGE
;ON TAPE OR DISK
;
;PAGE 169
;
10 DEVICE =12364
20 LNGTH =12365
30 NAME =12366
40 MLSAV =12386
50 SETADS = 13795
60 :
100 PRINT "SAVE A MACHINE LANGUAGE PROGRAM''
110 PRINT
120 INPUT "FILE NAME";NAME$
125 IF L... |
' Program "DEMOSFIT" December 20, 1993
'
' Copyright (c) 1989, 1990, 1993 Crescent Software
'
' This program demonstrates the procedure for calling
' the subroutine SURFIT which calculates fitting
' coefficients for 3-dimensional surfaces of the form
' z = f(x,y) from X, Y and Z data points input by t... |
10 LET S$="abc123"
20 PRINT LEN (S$)
30 PRINT RIGHT$(S$,2)
40 PRINT LEFT$(S$,2)
50 PRINT MID$(S$,1,1)
60 PRINT "abc";"xyz"
70 PRINT STR$(11.2)
80 PRINT VAL("500")
|
10 CLEAR 24831
20 LOAD "hello" CODE 24832
30 RANDOMIZE USR 24832
|
'GERON.BAS
'Программа на языке BASIC
'Разработана учеником 10"Б" Раковым Дмитрием
'Предназначена для вычисления площади треугольника по его сторонам
CLS
vvod:
CLS
LOCATE 10, 30: INPUT "введите сторону a"; A
CLS
LOCATE 10, 30: INPUT "введите сторону b"; B
CLS
LOCATE 10, 30: INPUT "введите сторону c"; C
P = (A + B + C) /... |
100 REM PURPOSE: VERIFY 'ASC' AND 'CHR$'
110 REM AUTHOR: HOWARD WULF, AF5NE
120 REM DATE: 2017-03-05
130 REM NOTE: OPTION VERSION BYWATER
140 REM
150 REM
160 REM
170 REM --------------------
180 PRINT " I", " L", " A"
190 PRINT " ===", " ===", " ==="
200 FOR I = 0 TO 255
210 LET A$ = CH... |
1 REM *** TALOUSELAMAN SIMULOINTI ***
2 REM PERUSMUODOSSA NAHDAAN HINTOJEN JA PALKKOJEN KILPAJUOKSU
3 REM ANTTI J. YLIKOSKI 20.4.2007
4 REM LUKION ATK-KOULUTUKSEN MUKAAN
10 P1 = 100: I1 = 100: H1 = 100: REM INDEKSIT ALKAVAT 100:STA
15 READ LKM: REM SIMULOITAVIEN KIERROSTEN MAARA
20 P2 = 100: REM MUUTTUJIEN ALKUAR... |
10 cls
15 times% = 10
20 print "Press any key ", times%, " times";
25 for i% = 0 to times%
30 key% = inkey$
35 while key% = 0
40 key% = inkey$
45 wend
50 print "You pressed: ", key% ;
60 print "Pressed iteration: " , i% ;
70 next i%
80 end
|
'cls
? chr$(27)+"[90m";
? "**************************"
? "ELIZA"
? "CREATIVE COMPUTING"
? "MORRISTOWN, NEW JERSEY"
?
? "ADAPTED FOR IBM PC BY"
? "PATRICIA DANIELSON AND"
? " PAUL HASHFIELD"
?
? "PLEASE DON''T USE COMMAS"
? "OR PERIODS IN YOUR INPUTS"
? "*************************"
?:?:?
'' INITIALIZATION
DIM S(36)... |
900CALLreset_grid:PROCpoke(alt_ptr,grp_map-&80)
910END
1000PROCginit
1010PROChelp
1020R%=0:C%=0:M$=" "
1030REPEAT
1040PRINTTAB(0,1);:PROCdisp_cands(R%*9+C%):PRINTTAB(30,1);M$:D%=FNsolved(R%*9+C%):PROCwrt_digit(C%,R%,10):M%=FNpeek(scr_ptr)+40
1050K$=INKEY$10
1060N%=R%*9+C%+cands_17:IF?N%=&7F ANDN%?81=&C0 PROC... |
Attribute VB_Name = "OPTIM_GENETIC_PIKAIA_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.
'-----------------------------... |
Operation =1
Option =0
Where ="(((dbo_CompanyEmployee.PR)=3))"
Begin InputTables
Name ="dbo_CompanyEmployee"
Name ="dbo_CompanyEmployeeShift"
Name ="dbo_CompanyEmployeeBreak"
End
Begin OutputColumns
Expression ="dbo_CompanyEmployee.ID"
Expression ="dbo_CompanyEmployee.FN"
Expression ="dbo_Compa... |
option explicit
dim hh as long
function getAddressOfCallback(addr as long) as long
'
' https://renenyffenegger.ch/notes/development/languages/VBA/language/operators/addressOf
'
getAddressOfCallback=addr
end function
sub main ' {
dim hWnd as longPtr
dim regClass as integer
dim tq84Cla... |
'$SubTitle:'Routines for Loading and Saving Object Databases'
DEFINT A-Z
'$INCLUDE: 'XRefCnst.bi'
'$INCLUDE: 'XRefType.bi'
'$INCLUDE: 'XRefComn.bi'
'$LINESIZE:95
DECLARE FUNCTION DosError% ()
DECLARE FUNCTION ErrorMsg$ (ErrorNum)
DECLARE FUNCTION FileSize& (FileName$)
DECLARE FUNCTION FLInput$ (Handle, Buffer$)
DEC... |
10 SCREEN 9
LINE (1, 170)-(640, 170), 8
LINE (320, 0)-(320, 360), 8
x = -500
sy = 170
sx = -1
ssx = sx: ssy = sy
20
sx = (x * 5) + 320
ssx = sx: ssy = sy
30 sy = 170 - (y / 999)
IF sy > 360 THEN sy = 360: ssy = 360
IF sy < 0 THEN sy = -1: ssy = -1
IF sx > 640 THEN sx = 640
IF sx < 0 THEN sx = 0
40 LINE (... |
10 GOTO310
100 DATAAc Actinium 89(7-3a) 227.0278
101 DATAAg Silver 47(5-1b) 107.8682
102 DATAAl Aluminium 13(3-3b) 26.98154
103 DATAAm Americium 95(7-3a) (243)
104 DATAAr Argon 18(3-0) 39.948
105 DATAAs Arsenic 33(4-5b) 74.9216
106 DATAAt Astatine 85(6-7b) (210)
107 DATAAu Gold 79(6-1b) 196.9665
108 DATAB Boron 5(2-3b)... |
10 DEFINTA-X:INPUT"R";R:C=R-1:D=C
20 IFR=1THEN50
30 Q=R*R:T=D*D:N=R*.7071:FORI=2TON
40 IFT>Q-I*ITHEND=D-1:T=D*D:GOTO40:ELSEC=C+D:NEXTI
50 PRINT"Pontos:";4*(R+2*C-N*N)+1
|
DECLARE SUB bmpload (data1$)
DIM SHARED outline(1 TO 6900)
DIM SHARED map(1 TO 100, 1 TO 100)
DIM SHARED mapact(1 TO 100, 1 TO 100)
DIM SHARED dispmap(1 TO 11, 1 TO 8)
DIM SHARED startpntx
DIM SHARED startpnty
SCREEN 13
data1$ = "D:\outline.bmp"
CALL bmpload(data1$)
GET (2, 150)-(180, 1), outline
CLS
... |
Attribute VB_Name = "DBTypes"
'************************************
' модуль DBTypes.bas
' вся работа с файлом БД
'************************************
'************************************** Описание типов **************************************
' заголовок файла
Type TDBHeader
' "DBX" - пр... |
1 REM Gioco.
2 REM Di EMILIANO MATTIOLI
3 REM ***********************
4 CLS
10 PRINT "In this game you have to get the '*'."
11 PRINT "You are '\.'' and you leave a track. If you hit your track or a boulder(\::) you'll die."
12 PRINT "When you get the '*' the track changes colour, you hit only the tra... |
Operation =1
Option =1
Where ="(NZ([DocketNum],0) > 0 AND NZ([InvoiceNum],0) = 0) AND ([DueDate] >= #01/01/190"
"0#) AND ([DueDate] <= #12/31/2199#)"
Begin InputTables
Name ="qrySchedulingSummaryWaitingForArtwork"
End
Begin OutputColumns
End
dbBoolean "ReturnsRecords" ="-1"
dbInteger "ODBCTimeout" ="60"
dbByt... |
10 PRINT "나 아이돌 그만둘래!"
20 END
|
INPUT "Radius of the circle = "; R
A = 3.14 * R * R
PRINT "Area = "; A
END
|
'********** GETCOLOR.BAS - set of color functions
'Copyright (c) 1988 Ethan Winer
DEFINT A-Z
DECLARE SUB GetColor (FG, BG) 'gets BASIC's current colors
DECLARE SUB SplitColor (XColor, FG, BG) '.ASM - splits a color into FG and BG
DECLARE FUNCTION OneColor% (FG, BG) '.ASM - combines FG/BG into one color... |
190 on error goto 210
200 REMOVE "TAB.DAT"
210 OPEN "TAB.DAT" FOR OUTPUT AS #2
220 PRINT #2, "ZONE1", "ZONE2", "ZONE3"
230 CLOSE #2
240 REM
300 OPEN "TAB.DAT" FOR INPUT AS #1
310 INPUT #1, A$
320 PRINT A$
330 CLOSE #1
340 REM
999 END
|
10 DEFINT A-Z: KEY OFF: CLS
20 for m=0 to 640 step 16
30 locate 1,1,1,6,7:print m;"KB OK";
40 if inkey$<>"" then goto 70
50 t#=timer: while (timer-t#)<.2: wend
60 next m
70 locate 1,1,1:print 640;"KB OK";
80 beep:t#=timer: while (timer-t#)<1: wend
100 CLS: locate 1,1,1: system: end
|
DECLARE SUB SchrankBMP ()
DECLARE SUB Pflanze ()
DECLARE SUB BildMap ()
DECLARE SUB Kisteo ()
DECLARE SUB Kiste ()
DECLARE SUB Bild ()
DECLARE SUB Joystick ()
DECLARE SUB JoystickAbfrage ()
COMMON SHARED StickMitteX AS INTEGER
COMMON SHARED StickMitteY AS INTEGER
COMMON SHARED StickBack AS INTEGER
COMMO... |
'$INCLUDE:'spritetop.bi'
CONST NUMBARRELS = 10
DIM barrels%(NUMBARRELS)
DIM barrel%
DIM dksheet%
DIM count%
DIM girder%
DIM background&
SCREEN _NEWIMAGE(800, 600, 32)
CLS
RANDOMIZE TIMER
background& = _LOADIMAGE("backg.png", 32)
dksheet% = SPRITESHEETLOAD("dkong.png", 64, 64, _RGB(0, 255, 0))
barrel% = SPRITENEW(dks... |
SCREEN 12
DIM a(480)
LINE (0, 0)-(90, 480), 15, BF
FOR x = 0 TO 479
FOR y = 0 TO 479
a(y) = 15
NEXT y
FOR y = 0 TO x
1 z = INT(RND * 480)
IF a(z) = 0 THEN GOTO 1
a(z) = 0
NEXT y
FOR y = 0 TO 479
PSET (x + 90, y), a(y)
NEXT y
NEXT x
SLEEP
|
SUB MAIN
PRINT "---- SINE, COSINE, TANGENTS (HYPERBOLIC) ----"
PRINT "COSH(1) = " + STRING(COSH(1))
PRINT "SINH(1) = " + STRING(SINH(1))
PRINT "TANH(1) = " + STRING(TANH(1))
PRINT "ACOSH(1.543) = " + STRING(ACOSH(1.543))
PRINT "ASINH(1.175) = " + STRING(ASINH(1.175))
PRINT "ATANH(0.762) = " + STRING(ATA... |
DECLARE SUB actualday (iday%, counter!, daymis%, writelen, year%, month%, dayn%, countday%, countyr%, comonth%)
DIM station$(5), monthday%(12)
DECLARE FUNCTION leapyear% (year%) 'Returns 1 for leapyear, 0 for others
DECLARE SUB readin (station$(), a$) 'Separates first 10 fields of input
... |
50 dim b(9,9)
100 print tab(25);"blackbox"
110 print tab(20);"creative computing"
120 print tab(18);"morristown, new jersey"
130 print:print:print
140 def fnr(z)=int(8*rnd(1)+1)
150 print "no. of atoms";: input n
160 for j=0 to 9: for i=0 to 9: b(i,j)=0: next i,j
170 for i=1 to n
180 x=fnr(1): y=fnr(1): if b(x,y)<>0 th... |
10 /* PCMデータファイルの縮小
20 /*
30 int fpi,fpo,sec,num
40 dim char a(65535)
50 str fnamei,fnameo
60 input "入力ファイル名"; fnamei
70 input "出力ファイル名"; fnameo
80 input "秒数"; sec
90 num=7800*sec /* サンプリング15.6KHz時
100 if num>65535 then num=65535
110 fpi=fopen(fnamei,"r")
120 fpo=fopen(fnamei,"o"... |
@ERASE
0 REM $1 is reserved
1 RESERVED
0 REM $2 is PIN Code
2 1234
0 REM PIO_IRQ holder
3 RESERVED
0 REM long press detector W
0 REM state machine
0 REM S = 0 idle show DATE
0 REM S = 1 date show YYYYMMDD
0 REM S = 2 idle show TIME
0 REM S = 3 time show HH:MM:SS t
@INIT 10
0 REM no debug
10 Z = 1
0 REM setup por... |
CLS
GOSUB InputData
GOSUB CalcData
GOSUB PrintData
END
InputData:
PRINT "Enter initial data."
INPUT "Beginning Inventory = ", InBeg
INPUT "Ending Inventory = ", InEnd
INPUT "Cost of Goods Sold = ", Cost
RETURN
CalcData:
LET Avg = (InBeg + InEnd) / 2
LET Avg = INT(Avg + 0.5)
LET Turn = Cost / Avg
LET Turn = INT(Turn *... |
dbMemo "SQL" ="PARAMETERS park Text ( 255 ), tgtYear Short;\015\012SELECT [park] AS Park, [tgtY"
"ear] AS TgtYear, temp_Listbox_Recordset.LUCode AS LU_code, temp_Listbox_Recordse"
"t.Code, temp_Listbox_Recordset.Species, CInt(1) AS Priority, temp_Listbox_Record"
"set.Transect_Only, temp_Listbox_Recordset.[... |
DECLARE FUNCTION DBRENT! (AX!, BX!, CX!, DUM!, DUM!, TOL!, XMIN!)
DECLARE FUNCTION FUNC! (X!)
DECLARE FUNCTION DF! (X!)
FUNCTION DBRENT (AX, BX, CX, DUM1, DUM2, TOL, XMIN)
ITMAX = 100
ZEPS = 1E-10
A = AX
IF CX < AX THEN A = CX
B = AX
IF CX > AX THEN B = CX
V = BX
W = V
X = V
E = 0!
FX = FUNC(X)
FV = FX... |
10 '**********************************
20 '* *
30 '* CALENDER *
40 '* *
50 '* J.W.L *
60 '* *
70 '**********************************
80 '
90 '========= MAIN PROGRAM ====... |
Attribute VB_Name = "mduControlPanelWeb"
Option Explicit
Private Const blnDebug = False
Public gCompFilterStr As String
Public gDefaultComp As String
Public objActForm As Form
Public gLogInID As String
Public gstrUserPremission As String
Public lngSeqNo As Long
Public strOwner As String
'Dim lngCMtimeout As Long
Pu... |
10 print "(w)rite, (r)ead or (d)elete file?"
20 open 1,0
30 get#1,a$
40 if a$="w" then goto 80
50 if a$="r" then goto 240
60 if a$="d" then goto 350
70 goto 30
80 print "filename to write to? ";
90 input#1,a$
100 open 8,8,15,"i"
110 close 8
120 open 8,8,8,a$+",w"
130 if st>1 then goto 420
140 print
150 pr... |
Version =20
VersionRequired =20
PublishOption =1
Checksum =-335010874
Begin Form
RecordSelectors = NotDefault
ControlBox = NotDefault
NavigationButtons = NotDefault
AllowDeletions = NotDefault
DividingLines = NotDefault
AllowAdditions = NotDefault
AllowDesignChanges = NotDefault
ScrollB... |
atom=H
contraction shell=S num_primitives=3 num_coefficients=1
3.42525091 0.15432897
0.62391373 0.53532814
0.16885540 0.44463454
atom=He
contraction shell=S num_primitives=3 num_coefficients=1
6.36242139 0.15432897
1.15892300 0.53532814
0.31364979 0.44463454
atom=Li
contraction shell=S num_primitives=3 num_coefficients... |
SCREEN 12
r = 1
x = -r
10
r = r + .005
PSET (x + 320, SQR(r ^ 2 - x ^ 2) + 200)
PSET (x + 320, -SQR(r ^ 2 - x ^ 2) + 200)
x = x + 20
IF x >= r THEN x = -r
GOTO 10
|
Attribute VB_Name = "modHideTransactions2"
Option Compare Database
Option Explicit
'VGC 10/29/2017: CHANGES!
Private Const THIS_NAME As String = "modHideTransactions2"
' **
Public Function Hide_FixQrys() As Boolean
100 On Error GoTo ERRH
Const THIS_PROC As String = "Hide_FixQrys"
... |
0 REM ************************
1 REM * - CCESOFT - *
2 REM *OTTO LONGO SERNATINGER*
3 REM * VERSAO 1.1 05/85 *
4 REM ************************
5 REM * DENTE-DE-LEAO *
6 REM ************************
10 HGR
20 FOR I = 0 TO 251 STEP 3
30 PLOT I,191 TO I + 1,191 - ( RND (8) * 15)
40 PLOT I + ... |
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... |
REM Falling Balls
REM Jarod Aerts
REM 01-22-17
REM OPEN SENSORS AND GET THINGS READY
SENSORS.OPEN 1 % OPENS THE X-AXIS GYROSCOPIC SENSOR FOR INPUT
GR.OPEN 255,0,0,0
GR.ORIENTATION 1
! OPENS THE GRAPHICS SCREEN WITH A BLACK BACKGROUND AND SETS ORINITATION TO PORTRAIT
! SET THE SCALE VARIABLES
GR.SCREEN W,H
HALFW=W/2... |
atom=Sc
contraction shell=S num_primitives=1 num_coefficients=1
0.01007 1.0
contraction shell=P num_primitives=1 num_coefficients=1
0.01008 1.0
contraction shell=D num_primitives=1 num_coefficients=1
0.00895 1.0
contraction shell=F num_primitives=1 num_coefficients=1
0.02482 1.0
contraction shell=G num_primitives=1 num... |
10 NR=14:NT=11:NP=11:NV=29:NO=NT+NP
20 DIM AC(NR,6),VB$(NV),OB$(NO),RM$(NR),TD$(NT),VN(NV),TL(NT),TF(NT)
99 REM *INITIALIZATION*
100 RM=1:CT=0:CF=0:RT=-1:CA=0:MF=0:CD=0:WD=-1:LI=0:BT=-1
120 FOR I=1 TO NR:READ RM$(I):NEXT I
130 FOR I=1 TO NV:READ VB$(I),VN(I):NEXT I
140 FOR I=1 TO NO:READ OB$(I):NEXT I
150 FOR I=... |
0 REM ************************
1 REM * - CCESOFT - *
2 REM *OTTO LONGO SERNATI^GER*
3 REM * VERSAO 1.1 05/85 *
4 REM ************************
5 REM * CODIGO MORSE *
6 REM ************************
26 HOME
100 DATA ,.-,-...,-.-.,-..,.,..-.,--.,....,..,.---,-.-,.-..,--,-.,---,.--.,--.-,.-.,.... |
''' IRC Bot with Eliza
'' Copyright (c) 2004, Nicholas Christopoulos
'' Yet another smallbasic example
''
'' see also RFC1459
''
'' say: ''smallbot, options'' for help on IRC
'' --- configuration ---
'' IRC server and port
IRCServer="rea.irc.gr:6667"
'' bot''s nickname
botName="smallbot"
'' bot''s nickname passwo... |
Version =20
VersionRequired =20
Begin Form
RecordSelectors = NotDefault
AutoCenter = NotDefault
NavigationButtons = NotDefault
AllowDeletions = NotDefault
DividingLines = NotDefault
AllowAdditions = NotDefault
AllowDesignChanges = NotDefault
DefaultView =0
ViewsAllowed =1
Pictur... |
REM File: .bas
REM Data:
REM Programmer: Yuriy Lomako
REM Description:
REM -------------------------------------------------------------------
5 CLS
10 PRINT "
"
20 PRINT " "
30 INPUT NAME$
40 PRINT " "
50 INPUT FAMILY$
60 PRIN... |
'ANI Viewer by Dmitry Brant
'
'based on earlier code by Yousuf Philips of YPI [http://members.xoom.com/Philipz]
'
' dmitrybrant@hotmail.com
' http://dmitrybrant.com
'
'Freeware. Use freely.
'No warranty of any kind.
'Read disclaimer information at the above-mentioned web site.
DECLARE FUNCTION ShowANI% (Fil... |
100 cls:clr:random:decimal z
1010 ch=160
1030 width = 17
1040 height =12
1045 u=0
1050 dim pc(205):dim pr(205):dim visits(234)
1070 x=2
1080 y=2
1082 v1=x*2
1085 v2=40*y*2+1024+v2+v1
1090 poke v2,ch
1100 z=rnd*2:z=whole(z)
1110 if z=0
1112 then v1=x*2
1114 then v2=40*y*2+1024-40+v1
1115 then poke... |
tmp5 rem version 1.1
10 print chr$(147):
11 poke 53280,0: poke 53281,0:poke 646,1
12 print "how many players ? 1 / 2"
13 get a$: if a$ = "" then 13:
14 a=val(a$):
15 rem print "here"a$
18 if a$<>"1" and a$<>"2" then 13;
19 if a$="2" then 30;
20 if a$="1" then 31;
30 rem print "here"
31 p1=0:p2=0:mx=180:my=200
32 up=... |
SCREEN 12
RANDOMIZE TIMER
X = INT(RND * 300) + 10
y = INT(RND * 300) + 10
directx = INT(RND * 1) + 0
directy = INT(RND * 1) + 0
PSET (1, 1), 12: DRAW "D450R600u450l600"
DO
LOCATE 1, 1: PRINT X, y
CIRCLE (X, y), 5, 0
IF directx = 0 THEN X = X + .5: IF X > 595 THEN directx = 1
IF directx = 1 THEN X = X - .5: I... |
1 %TITLE "Post Journal"
%SBTTL "PO_SPEC_RECOVERBATCH"
%IDENT "V3.6a Calico"
!
! COPYRIGHT (C) 1990 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 ab... |
Attribute VB_Name = "Sub_parall_P_dist"
Sub parall_P_dist(X,Y,Z,A,B,C,znak,POLE,XD,YD,ZD,DX,DY,DZ)
dim S#,T#
XD=X
YD=Y
ZD=Z
S=1/POLE
do while ((XD-X)^2+(YD-Y)^2+(ZD-Z)^2)^0.5 < 1
T= S*znak/B
XD = X + T*A
YD = Y + T*B
ZD = Z + T*C
S=S+1/POLE
loop
DX=XD-X
DY=YD-Y
DZ=ZD-Z
end sub
REM X,Y,Z - ���������� ����� ������ ����... |
DEFINT A-Z ' All variables are integers
TYPE RegType
ax AS INTEGER
bx AS INTEGER
cX AS INTEGER
DX AS INTEGER
bp AS INTEGER
si AS INTEGER
di AS INTEGER
flags AS INTEGER
END TYPE
DECLARE SUB INTERRUPT (intnum AS INTEGER, inreg AS RegType, o... |
10 COLOR 1,11,7:SCREEN 2:MAXFILES=2
20 OPEN "GRP:" FOR OUTPUT AS#1
30 PSET (69,80),11:PRINT #1,"ςισ 9.1 γχετα"
50 FOR I=1 TO 1000:NEXT I:CLOSE #1
60 SCREEN 3:OPEN "GRP:"FOR OUTPUT AS#2
80 PSET (50,80),11:PRINT #2,"βυλχω"
100 FOR I=1 TO 1000:NEXT I:CLOSE #2
|
'**** ShadeH.Bas - Horizontal Color Shading Routine
'Copyright 1990, Brian C. Giedt
DEFINT A-Z
'$INCLUDE: 'GWDecl.BAS'
SUB ShadeH (Col1, Line1, Col2, Line2, NumColors, StepChoice, Colors()) STATIC
Cols = Col2 - Col1 + 1
ShadeX% = 8
ShadeY% = 40
Total% = ShadeX% * ShadeY%
Speed% = Total% * NumColors \ Col... |
! PMITEM - QUICK AND DIRTY
! CALLS BOOTS FUNCTIONS BUT DOES NO PRODUCE AN OKAY, ERROR OR REPORT FILE
\*****************************************************************************
\*****************************************************************************
\***
\*** PROGRAM ..... PMITEM
\*** MODULE ......... |
100 CLS:PRINT "¼Þ³¼®Û¸ É Ì§²Ù Ò² Ê?"
110 PRINT:LINE INPUT F$
120 IF F$="" THEN 100
130 OPEN F$ AS #1
140 FIELD #1, 30 AS NAM$, 20 AS TEL$, 50 AS ADR$
150 *MENU
160 PRINT:PRINT
170 PRINT "<<ÒÆ°>>":PRINT
180 PRINT " ¹Ý»¸ / ¼³¾² : 1"
190 PRINT " ±À×¼¸ ij۸ : 2"
200 PRINT " µÜØ : 0"
210 PRINT:PRINT... |
1 'Example of PRINT$ statement
10 PRINT CHR$(64); CHR$(71); CHR$(33); CHR$(45); CHR$(13); CHR$(10);
20 PRINT$ 64, 71, 33, 45, 13, 10:'Same effect as above statement.
|
10 s=s+1
20 d1%=1+6*rnd(1)
30 d2%=1+6*rnd(1)
40 print d1% d2%
50 if d1%+d2% <> 7 goto 10
60 n=n+1: t=t+s: s=0: rem n=no of 7s; t=throws
70 print "seven!" t/n: goto 10 |
LET G = 15
PRINT "Guess the number"
10 INPUT A
IF A = G THEN GOTO 20
IF A > G THEN PRINT "Lower"
IF A < G THEN PRINT "Higher"
GOTO 10
20 PRINT "You win !"
|
Attribute VB_Name = "CPU"
Option Explicit
Public CycleTables As Variant
Public CycleTable(255) As Long
Public Const MainClock As Long = 1789773
Public A As Long
Public X As Long
Public Y As Long
Public S As Long
Public P As Long
Public PC As Long
Public toNMI As Boolean
Public toIRQ As Long
Public ... |
1 %TITLE "Asset Depreciation Scan"
%SBTTL "AD_MAIN_DEPRECIATIONSCAN"
%IDENT "V3.6a Calico"
FUNCTION LONG AD_MAIN_DEPRECIATIONSCAN(CDD_WINDOW_CDD SMG_WINDOW, &
LONG MOPTION,LONG MLOOP, LONG MFLAG, STRING MVALUE)
!
! COPYRIGHT (C) 1987 BY
!
! Computer Management Center
! Idaho Falls, Idaho.
!
! This softwar... |
10 POKE 103,0:
POKE 104,64
20 HGR:
POKE - 16302,0
30 PRINT CHR$ (4)"RUN AKA6"
|
Attribute VB_Name = "BoxPlot"
Public Sub BoxPlot_Calculations()
Dim NCNotPresent(20) As String
Dim ncNt As Integer
Dim inputFileNameContracts As String
Dim inputRevenue As String
Dim fstAddForPivot As String
Dim lstAddForPivot As String
Dim duration As String
Dim monthsForTable As String
Dim monthCellForTable As Integ... |
CLS
SCREEN 12
LET A=320
LET B=200
D=0.1
RANDOMIZE TIMER
E%=INT(RND * 16)
DIM BALL%(1000)
CIRCLE(100,100),15,15
PAINT(100,100),E%,15
GET(80,80)-(120,120),BALL%
CLS
SCREEN 12
COOL:
LINE(29,29)-(629,469),15,B
COLOR 5
LOCATE 1,1... |
5 REM Taken from Usborne's 1982 book
6 REM "Computer Spacegames"
7 CLS
10 PRINT "EVIL ALIEN"
20 LET S=10
30 LET G=4
40 LET X=INT(RND(1)*S)
50 LET Y=INT(RND(1)*S)
60 LET D=INT(RND(1)*S)
70 FOR I=1 TO G
80 PRINT "X POSITION (0-9)"
85 INPUT X1
90 PRINT "Y POSITION (0-9)"
100 INPUT Y1
110 PRINT "DISTANCE (0-9)"
120... |
Version =20
VersionRequired =20
Begin Form
AllowDesignChanges = NotDefault
DefaultView =2
TabularFamily =0
PictureAlignment =2
DatasheetGridlinesBehavior =3
GridX =24
GridY =24
Width =4539
DatasheetFontHeight =10
ItemSuffix =6
Right =13515
Bottom =7605
DatasheetGridl... |
Attribute VB_Name = "funVentas"
' anula factura
Public Function getParamCierre(ByVal strParam As String) As Single
Dim rsParam As ADODB.Recordset
getParamCierre = -999
strSQL = "SELECT * FROM " & conDBParam & " WHERE Referencia = '" & Format(strParam, "<") & "'"
Set rsParam = SQLexec(strSQL)
If Not ... |
Attribute VB_Name = "Tools_Outline"
Sub Outline()
Dim filelist() As String
Dim fName As String
Dim fPath As String
Dim i As Integer
Dim filetype As String
Dname = Dimdoc(Dname)
filetype = InputBox("What file type?" & _
Chr(10) & "* = All", "File Type?", "doc")
If StrPtr(filetype) = 0 Then Exit Sub
'==... |
10 cls
20 read name$
30 read country$
40 read age
50 read sex$
60 print name$+" "+country$+" "+age+" "+sex$
100 data «Mike»,«Poland»,15,"Male" |
10 GOSUB 9000: REM INICIALIZA
20 GOSUB 4000: REM DETERMINA MOVIMENTOS POSSIVEIS
30 GOSUB 5000: REM IMPRIME TABULEIRO
40 IF FJ THEN GOTO 8000: REM FIM DE JOGO
50 GOSUB 7000: REM OBTEM MOVIMENTO
60 GOSUB 3000: REM MOVE
70 GOSUB 6000: REM INSERE NUMERO
80 GOTO 20
3000 REM MOVE
3010 FOR I = 0 TO 3
3020 IF MH TH... |
10 ' GAME OF LIFE
20 DIM GRID1%(64, 64)
30 DIM GRID2%(64, 64)
50 DIM TILE0%(8, 8)
60 NROWS% = 64 : NCOLS% = 64 : TILER% = 8 : TILEC% = 8 : NITER% = 60
70 GOSUB 5000 ' CREATE SCREEN
80 GOSUB 2200 ' LOAD IMAGES
85 NSHAPE% = -1
90 WHILE -1
100 CLS : NSHAPE% = (NSHAPE% + 1) MOD 30
110 GOSUB 2000 ' INIT GRID
115 ... |
1 !
!++
! Description:
!
! Compare two PD_PRODUCT master files to see what
! part numbers conflict.
!
! History:
!
! 04/01/2002 - Kevin Handy
!--
OPTION SIZE = (INTEGER LONG, REAL GFLOAT)
%INCLUDE "SOURCE:[PD.OPEN]PD_PRODUCT.HB"
MAP (PD_PRODUCT) PD_PRODUCT_CDD PD_PRODUCT
100 !
! Open up product master ... |
Version =20
VersionRequired =20
Begin Form
DefaultView =2
PictureAlignment =2
DatasheetGridlinesBehavior =3
GridX =24
GridY =24
Width =4560
ItemSuffix =23
Right =13515
Bottom =7605
DatasheetGridlinesColor =12632256
Filter ="\"99999999\""
RecSrcDt = Begin
0x7f0380... |
' vim: ft=basic
'
' adoStatement.cls
'
option explicit
private cm as ADODB.command
private rs_ as ADODB.recordSet
private firstCallOfRecord_ as boolean
private sub class_initialize() ' {
set cm = new ADODB.command
cm.commandType = adCmdText
end sub ' }
public ... |
atom=H
contraction shell=S num_primitives=1 num_coefficients=1
0.00621 1.000000
contraction shell=P num_primitives=1 num_coefficients=1
0.0246 1.000000
contraction shell=D num_primitives=1 num_coefficients=1
0.0545 1.000000
contraction shell=F num_primitives=1 num_coefficients=1
0.0928 1.000000
atom=He
contraction shel... |
Version =20
VersionRequired =20
PublishOption =1
Checksum =-1183597130
Begin Form
RecordSelectors = NotDefault
NavigationButtons = NotDefault
DividingLines = NotDefault
AllowDesignChanges = NotDefault
DefaultView =0
ScrollBars =0
PictureAlignment =2
DatasheetGridlinesBehavior =3
Cyc... |
'============================================================================
' To: All Number: 215 Refer: 0023
' From: Earl Montgomery Conference: FidoQBasic (139)
' Date: 02-17-96 19:37 BBS Name: Exec-PC
'Subject: SPACEEYE.BAS BBS ... |
Operation =1
Option =0
Begin InputTables
Name ="dbo_ProjectComponentMilestoneType"
End
Begin OutputColumns
Expression ="dbo_ProjectComponentMilestoneType.id"
Expression ="dbo_ProjectComponentMilestoneType.MilestoneType"
End
Begin OrderBy
Expression ="dbo_ProjectComponentMilestoneType.id"
Flag =0
En... |
10 ! &
! MSTRFL - CONSTRUCTION MASTER EMPLOYEE FILE &
! &
! 09/31/79 - Written by HA ! 06/18/79 - BL for (1,3) system &
! 01/02/80 - BL add YTD hours ! 10/01/84 - BH paging now works &
! &
50 DIM M1$(23%),M$(24%),M2$(44%),M(44%),E$(67%),T(44%) &
125 Y$="FL" &
\ Y$=CVT$$(FNX$,-1%) IF FNX$<>"" &
\ GOSUB... |
10 INPUT"Введите число A% (не более 16 двоичных цифр)";A%
20 IF A%<0 THEN H%=A%\256-1 ELSE H%=A%\256
25 L%=A%MOD256
30 PRINT RIGHT$("00000000"+BIN$(H%),8);" ";RIGHT$("00000000"+BIN$(L%),8)
|
VR(91)=1 '// flag of machining end
VR(409)=1 '// x axis servo enable
VR(410)=1 '//y axis servo enbale
VR(411)=1 '//rx axis servo enbale
VR(412)=1 '//rz axis servo enable
VR(413)=1 '// l axis servo enable
'VR(414)=1 '//h axis servo enable
VR(426)=1 '// unknow??????
VR(178)=0 'init laser height
VR(179)=0 '// fla... |
10 P=#B002
20a ?P=?P:4; GOTO a
|
知识点:1.range("A35670").end(xlup).offset(1,0)定位有数据的最后一个单元格,并下移一格,开始写数据
2.设置“超链接” selection.Hyperlinks.add
3.inputbox 输入对话框
4.instr("ABC","A") 字符串ABC中是否包含"A",返回的是”个数“,因为0是false,其中整数是True,所以可以用来判断。
5.split("A,B,C",",") 以逗号为分隔符拆分字符串,返回的是一个数组,arrary("A","B","C"),如arrary(0) = "A"
6.窗体,textbox1.value是用户输入的... |
10 ON ERROR GOTO 50:INPUT M
30 IF A(M)=0 THEN PRINT"Ошибки нет!":GOSUB40:END
40 PRINT"Осуществлен переход на оператор GOSUB 40!":RETURN
50 RESUME NEXT
|
DECLARE SUB ProfileWrite (IniFile$, IniSection$, IniKey$, ProfileStr$)
'
'exsh
'
'$INCLUDE: '\VBDWSHOP\PROFILE.BI'
DIM Stdselect AS STRING
DIM HistoryBuffer(100) AS STRING
PRINT "exsh rel. 1.0.1"
PRINT
MEInit:
KEY 1, ProfileRead$("\XOS\XOS.XIF", "KeyPatch", "F1")
KEY 2, ProfileRead$("\XOS... |
RANDOMIZE TIMER
SCREEN 13
r = 0
FOR i = 0 TO 15
FOR j = 0 TO 15
COLOR r
y = i * 7
x = j * 7
LINE (x, y)-(x + 7, y + 7), 17, B
LINE (x + 1, y + 1)-(x + 6, y + 6), r, BF
r = r + 1
NEXT j
NEXT i
x = 0
y = 0
1
py = y * 7
px = x * 7
LINE (px, py)-(px + 7, py + 7), 17, B
v$ = INKEY$
IF v$ = "o" AND x > 0 ... |
0 REM Industrial XR3 Mini Slave
@ERASE
1 1234
@INIT 10
0 REM PIN code
10 $1 = "1234"
0 REM blue LED output and on
11 A = pioset 20
0 REM RS232 POWER ON out and on, PIO12
12 A = pioout 13
13 REM A = pioclr 13
14 A = pioset 13
0 REM RS232 POWER OFF out and on, PIO11
15 A = pioout 12
16 A = pioset 12
0 REM RS232 DTR pi... |
0 REM stime
0 REM by Jan Bobrowski
0 REM license GPL
10 LET t=14335
20 PAPER 6: CLS
30 PRINT INK 2;" "
40 PRINT "screen test by Jan Bobrowski"
50 PRINT "tstate of the WRITE mach. cycle"
60 PRINT #1;"Q:inc A:dec"
100 IF INKEY$="q" THEN LET t=t+1
110 IF INKEY$="a" THEN LET t=t-1
120 PRINT AT 3,0... |
SCREEN 0
SCREEN 12
_TITLE "Etch-A-Sketch"
locationx = 320
locationy = 240
speed = 50
size = 5
colord = 15
DO
_LIMIT speed
CIRCLE (locationx, locationy), size, colord
shake = _KEYDOWN(32)
up = _KEYDOWN(119)
left = _KEYDOWN(97)
right = _KEYDOWN(100)
down = _KEYDOWN(115)
options = _KEYDOWN(... |
Attribute VB_Name = "Module2"
Sub task_2()
Dim day As Integer, month As Integer, year As Integer
year = InputBox("¬ведите год")
1: month = InputBox("¬ведите мес¤ц")
day = InputBox("¬ведите день")
If day < 1 Or day > 31 Or month < 1 Or month > 12 Then
MsgBox "Ќевозможна¤ дата, повторите ввод"
GoTo 1
End If
M... |
REM \
\******************************************************************************
\******************************************************************************
\***
\*** STORE DIRECT SUPPLIER FILE FUNCTIONS
\***
\*** REFERENCE : DIRSUFUN.BAS
\***
\*** Version A Mark Goode ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.