text
stringlengths
7
5.36M
PRINT "INPUT A NUMBER: "; INPUT N PRINT TEST(N) END FUNCTION TEST (ARG) TEST = 10 ^ ARG END FUNCTION
CLS DIM X(5) X(1) = -2 X(2) = -1 X(3) = 0 X(4) = 1 X(5) = 2 DIM Y(5) Y(1) = 0 Y(2) = 0 Y(3) = -1 Y(4) = 1 Y(5) = 3 n = 5 SUMY = 0 SUMX = 0 SUMX2 = 0 SUMXY = 0 FOR i = 1 TO n SUMY = SUMY + Y(i) SUMX = SUMX + X(i) SUMX2 = SUMX2 + X(i) ^ 2 SUMXY = SUMXY + X(i) * Y(i) B0 = (...
10 print tab(25);"strike 9" 20 print tab(19);"creative computing" 30 print tab(18);"morristown new jersey" 90 dim a(9),d(4) 110 print:print:print 170 print "do you need instructions "; 180 input r$ 190 if r$ = "no" then 340 200 if r$ <> "yes" then 170 210 print "strike nine is played with a pair of dice and a" 220 prin...
;adv2 ==0801== 0 goto 12000 10 poke53280,0 11 poke53281,0 20 print"{clr} " 30 print"{clr} " 35 print"{blu}{rght} {rght}{rght}{rght}{rght}{rght}{rght}{rght}{rght}{rght}{rght}{rght}{rght}{rght}{rght}{rght}RRRRRRRRRRRRRRRRRRR" 40 print"{rght} {rght}{rght}{rght}{rght}{rght}{rght}{rght}{rght}{rght}...
Attribute VB_Name = "UsUaRiOs" 'Argentum Online 0.12.2 'Copyright (C) 2002 Márquez Pablo Ignacio ' 'This program is free software; you can redistribute it and/or modify 'it under the terms of the Affero General Public License; 'either version 1 of the License, or any later version. ' 'This program is distributed in the...
10 V=2 20 X=20 30 G=1 40 T=0 50 DT=0.01 60 P=0 70 FOR I=0 TO 500 80 IF I MOD 10=0 THEN PRINT SPACE$(40+X);"o" 90 T = T + DT 100 X = X - 1/2*G*T*T 110 IF I MOD 10=0 THEN PRINT SPACE$(40+P);"x" 120 P = P + V*T*SIN(30*(3.14/180)) - 1/2 * G*T*T 130 IF P>X THEN V=V-0.1:GOTO 20 ...
Attribute VB_Name = "MOD_Video" '*************************************************************** 'Windows API/Global Declarations for :Change Windows Display resolution '*************************************************************** Public blRanDXProbApp As Boolean Private Const CCDEVICENAME = 32 Private C...
10 SCREEN 7 20 COLOR ,,0 30 VDP(9)=VDP(9)OR&H20 40 BLOAD"matrix2.pl7",S 50 COLOR=RESTORE 60 BLOAD"matrix2.sc7",S 70 A$=INPUT$(1) 
5 cls 10 for f=0 to 15 20 for g=0 to 15 30 color f,g 40 gotoxy f*4+4,g+4 50 print g*16+f 60 next: print: next
10 REM Ivop 2021 ivop.free.fr (https://atariage.com/forums/topic/316742-how-to-make-a-static-status-bar-in-atari-basic/) 20 GRAPHICS 0 30 SAVMSCLO=PEEK(88) : SAVMSCHI=PEEK(89) 40 SDLSTLLO=PEEK(560) : SDLSTLHI=PEEK(561) 50 DL=SDLSTLLO + SDLSTLHI*256 60 FOR I=0 TO 5 : READ A : POKE 1536+I,A : NEXT I : REM title bar 65 ...
1 %TITLE "MAINT - Maintain Journal Entries" %SBTTL "GL_MAST_GJMNT" %IDENT "V3.6a Calico" ! ! COPYRIGHT (C) 1987, 1988 BY ! ! Computer Management Center, Inc. ! Idaho Falls, Idaho. ! ! This software is furnished under a license and may be used and ! copied only in accordance with terms of such license and wit...
10 PRINT 1 / 2 20 PRINT 1.0 / 2 30 PRINT 1 / 2.0 40 PRINT 1.0 / 2.0 50 PRINT 1 / 2 / 3
10 forecolor 0, 255, 0 20 backcolor 47, 47, 47 30 cls 90 print "Drawing Random Circles" 100 for i = 0 to 100 101 r = random 102 g = random 103 b = random 104 forecolor r, g, b 110 x = random 111 y = random 130 fcircle x*5, y*4, 32 160 next i 170 forecolor 0, 255, 0 180 end
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 PRINT "WHATS THE WEATHER LIKE TODAY" 20 INPUT W$ 30 IF W$="RAIN" THEN PRINT "UMBRELLA TIME" 40 IF W$="SUNNY" THEN PRINT "GOOD" 50 END
10 ARR LET A = RND1(20) 20 ARR LET A1 = A - 0.5 30 ARR LET A2 = A - 0.9 40 ARR LET A3 = A - 20 90 ARR PLOT A,A1,A2,A3 99 END
1 %TITLE "Asset Class Description" %SBTTL "AD_MAIN_CLASS" %IDENT "V3.6a Calico" FUNCTION LONG AD_MAIN_CLASS(CDD_WINDOW_CDD SMG_WINDOW, LONG MOPTION, & LONG MLOOP, LONG MFLAG, STRING MVALUE) ! ! COPYRIGHT (C) 1987 BY ! ! Computer Management Center ! Idaho Falls, Idaho. ! ! This software is furnished under ...
OPEN "BFI2.COM" FOR BINARY AS #1 A$ = INPUT$(LOF(1), 1) CLOSE #1 DIM Z(255) FOR A = 1 TO LEN(A$) B = ASC(MID$(A$, A, 1)) Z(B) = Z(B) + 1 NEXT A SCREEN 9: CLS FOR A = 0 TO 255 PRINT " "; HEX$(Z(A)); IF (A + 1) / 16 = (A + 1) \ 16 THEN PRINT ELSEIF (A + 1) / 8 = (A + 1) \ 8 THEN PRINT " |"; END IF C...
560 INPUT"Натуральное число";S:N=S:W$="" 570 I=2 580 IF N/I=FIX(N/I) THEN N=N/I:W$=W$+STR$(I) ELSE I=I+1:GOTO 580 590 IF I<N THEN 570 ELSE W$=W$+STR$(N) 600 FOR L=2 TO LEN(W$) 610 IF MID$(W$,L,1)=CHR$(32) THEN MID$(W$,L,1)="*" 620 NEXT:PRINT S;"=";W$ 630 END 
10 REM TEST FOR MODIFIER 20 DIM A(10) 30 A(I) = I _ FOR I=10 WHILE I <= 0 40 ARR PRINT A; 99 END
ACLS XMAX=15 YMAX=10 DIM SMAP[XMAX,YMAX] 'スプライト ノ マップ DIM PMAP[XMAX,YMAX] 'コマ ノ マップ MX=(400-XMAX*16)/2 'Xイチ ノ マージン MY=(240-YMAX*16)/2 'Yイチ ノ マージン DIM PS[3] 'シヨウスル コマ PS[0]=22 'エメラルド PS[1]=23 'ルビー PS[2]=24 'ダイヤモンド CS=0 'カーソル ノ スプライト バンゴウ CX=0 'カーソル ノ Xイチ CY=0 'カーソル ノ Yイチ GOSUB @INITMAP GOSUB @INITCS END 'プログラム...
'' maze.bas '' '' Laberinto '' Constantes Const CHRSTART as uByte = 32 Const CHRNUMSTART as uByte = 14 '' Variables dim salida, laberinto as uByte dim primos (20) as uByte => { _ 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97 _ } dim noPrimos (68) as uByte => { _ 10, 12...
10 CLS 20 DATA 31,28,31,30,31,30,31,31,30,31,30,31 30 DIM LD(12) 40 FOR J=1 TO 12 50 READ LD(J) 60 NEXT J 70 INPUT "YEAR:";NEN 80 INPUT "MONTH:";MONTH 90 NEN2=NEN 100 GOSUB *CURUU 110 LD(2)=LD(2)+URUU 120 DAY=1 130 MONTH2=MONTH 140 DAY2=DAY 150 GOSUB *CYOUBI 160 YOUBI=YOUBI2 170 PRINT "*** ";NEN;"/";MONTH;" ***" ...
CLS SCREEN 12 COLOR 3 INPUT "-> ", E INPUT "-> ", F INPUT "-> ", G INPUT "-> ", H INPUT "-> ", I INPUT "-> ", J INPUT "-> ", K INPUT "-> ", L CLS COLOR 2 FOR A = 1 TO E STEP I FOR B = 1 TO F STEP J FOR C = 1 TO G STEP K FOR D = 1 TO H STEP L LINE (D, A)-(B, C) IF INKEY$ = " " THEN END NEXT D NEXT C ...
10 poke53280,7:poke53281,1:print"{clear}" 20 a=1784:z=a-4:b=81:t=32:l=0 30 fori=0to39:pokea+i,160:next 40 forj=3to36step2:c=int(15*rnd(1))+2 50 fori=1toc:pokea+j-i*40,160:next 60 d=c+2:fori=dto21:pokea+j-i*40,160 70 next:next 80 a$="{down}{down}{down}{down}{down}{down}{down}{down}{down}{down}{down}{down}{down}{down}{do...
100 GET TIME ZS$ 110 DEFINT A-Y 120 SCREEN 8 130 LINE (0,0)-(0,191),255 140 DIM YR(256,1),YG(256,1) 150 FOR Y=0 TO 191 160 CR=Y MOD 2:CW=1-CR 170 DR=YR(0,CR)+(Y MOD 96):DG=YG(0,CR) 180 B1=INT(Y/96)*2 190 R=INT(DR/12):G=INT(DG/16) 200 IF R>7 THEN R=7 210 IF G>7 THEN G=7 220 DR=DR-R*12:DG=DG-G*16 230 TR=DR*6...
100 REM STARS 110 GOSUB 1100 120 PRINT "{space*3}star course" 130 LET T=2:GOSUB 1400:GOSUB 2800 140 LET N=100 150 GOSUB 1300 160 LET G=0 170 GOSUB 2800 180 LET G=G+1 190 PRINT:PRINT 200 PRINT "location picked" 210 PRINT 220 PRINT "between 1 and 100" 230 PRINT 240 PRINT "what is it? "; 250 GOSUB 2100 260 IF K=R THEN GOT...
10 LET S$=" WORLD" 20 LET S="HELLO"+S 30 LET S=S+"!" 40 PRINT S
10 :REM'PRACOSC - rjd's version of Code Oscillator - 14 JAN 2011 20 CLS:KEY OFF 30 IF EX$=""THEN EX$="EXIT" 40 IF PROG$=""THEN GO$=EX$ :ELSE GO$=PROG$ 50 COMMON EX$,PROG$ 60 :REM'.....title page 70 COLOR 15,2 80 PRINT " CODE PRACTICE OSCILLATOR"TAB(57)"by George Murphy VE3ERP "; 90 COLOR 7,0 100 PRINT 110 PRINT " ┌──S1...
OPEN "GAMMA.DAT" FOR OUTPUT AS 1 FOR G = 1! TO 2! STEP .25 PRINT #1, "{"; FOR I = 0 TO 63 W% = INT(((I / 63!) ^ (1! / G)) * 63) PRINT #1, USING "##"; W%; IF I < 63 THEN PRINT #1, ","; NEXT PRINT #1, "}"; IF G <> 2 THEN PRINT #1, "," NEXT PRINT #1, "" CLOSE 1 END
1 %TITLE "Accounts Payable 1099 Table Maintenance" %SBTTL "AP_MAIN_1099_TABLE" %IDENT "V3.6a Calico" FUNCTION LONG AP_MAIN_1099_TABLE(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. ...
1 %TITLE "Accounts Payable Vendor Maintenance" %SBTTL "AP_SPEC_RECOVERCLOSED" %IDENT "V3.6a Calico" ! ! COPYRIGHT (C) 2000 BY ! ! Software Solutions, 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 ...
DECLARE SUB LoadPal () DECLARE SUB InitImageData (FileName$, ImageArray%()) DECLARE SUB MakeImageIndex (ImageArray%(), IndexArray%()) DEFINT A-Z REM $INCLUDE: 'RelLib.BI' REDIM SHARED Vpage(31999) AS INTEGER REDIM SHARED Font(1 TO 1) AS INTEGER REDIM SHARED FontIndex(1 TO 1) AS INTEGER REDIM SHARED FontPP(1 TO 1) AS...
SCREEN 12 CLS PRINT "welcome to the house of horror" INPUT "", a$ CLS PRINT "Q1" PRINT "what is the house of horror?" PRINT "(A) A house where bug eyed insects eat people" PRINT "(B) A house where a little old witch lives" PRINT "(C) A place where they teach french class" INPUT "", a$ IF a$ <> "c" THEN GOTO lose CLS P...
'============================================================================= ' ASCIIXFR.BAS ' ' ASCII file transfer routines ' ' ASCIIReceive% Function: Receives a file ' ' ASCIISend% Function: Sends a file ' ' Return Codes '------------------------------------------------------------------- ' 0 - File sen...
20 REM MacFractal (c) Jack Weber - October 1985 30 REM Plots fractal landscapes as a 3D grid by taking a random straight line 40 REM across the grid and raising (or lowering) all points to one side of the 50 REM line by one level step. 60 REM Full hidden-line removal. 70 REM Landscape may be flooded to any level. 8...
CLS OPEN "password.in" FOR INPUT AS #1 OPEN "password.out" FOR OUTPUT AS #2 INPUT #1, a$ w = LEN(a$) DIM s$(1 TO 10) p = 0: t = 0: c = 1 FOR i = 1 TO w IF MID$(a$, i, 1) = " " OR MID$(a$, i, 1) = "$" THEN p = t: t = i s$(c) = RTRIM$(LTRIM$(MID$(a$, p + 1, t - p))) c = c + 1 END IF NEXT ...
$regfile = "attiny44.dat" $crystal = 1000000 Config Porta.0 = Output Config Porta.1 = Output Config Porta.2 = Output Config Porta.3 = Output Config Pina.5 = Input Config Pina.6 = Input Config Pina.7 = Input Config 1wire = PINA.4 Dim A As String * 5 Dim B As String * 1 Dim C As Byte Dim D As Byte Dim G As String * 2...
5 ON ERROR GOTO 100 10 DEF FNY(X)=X^3 15 DEF FNY$(X$)=X$+"(Козьма Прутков)" 18 DEFSTR X 20 LINEINPUT X:PRINT FNY(X):END 100 IFERR=13 THEN DEFSTR Y:RESUME0'Код 13 имеет ошибка"Type mismatch"! 
REM Euler1 in QBasic PRINT Euler1(999) QUIT DEF Euler1(n) IF n < 3 THEN =0 ELSE IF n MOD 3 = 0 OR n MOD 5 = 0 THEN =n+Euler1(n-1) ELSE =Euler1(n-1) ENDIF
10 DIM A(100) 20 PRINT "HELLO! WHAT ARE THE NUMBERS "; 30 MAT INPUT A 40 PRINT "ALL NUMBERS ARE RECORDED!" 50 PRINT 60 LET S = 0 70 LET M = 0 80 FOR I=0 TO NUM STEP 1 90 PRINT "A(";I" ) ="A(I) 100 S=S+A(I) 110 NEXT I 120 PRINT 130 PRINT "THE SUM OF THE NUMBERS IS:"S 140 M = S/NUM 150 PRINT "THE AVERAGE OF THE NUMBE...
@ERASE 0 REM $1 is the bt address of your phone 1 AABBCCDDEEFF 0 REM $2 is the dest phone number 2 +111111111111 0 REM $3 Message Header check line 59 3 0 0 REM $4 stores the sensor reading 4 0 @INIT 50 0 REM debug 50 Z = 0 51 A = baud 1152 0 REM we must be invisible 52 A = slave -1 0 REM J stores the pio where the...
dbMemo "SQL" ="UPDATE dbo_ContactGeneral INNER JOIN dbo_ContactLocation ON dbo_ContactGeneral.T" "empID = dbo_ContactLocation.TempID SET dbo_ContactLocation.ContactGeneralID = [d" "bo_ContactGeneral].[ID];\015\012" dbMemo "Connect" ="" dbBoolean "ReturnsRecords" ="-1" dbInteger "ODBCTimeout" ="60" dbBoolean "U...
Version =20 VersionRequired =20 Begin Form RecordSelectors = NotDefault AllowAdditions = NotDefault DefaultView =0 GridX =5 GridY =5 Width =12060 ItemSuffix =101 Left =765 Top =675 Right =5310 Bottom =4830 RecSrcDt = Begin 0x95bb59bf51bbe140 End RecordSou...
'_|_|_| KEYSHOW.BAS PUBLIC DOMAIN Kurt Kuzba (2/18/1998) stored% = INP(&H60) keyin% = stored CLS LOCATE 5, 20: PRINT "Hit some keys. ESC exits." LOCATE 7, 20: PRINT "Shift Status::" LOCATE 9, 20: PRINT "Keyboard Code:" DO DO shift% = PEEK(&H17) DEF SEG = &H40: LOCATE 7, 35: PRINT shift%...
100 ' ABS sample 110 INPUT "ÃÝ 1 É »ÞË®³ Ê: x,y ";X1,Y1 120 INPUT "ÃÝ 2 É »ÞË®³ Ê: x,y ";X2,Y2 130 D=SQR(ABS(X1-X2)^2+ABS(Y1-Y2)^2) 140 PRINT:PRINT "ÃÝ 1 Ä ÃÝ 2 É ·®Ø Ê ";D 150 END
1000 GOTO 1310 1010 : 1020 REM ***** SUBROUTINEN ***** 1030 : 1040 POKE19,64 1050 INPUTA$ 1060 POKE19,0 1070 PRINT 1080 RETURN 1090 INPUT#1,X1$,X2$,X3$,X4$ 1100 D=VAL(X1$) 1110 D$=X1$+","+X2$+","+X3$+","+X4$ 1120 RETURN 1130 GET#2,L$,H$ 1140 AD=ASC(L$+CHR$(0))+256*ASC(H$+CHR$(0)) 1150 RETURN 1160 DA$=""...
!! 10 PRINT TAB(28);"AMAZING PROGRAM" x20 PRINT TAB(15);"CREATIVE COMPUTING MORRISTOWN, NEW JERSEY" x30 PRINT:PRINT:PRINT:PRINT x100 INPUT "WHAT ARE YOUR WIDTH AND LENGTH";H,V x102 IFH<>1 AND V<>1 THEN 110 x104 PRINT "MEANINGLESS DIMENSIONS. TRY AGAIN.":GOTO 100 x110 DIM W(H,V),V(H,V) x120 PRINT x130 PRINT x140 PRINT...
1 %TITLE "Gross Margin Report" %SBTTL "JC_RPRT_MARGIN" %IDENT "V3.6a Calico" ! ! COPYRIGHT (C) 1986, 1988, 1989 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 ! t...
10 DATA ,one,two,three,four,five,six,seven,eight,nine 20 DATA ten,eleven,twelve,thirteen,fourteen,fifteen,sixteen,seventeen,eighteen,nineteen 30 DATA ,twenty,thirty,fourty,fifty,sixty,seventy,eighty,ninety,hundred DIM prime$(9), zegond$(9), triers$(10), ragham%(2) RESTORE 10 FOR i = 0 TO 9 READ prime$(i) NEXT...
0 GOSUB3000:CLEAR1000:DIMX(256),Y(256),L(256),E,J,I,W,X,Y,S,M,U,K,L,B,C,T,Q,H,R,H$,WI,LV,OF,KH,PA(16),R:GOTO800 2 PRINT@32*Y+X,CHR$(143+16*(C-1));:U=U-E:RETURN 3 W=W-E:X(W)=X:Y(W)=Y:GOSUB2:L(C)=L(C)-E:L(R)=L(R)+E:RETURN 4 W=0:U=0:X(0)=0:Y(0)=0:L(H)=L(H)-E:L(R)=L(R)+E:C=H:X=0:Y=0:GOSUB2 5 I=X(W):J=Y(W):W=W+E:X=I:Y=J+S 6...
5 print "{clr}formatting disk..." 10 open 1,8,15,"n:test,01":close 1 20 open 1,8,15: input#1, a,b$,c,d: close 1 30 print a;",";b$;",";c;",";d 40 if a <> 0 then 100 41 print "saving program..." 42 save "format",8,1 43 open 1,8,15: input#1, a,b$,c,d: close 1 44 print a;",";b$;",";c;",";d 45 if a <> 0 then 100 50 print "p...
CLS OPEN "word.in" FOR INPUT AS #1 OPEN "word.out" FOR OUTPUT AS #2 INPUT #1, n DIM s$(n) FOR i = 1 TO n INPUT #1, s$(i) flg = 1 FOR j = 1 TO LEN(s$(i)) \ 2 IF MID$(s$(i), j, 1) <> MID$(s$(i), LEN(s$(i)) - j + 1, 1) THEN flg = 0 EXIT FOR END IF NEXT j IF flg = 1 THEN P...
Attribute VB_Name = "modAccountContacts" Option Compare Database Option Explicit Private Const THIS_NAME As String = "modAccountContacts" 'VGC 07/18/2017: CHANGES! ' ####################################### ' ## Monitor Funcs: ' ## {In Parent} ' ####################################### ' **************...
CLS LOCATE 11, 34 COLOR 14 PRINT "Bach's Menuet 1" LOCATE 13, 37 COLOR 9 PRINT "Left Hand" FOR u = 1 TO 2 IF u = 2 THEN PLAY "l8<fa>cfga>>l4" PLAY "t160" PLAY "MS" PLAY "l4" PLAY "<<b-fd<b->cd<a>cfal8b-agf" PLAY "l4b->cde-fgab-<b->f<fa" PLAY "b-fd<b->cd<a>cfal8b-agf" PLAY "l4b->cd<edcf<b->c" NEXT u PLAY "fc<a" FOR y ...
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...
10 :REM'LOGOCLOK - 30 SEP 90 rev. 18 APR 96 20 :REM' By George Murphy, 77 McKenzie St., Orillia, Ont. L3V 6A6 30 CLS:KEY OFF :REM'clear screen 40 COMMON EX$ 50 IF EX$=""THEN EX$="exit" 60 N$="H A M C A L C" :REM'logo 70 SCREEN 9 :REM'640 x 350 pixel graphics monito...
SCREEN 12 REM ---Charakterwerte holen------ DIM skill$(80), skill(80), cargo$(30) OPEN "inter.bas" FOR INPUT AS #1 INPUT #1, name$ INPUT #1, ship$ FOR i = 1 TO 80 INPUT #1, skill$(i) INPUT #1, skill(i) NEXT i FOR i = 1 TO 6 INPUT #1, stat$(i) INPUT #1, stat(i) NEXT i INPUT #1, file$ INPUT #1, cred: INP...
10DIMHH63,NN8 20Q=#9000;L=#9090 30GOS.i 40gP.$12$10$10 50FIN."GRAVITY (1 TO 10) "%G 60IF%G<0OR%G>10;G.g 70hP.$10;FIN."THRUST (0 TO 20) "%T 80O=#7F7F7F7F;H=32 90IF%T<0OR%T>20;G.h 100jP.$10;IN."FUEL CAPACITY (1 TO 999) "G 110IFG<1ORG>999;G.j 120kP.$10;FIN."LATERAL THRUST (0 TO 2) "%R 130IF%R<0OR%R>2;G.k 140yGOS.w 150CLE...
10 print tab(22);"jumping balls" 20 print tab(20);"creative computing" 30 print tab(18);"morristown, new jersey" 40 print:print:print 1040 dim q(9,1) 1050 print "instructions"; 1060 input a$ 1070 if left$(a$,1)="n" then 1150 1080 print "in this game you are given 8 balls on a 9 hole" 1090 print "board. the object is t...
Version =20 VersionRequired =20 Begin Form RecordSelectors = NotDefault NavigationButtons = NotDefault AllowDesignChanges = NotDefault DefaultView =2 ScrollBars =0 TabularFamily =0 PictureAlignment =2 DatasheetGridlinesBehavior =3 GridX =24 GridY =24 Width =4260 Datashee...
'version 116-4q 'Created from version 116-4p 'Reason for change: '------------Changes and additions ------------ '116-4q was released as the 8th beta '116-4q ' Change revision to H ' Change boolean to long in Windows API calls (but not USB driver calls). ' Adjust AutoWait box. ' Add call to CoInitialize to fix to...
OPTION EXPLICIT OPTION DEFAULT NONE OPTION BASE 0 OPTION CONSOLE SERIAL #INCLUDE "../INC/Frame.inc" #INCLUDE "../INC/Sprite.inc" #INCLUDE "../INC/EventTypes.inc" #INCLUDE "../INC/Event.inc" #INCLUDE "../INC/EventStep.inc" #INCLUDE "../INC/Object_types.inc" #INCLUDE "../INC/Box.inc" #INCLUDE "../INC/Animati...
10 PRINT "LINEAR PROGRAMMING" 20 PRINT 28 REM - SEE DISCUSSION FOR A DESCRRIPTION OF HOW LINE 30 LIMITS THE 29 REM - NUMBWER OF VARIABLES AND CONSTRAITS 30 DIM A(10,14), B(15) 39 REM - LINES 40 TO 70 INPUT THE SIZE OF THE PROBLEM 40 PRINT "NUMBER OF VARIABLES"; 50 INPUT V 60 PRINT "NUMBER OF CONTRAINTS"; 70 IN...
1 %TITLE "Convert AD from RSTS/E" %SBTTL "AP_SPEC_CONVERT" %IDENT "V3.6a Calico" ! ! COPYRIGHT (C) 1987, 1988 BY ! ! Computer Management Center, Inc. ! Idaho Falls, Idaho. ! ! This software is furnished under a license and may be used and ! copied only in accordance with terms of such license and with ! the...
DIM AS INTEGER N,K,P,S,I,J,Y INPUT N,K DIM AS INTEGER A(K) I=0 P=1 A(1)=1 S=A(1) DO I=I+1 IF S+I<=N AND I<=N THEN S=S+I P=P+1 A(P)=I I=A(P)-1 IF S=N AND P=K THEN Y=Y+1 PRINT Y;":";N;"=";A(1); FOR J = 2 TO P : PRINT "+"; A(J); : NEXT J...
\******************************************************************************* \******************************************************************************* \*** * \*** SOURCE FOR GSA AUTHORISATION FILE PUBLIC FUNCTIONS ...
Attribute VB_Name = "Main" ' Isoplot -- Main module ' Must NOT be Option Private Module!!!! Option Explicit: Option Base 1 ' Main module to Isoplot, a VBA program for calculation & graphical presentation ' of radiogenic-isotope data. ' K.R. Ludwig, Berkeley Geochronology Center. 'App.VBE.VBProjects("IsoplotEx").VBComp...
'D‚finition ‚cran 320 * 200 avec pixel et texte CLS SCREEN 7 'Coordonn‚es de base postete = 1 depart = 0 xcasepre = 2 ycasepre = 16 x = xcasepre * 10 y = ycasepre * 10 'D‚finition des Getkey CONST esc = 27 ON KEY(13) GOSUB droite KEY(13) ON ON KEY(11) GOSUB haut KEY(11) ON ON KEY(14) GOSUB bas KEY(14) ON ON KEY(12) GOS...
'********** NoNotes.Bas - Used to link out code for "Notes" fields 'Copyright (c) 1988 Crescent Software DEFINT A-Z '$INCLUDE: 'QEditype.BI' SUB QEdit (Array$(), X$, Action%, Ed AS EditInfo) STATIC LOCATE , , 1 X$ = INKEY$ Ed.CurLine = 1 END SUB
$regfile = "M8def.dat" $crystal = 11059200 $baud = 9600 Config Adc = Single , Prescaler = Auto Config Portb = Output Start Adc Enable Interrupts Config Servos = 5 , Servo1 = Portb.0 , Servo2 = Portb.1 , Servo3 = Portb.2 , Servo4 = Portb.3 , Servo5 = Portb.4 , Reload = 5 Dim W As Word , Y As Single Do W = Getadc(...
10 print "Llichen 80 Kickstart" 20 OUT 0,0 100 REM == Start up video 110 MEM=&H10 120 REG=&H11 130 REM Register settings for bitmap mode (0/gray) 140 DATA 0,208,0,0,1,0,0,14 150 FOR I = 0 TO 7 160 READ V 170 OUT REG, V 180 OUT REG, (I OR &h80) 190 NEXT 200 REM == poke at 0xF800 == 210 print "Poking.."; 220 mb = &HF80...
10 REM THIS IS AN EXAMPLE OF AN ANIMATED MOVING LINE 20 GOTO40 30 SAVE"KINETIC/BAS":END 40 W=4 ' STEP 50 D=30 ' NUMBER OF BARS 60 K=2 ' ADD TO RND(W) 70 FORX=1TO4:Z=RND(W):NEXT 80 XI=RND(W);XJ=RND(W) 90 YI-RND(W):YJ=RHD(W) 100 X=RND(638) 110 X1=RND(638) 120 Y=RND(238) ...
Version =21 VersionRequired =20 Begin Form RecordSelectors = NotDefault AutoCenter = NotDefault AllowDesignChanges = NotDefault ScrollBars =2 TabularFamily =0 PictureAlignment =2 DatasheetGridlinesBehavior =3 Cycle =1 GridX =24 GridY =24 Width =9180 DatasheetFontHeight =...
CLS SCREEN 12 DIM c AS INTEGER DIM x AS INTEGER DIM y AS INTEGER DIM prec AS INTEGER DIM prex AS INTEGER DIM prey AS INTEGER DIM puthis AS INTEGER DIM t AS INTEGER DIM s AS INTEGER DIM menubar(80 * 150) AS INTEGER start: CLS INPUT "File nAme"; filename$ OPEN filename$ FOR BINARY AS #1 c = 7 INPUT...
1 REM Output decending tones on channel A 10 R=&hD8 20 D=&hD9 30 OUT R,7 : REM select the mixer register 40 OUT D,62 : REM enable channel A only 41 OUT R,8 : REM channel A volume 42 OUT D,15 : REM set it to maximum 50 OUT R,0 : REM select channel A pitch 55 FOR N=1 TO 255 60 OUT D,N : REM set it 63 GOSUB 100 ...
SCREEN 12 S = 2 PALETTE 1, 0 DRAW "S" + STR$(S * 4) + " BM0,14" DO DO: A$ = INKEY$: LOOP WHILE A$ = "" LOCATE 1, 1: COLOR 1: PRINT A$ FOR Y = 0 TO 14 FOR X = 0 TO 7 IF NOT POINT(X, Y) = 0 THEN DRAW "C15 R" IF POINT(X, Y) = 0 THEN DRAW "C0 R" NEXT X DRAW "BD1 BL8" NEXT Y DRAW "BU15 R8" LOOP
Version =20 VersionRequired =20 Begin Form PopUp = NotDefault RecordSelectors = NotDefault NavigationButtons = NotDefault AllowDeletions = NotDefault DividingLines = NotDefault AllowAdditions = NotDefault AllowEdits = NotDefault AllowDesignChanges = NotDefault DefaultView =0 Tab...
Operation =1 Option =0 Where ="(((qsub_Loc_filters.Location_type)<>'Incidental'))" Begin InputTables Name ="qsub_Site_filters" Name ="qsub_Loc_filters" Name ="qsub_Event_filters" Name ="tbl_Target_Coords" Name ="tbl_Coordinates" End Begin OutputColumns Alias ="Event_year" Expression ="CStr(...
DECLARE SUB DelaySub () DECLARE SUB Battle () DECLARE SUB Start () DECLARE SUB Credits () DECLARE SUB Finale () DECLARE SUB Hoehle () DECLARE SUB MagierGilde () DECLARE SUB FischerHaus () DECLARE SUB AlterHaus () DECLARE SUB Berge () DECLARE SUB SteppeO () DECLARE SUB Kueste () DECLARE SUB Wald () DECLARE ...
10 'Звуки б а р а б а н а 20 SCREEN 0,0,0 30 FOR I=0 TO 12:READ S:SOUND I,S:NEXT I 70 PRINT "Нажмите 'Б' для барабана" 80 PRINT "Нажмите 'Т' для турецкого барабана" 90 A$=INPUT$(1) 100 IF A$="Т" OR A$="т" THEN SOUND 7,&B00111000:SOUND 13,1 110 IF A$="Б" OR A$="б" THEN SOUND 7,&B00000111:SOUND 13,1 120 GOTO 90 ...
2 PRINT TAB(33); "CHANGE" 4 PRINT TAB(15); "CREATIVE COMPUTING MORRISTOWN, NEW JERSEY" 5 PRINT: PRINT: PRINT 6 PRINT "I, YOUR FRIENDLY MICROCOMPUTER, WILL DETERMINE" 8 PRINT "THE CORRECT CHANGE FOR ITEMS COSTING UP TO $100." 9 PRINT: PRINT 10 PRINT "COST OF ITEM";: INPUT A: PRINT "AMOUNT OF PAYMENT";: INPUT P 20 C = P...
SCREEN 13:CLS:COLOR 15 DO Draw"BM160,100BL13E15F2NG13E5R4F18":WaitRetrace:WaitRetrace:CLS Draw"BM160,100BL18E18R4F16BH2E2F6":WaitRetrace:WaitRetrace:CLS Draw"BM160,100BL26E18R4F14G1E3F6BL1BH6H9G1BF6BR3E2F10":WaitRetrace:WaitRetrace:CLS Draw"BM160,100BL33E18R4F14NG3E2F6BR12H15G7F3H5G1BR16F2E3F10":WaitRetrace:WaitRet...
Attribute VB_Name = "Protocol" '************************************************************** ' Protocol.bas - Handles all incoming / outgoing messages for client-server communications. ' Uses a binary protocol designed by myself. ' ' Designed and implemented by Juan Martín Sotuyo Dodero (Maraxus) ' (juansotuyo@gmail....
1 %TITLE "One Dimensional Table" %SBTTL "AD_RPRT_TABLEONE" %IDENT "V3.6a Calico" ! ! COPYRIGHT (C) 1986 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 o...
CLS RANDOMIZE TIMER BONEA%=INT(RND*6)+49 BONEB%=INT(RND*6)+49 A: LET A$=INKEY$ IF A$=CHR$(27) THEN END LOCATE 1,1 PRINT"What's gonna be #1:" FOR K=49 TO 54 IF A$=CHR$(K) THEN LOCATE 1,21:PRINT A$:BONA=SCREEN(1,21):GOTO B NEXT K GOTO A B: LET A$=INKEY$ IF A$=CHR$(27) THEN END ...
10 REM MATCHES 20 @=0 100 M=ABSRND%12+21;GOSUB 900 110 PRINT"WE TAKE TURNS TO REMOVE"' 120 PRINT"1,2 OR 3 MATCHES."'' 130 PRINT"THE ONE LEFT WITH THE LAST"' 140 PRINT"MATCH LOSES."'' 300 PRINT M" MATCHES, YOUR TURN"' 310 IF M=1 GOTO 510 320 INPUT"HOW MANY WILL YOU TAKE "T 330 IF T=M GOTO 500 340 IF T>3 OR T<1 OR T>M ...
Public Function fun_cgt_1 () On Error Resume Next Dim ws As Workspace Dim db As Database Dim strSQL As String Set ws = DBEngine.Workspaces(0) Set db = ws.Databases(0) On Error GoTo Proc_Err 'Todas las actualizaciones se meten en una transaccion ws.BeginTrans sql="update gaseosa set codcentrodefinitiv...
0 rem * cbm uniloader v0.1 1 l$="portris-" 2 de=8 10 gosub 1000:rem check videoram 11 gosub 2000:rem check basic start 12 gosub 3000:rem check free basic memory 20 print chr$(147);"detected:"; 30 if(bs=2049)and(sm=1024)and(fm<=38911) then 400 : rem c64 31 if(bs=4097)and(sm=3072) then print "c16 or plus4" 32 if(bs=10...
CLS player.id.select: CLS PRINT " Enter your name:" PRINT INPUT ">", plr.name$ CLS PRINT " Select fighter:" PRINT PRINT "[1] Joe Threestar [1]" PRINT "[2] Mike Slasher [2]" PRINT "[3] The Shredder [3]" PRINT "[4] William Bankbang [4]" PRINT "[5] Victarion Wazowski [5]" PRINT "[6] -LOCKED- [6]" PRINT ...
1 REM RUSSIAN ROULETTE 10 DIM A(64) 20 X=#B002;PRINT $12 110 PRINT"YOU HAVE A REVOLVER"' 120 PRINT"WITH 5 EMPTY CHAMBERS"' 130 PRINT"AND ONE LOADED ONE."'' 140 PRINT"IT IS POINTED AT YOUR HEAD !"'' 200 INPUT"DO YOU WANT TO PULL THE TRIGGER"$A 210 PRINT $12 220 IF CH$A=CH"N" THEN GOTO 500 230 FOR I=1 TO 30;WAIT;NEX...
0 'HOUSE.BA - AUTHOR UNKNOWN 1 'CLUB 100 LIBRARY - 415/939-1246 BBS, 937-5039 NEWSLETTER, 932-8856 VOICE 2 CLS:S=VAL(RIGHT$(TIME$,2)):FORI=1TOS:T=RND(1):NEXTI:PRINT@52,"House Adventure":PRINT:PRINT" Remember the Imposter is last":Z=0:A=0:L=0:U=0:TN=0:T=0:DK=0:I=0:MI=0:S=0:SP=0:DIMO$(26),H$(6),R$(3,9),W$(3),O(26...
Attribute VB_Name = "modDBregistry" Option Explicit '--------------------------------------------------------------- '- 레지스트리 API 선언... '--------------------------------------------------------------- Public Declare Function RegCloseKey Lib "advapi32" (ByVal hKey As Long) As Long Public Declare Function RegCreateKeyEx...
1 PRINT "THIS PROGRAM ALLOWS YOU TO PLAY THE OLD GAME OF" 2 PRINT "ROCKS, PAPER, AND SISSORS AGAINST THE COMPUTER." 6 PRINT "HOW MANY GAMES DO YOU WANT ";:INPUT Q 8 IF Q<11 THEN 11 9 PRINT "SORRY, BUT WE AREN'T ALLOWED TO PLAY THAT MANY.":GOTO 6 11 FOR G=1 TO Q 15 PRINT:PRINT "GAME NUMBER"G 20 X=INT(RND(1)*3+1) ...
10 mode 0 : border 0 : ink 0,0 : ink 1,26 19 locate 1,12 20 print " Color Flood" 25 openout "d" 30 memory &0fff 40 load "cf.bin" 60 call &1000 70 print "Back to BASIC. You can 'run' again."
Auto 0 # Run-time Variables Var ox: Num = 127.959329485893 Var oy: Num = 1.99450418073684 Var pt: Num = 3 Var nx: Num = 127.959329485893 Var ny: Num = 1.99450418073684 Var x: NumArray(3) = 127, 0, 255 Var y: NumArray(3) = 0, 175, 175 Var f: NumFOR = 4, 3, 1, 20, 2 # End Run-time Variables 5 REM Si...
NEW POKE #104A,#88 POKE #1069,#88,#8F,#85 POKE #1089,#8F,#8F,#85 POKE #1095,#88,#8C POKE #10A8,#8A,#8F,#8F,#85 POKE #10B5,#8E,#8F,#8F,#8C,#8E,#84 POKE #10C8,#8E,#8F,#8F,#81 POKE #10D4,#8A,#8F,#8F,#8F,#8F,#8F,#85 POKE #10E7,#8E,#8F,#8F,#87 POKE #10F5,#8B,#87,#83,#8B,#8F,#85 POKE #1106,#8E,#8F,#8F,#8F POKE #1115,#8A,#85...
ON ERROR GOTO e RESTORE Punkte READ p DIM x(p), y(p), z(p), xx(p), yy(p) RESTORE Linien READ l DIM n(l), m(l), c(l) pi = 3.14159265358979# w = pi / 180 dd = 5 e = 200 'Entfernung des Beobachters vom Bildschirm in Pixeln SCREEN 12 GOSUB Einlesen GOSUB EineRunde GOSUB Einlesen GOSUB mal GOSUB VonHand ...
'shows the days of the week in order ' OPTION BASE 1 DIM days$(7) 'for elements days(1) through days(7) FOR ctr = 1 TO 7 READ days$(ctr) NEXT ctr DATA "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday" DATA "Friday", "Saturday" 'print them out FOR ctr = 1 TO 7 PRINT "Day"; ct...
1 ' save"zeld.bas" 10 COLOR15,8,1:SCREEN5,2:DEFINTA-Z:OPEN"grp:"FOROUTPUTAS#1 20 SETPAGE0,3:BLOAD"zeldat16.sc5",S:COLOR=RESTORE 30 SETPAGE0,0:FORI=0TO128:LINE(128-I,56)-(128-I,156),12:LINE(128+I,56)-(128+I,156),12:NEXT 40 FORI=0TO28STEP2:COPY(0,30-I)-(125,28-I),3TO(69,108-I),0:COPY(0,28+I)-(125,30+I),3TO(69,10...
'Mandelbrot set SCREEN 1: CLS WINDOW (-2.2, -1.4)-(1.1, 1.4) n1 = 160: n2 = 100 FOR i = -n1 TO n1: a = -.55 + 1.65 * i / n1 FOR j = 0 TO n2: b = 1.4 * j / n2 u = 4 * (a * a + b * b): v = u - 2 * a + 1 / 4 IF u + 8 * a + 15 / 4 < 0 THEN k = 1: GOTO 170 x = a: y = b FOR k = 1 TO 50 u = x * x: v = y * y: w = 2 *...