text
stringlengths
7
5.36M
5 SCREEN 1 10 SQUARE$ = "F60 L120 E60" 15 DRAW "C2 X" + VARPTR$(SQUARE$) 20 DRAW "BD30 P1,2 C3 M-0,-0" PRINT PRINT PRINT PRINT PRINT PRINT PRINT PRINT PRINT PRINT PRINT PRINT PRINT PRINT PRINT PRINT PRINT 25 PRINT " BEC SOFTWARE PRESENTS" 30 'PLAY SCALE IN 7 DIFFERENT OCTAVES 35 SCALE$...
' Wir benutzen den ATMega8 $regfile = "m8def.dat" ' MyAVR Board hat ein 3.6864MHz Crystal ' Diese Frequenz ermöglich Serielle BAUD Raten mit 0% Fehler ' Wichtig: Der Mega muss den Ext Osc. Fuse gesetzt haben $crystal = 8000000 ' Print/RS232 Baud Rate $baud = 9600 $hwstack = 32 ' default use 32 for the h...
Version =20 VersionRequired =20 Begin Form PopUp = NotDefault RecordSelectors = NotDefault NavigationButtons = NotDefault DividingLines = NotDefault AllowDesignChanges = NotDefault DefaultView =0 PictureAlignment =2 DatasheetGridlinesBehavior =3 GridX =24 GridY =24 Datasheet...
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 1...
10 FOR I = 10 WHILE I < 5 20 PRINT I 30 NEXT I 90 STOP 99 END
10 A$="FRED" 20 B$="BORNEY" 30 C$=A$+B$ 40 PRINT C$ 50 D$=B$+A$ 60 PRINT D$ 70 PRINT C$
1 ‘N88-BASIC WINDOW文を用いたスクロール 2 cls 3:screen 3 3 x=320:y=200 4 k=inp(&he0) 5 xf=xf+(k=239)*(xf>-5)-(k=191)*(xf<5) 6 yf=yf+(inp(&he1)=254)*(yf>-5)-(k=251)*(yf<5) 7 line(100,1000)-(100,-1000),7 8 window(x-320,y-200)-(x+319,y+199) 9 x=x+xf:y=y+yf 10 line(100,1000)-(100,-1000),0 11 goto 4
$00,$00,$00,$00, $00,$80,$80,$00, $80,$C0,$C0,$80, $C0,$C0,$C0,$C0, $C0,$E0,$E0,$C0, $E0,$E0,$E0,$E0, $E0,$F0,$F0,$E0, $F0,$F0,$F0,$F0, $F0,$F8,$F8,$F0, $F8,$F8,$F8,$F8, $F8,$FC,$FC,$F8, $FC,$FC,$FC,$FC, $FC,$FE,$FE,$FC, $FE,$FE,$FE,$FE, $FE,$FF,$FF,$FE, $FF,$FF,$FF,$FF
100 ' LEN sample 110 INPUT A$:L=LEN(A$) 120 GOSUB 160 130 PRINT "* ";A$;" *" 140 GOSUB 160 150 END 160 ' frame 170 FOR I=1 TO L+4 180 PRINT "*"; 190 NEXT I 200 PRINT 210 RETURN
10 FOR X=&HFF TO &H7F7 20 A=VPEEK(X):VPOKE X,A OR A/2 30 NEXT X 
1 %TITLE "Payroll W2 Tape Process" %SBTTL "PR_SPEC_TAXFLOPPY_1999" %IDENT "V3.6a Calico" ! ! COPYRIGHT (C) 1993 BY ! Computer Management Center, Inc. ! Idaho Falls, Idaho 83402 ! ! This software is furnished under a license and may be used and ! copied only in accordance with terms of such license and with ...
1 'Example of END statement 10 GOSUB 50 20 PRINT "STATEMENT" 30 END:'This END statement prevents the program from falling through and causing error. 40 .. 50 PRINT "END "; 60 RETURN
a = 1 5 CLS SCREEN 12 VIEW (10, 10)-(600, 450), 0 WINDOW (-10, -10)-(100, 100) FOR s = 1 TO 60 CIRCLE (44, 42), s, 8 PAINT (300, 200), 8, 8 FOR q = 1 TO 400: NEXT q NEXT s a = a + 1 IF a = 5 THEN 10 GOTO 5 10 END END
10 rem down count 20 code = 49152 30 for loop = 0 to 10 40 read byte 50 poke code + loop,byte 60 next loop 70 rem 80 rem m/c data 90 data 162,10 : rem $a2,$0a - ldx #10 ; load 10 into x register 100 data 169,33 : rem $a9,$21 - lda #asc"!" ; load ascii ! in...
10 REM compactflash demo, www.smbaker.com 20 REM This was intended to be a basic program that could read and write 30 REM the compactflash card. Unfortunately, doing a sector write on a fuji 40 REM card using basic appears to be too slow and aborts. 50 GOSUB 8000 : REM configure 100 print "1 - dump drive id" 110 pri...
REM @english REM GRAPHICS PRIMITIVES WITH CLIPPING (1) REM REM This example will show the effect of the use of ''CLIP'' command. REM REM @italian REM PRIMITIVE DI GRAFICA CON CLIPPING (1) REM REM Questo esempio mostra l'effetto dell'utilizzo del comando ''CLIP''. BITMAP ENABLE CLS BLACK INK YEL...
'---------------------------------------------------------------------------- ' ' CosmoX CALLS Module ' ' Part of the CosmoX Library v2.0 ' by bobby - CosmoSoft 2000-2001 ' '---------------------------------------------------------------------------- DECLARE FUNCTION xCSChdir% (BYVAL Segment%, BYVAL Offset%)...
Version =20 VersionRequired =20 PublishOption =1 Checksum =-953372061 Begin Form RecordSelectors = NotDefault ControlBox = NotDefault NavigationButtons = NotDefault CloseButton = NotDefault DividingLines = NotDefault AllowAdditions = NotDefault AllowDesignChanges = NotDefault ScrollBars...
110 INPUT "day?";day 120 INPUT "month?";month 130 INPUT "year (20th century only)?";year 140 PRINT day;"/";month;"/";year 510 INPUT "again?", a$ 520 IF a$="n" THEN GO TO 540 530 IF a$ <> "N" THEN GO TO 110 540 INPUT "yards?",yd,"feet?",ft, "inches?",in
09 led brightness 50 10 let r = 255 20 let g = 0 30 let b = 0 40 led fill rgb(r,g,b) 50 for i = 0 to 254 60 let r = r - 1 70 let g = g + 1 80 led fill rgb(r,g,b) 90 next i 100 for i = 0 to 254 110 let g = g - 1 120 let b = b + 1 130 led fill rgb(r,g,b) 140 next i 150 for i = 0 to 254 160 let ...
10 REM 'MID$' TEST PROGRAM 20 A$="CONTESTANT" 30 B$=MID$(A$,3,4) 40 PRINT MID$("ATHENA",1,3);" 'MID$' FUNCTION PASSED THE ";B$ 99 END
10 REM STRING LOGICAL 'OR' TEST PROGRAM 20 A$="A" 30 B$="F" 40 IF A$="A" OR B$="B" THEN 70 50 PRINT "OR FAILED THE STRING LOGICAL OPERATOR TEST" 60 GOTO 99 70 PRINT "OR PASSED THE STRING LOGICAL OPERATOR TEST" 99 END
'D‚finition ‚cran 320 * 200 avec pixel et texte CLS SCREEN 7 'Coordonn‚es de base 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) GOSUB gauche KE...
10 dim a(3,3) 20 for i=1 to 3 : for j=1 to 3 : read a(i,j) : next : next 30 mat print a 40 mat a=(3)*a 45 print 50 mat print a 60 data 1,2,3,4,5,6,7,8,9 80 dim inch_array(5,1),cm_array(5,1) 90 mat read inch_array 100 data 1,12,36,100,39.37 110 mat print inch_array 120 mat cm_array=(2.54)*inch_array 130 mat print cm_arr...
tio1 CLEAR 30000 5 CLS: PRINT "CURSAT ver 2.0 - A program to calculate rarefaction curves": PRINT 6 PRINT "Gabriele Gentile, Department of Biology, University TOR VERGATA" 7 PRINT "Viale della Ricerca Scientifica, 1 - 00133, Rome, Italy" 8 PRINT "E-mail: gabriele.gentile@uniroma2.it" 9 PRINT: PRINT: PRINT 10 I...
FRAMECLASS$ = "WMLibertyMDIFrame": FRAMECLASS$(0) = FRAMECLASS$ CHILDCLASS$ = "WMLibertyMDIChild": CHILDCLASS$(0) = CHILDCLASS$ Open "Kernel32" For DLL As #kernel Open "User32" For DLL As #user Open "WMLiberty.dll" For DLL As #wmlib CallDLL #kernel, "GetModuleHandleA", _ _NULL As long, _ hInstance As long hIn...
INICIO: CLS PRINT "" PRINT " PROGRAMA QUE CALCULA EL PRESTAMO DE UNA FINANCIERA" PRINT INPUT " DIGITE EL MONTO DEL PRESTAMO : ", MONTO INPUT " DIGITE LA TASA DEL PRESTAMO : ", TASA INPUT " DIGITE EL TIEMPO DEL PRESTAMO : ", TIEMPO REM CLACULO DE LOS INTERESES INTERESES = MONTO * TASA / 100 REM CALCULO DEL TIEMPO...
100 ' CALL sample {GRPH} 110 CLEAR ,&HDFFF 120 GOSUB 210 130 CONSOLE 0,25,0,1:WIDTH 80,25:CLS 140 FOR I=1 TO 80*24 150 PRINT "é"; 160 NEXT I 170 CLS:FOR I=1 TO 500:NEXT I 180 VAD%=&HF3C8:AC=&HE000 190 CALL AC(VAD%) 200 END 210 FOR AD=&HE000 TO &HE015 220 READ DA:POKE AD,DA 230 NEXT AD 240 RETURN 250 DA...
P0 5 G=0 10 PRINT "SLOT GAME" 20 INPUT "AMOUNT OF BET",A 30 B=1 40 FOR C=1 TO 12 50 X=INT(RAN#*10) 60 Y=INT(RAN#*10) 70 Z=INT(RAN#*10) 80 PRINT CSR 1;X;":";Y;":";Z; 90 FOR D=1 TO C^2 100 NEXT D 110 NEXT C 120 IF X=Y;B=B*4 130 IF Y=Z;B=B*4 140 IF X=Z;B=B*4 150 IF B=1;B=B-1 160 G=G+B*A:STOP 170 PRINT CSR 1;B*A;"(";G;")"...
rem ------------------------------------------------------------------------------------------- rem ` __________ ____ ________ ______ ___ ______ ____ ____ __ ` rem ` %%%%%%%%%% %%%% %%%%%%%% %%%%%% %%% %%%%%% %%%% %%%% %% ` rem ` ...
!-------------------------------------------------- !- Friday, November 15, 2019 1:29:57 PM !- Import of : !- c:\dev\_cbm\work\disk filer.prg !- Commodore 64 !-------------------------------------------------- 3 CO=0:DV=PEEK(186):DR=0:D0=DV:D1=DR:F0=PEEK(53280):F1=PEEK(53281) 4 IFPEEK(49152)<>76THENLOAD"ssort.m...
0 REM"{delete*9}{space*3}printed by{space*12}mike galluchon 100 X=PEEK(648)*256:SYS65517:GP=PEEK(781):IFGP=40THENCR$=CHR$(13) 110 DIMM%(17,17):O$="{down}{space*2}{reverse on}press any key":IFGP<>40THENPOKE36879,110 120 FORJ=1TO17:FORI=2TO16:M%(1,J)=1:M%(17,J)=1:M%(I,17)=1:M%(I,1)=1:NEXTI,J 130 FORI=3TO16STEP2:FORJ=...
Version =20 VersionRequired =20 Begin Form PopUp = NotDefault DefaultView =0 TabularFamily =0 PictureAlignment =2 DatasheetGridlinesBehavior =3 GridX =24 GridY =24 Width =9960 DatasheetFontHeight =9 ItemSuffix =19 Left =2310 Top =2715 Right =12555 Bottom =5580 ...
1 ! ! This is a test program to show a few of the things ! that are actually working in the btran translator. ! ! It is not meant as a useful program, it just gives ! a sample of some of the features that seem to work ! completely, and to show that some fairly complex ! programs can be compiled using btran. ! ...
DECLARE SUB editmonth () DECLARE SUB savemonth () DECLARE SUB loadmonth () DECLARE FUNCTION Filter$ (Txt$, FilterString$) DECLARE SUB Travel (new) DECLARE FUNCTION inpts2$ (maxlen!, first$, whole$, yes) DECLARE SUB shiftpalette () DECLARE SUB hline (left!, right!, top!) DECLARE FUNCTION remspace$ (string1$) DECLARE SUB...
50 REM TRS80 Basic - 0..64 Chars auf 16 Zeilen 60 REM Treasure Dungeon 2, by David E. White[30-Mar-2014] 70 REM converted to CPC 01/2017 by SRS 100 MODE 2 102 CLS:PRINT"TREASURE DUNGEON 2" 105 CLEAR 120 PA=10:PD=10:PT=0 125 REM W1$=CHR$(255)+CHR$(255)+CHR$(255)+CHR$(255)+CHR$(255) 130 REM O1$=CHR$(255)+CHR$(255...
10 DIM W(64),T(64),P(8) 20cPRINT $12;X=1;Y=0;%T=0 30dPRINT $30," ",$13 40 INPUT" AMOUNT "$W;%W=VALW;PRINT $30 42 IF $W="E"THEN FPRINT%T;G.c 45 FIF%W=0THEN PRINT$7;G.d 50 %T=%T+%W 60 STR%T,T;GOSUBb 70 P!0=#8000+19;P!4=T 80 GOSUBa 90 P!0=#8000+X*32+Y;P!4=W 100 GOSUBa 110 X=X+1 120 IF X>15 THEN X=1;Y=Y+...
CLS PRINT "Are you testing one thing or 2 (just type the number!)", num$ IF num$ = "1" GOTO 1 ELSE GOTO 2 OPEN "LIST" FOR OUTPUT AS #1 1 DO INPUT " NAME: ", Name$ PRINT "How many"; ting$; " does "; Name$; INPUT "have", Dada$ WRITE #1, Name$, Dada$ INPUT "Add another entry (Y or N)";...
10 X=RND(4) 20 Y=RND(4) 30 ? "WHAT IS"X"+"Y 40 T=0 50 A$ = INKEY$ 60 T=T+1 70 SOUND 128,1 80 IF T=15 THEN 200 90 IF A$ = "" THEN 50 100 IF VAL(A$)=X+Y THEN 130 110 PRINT "WRONG"X"+"Y"="X+Y 120 GOTO 10 130 PRINT "CORRECT" 140 GOTO 10 200 CLS(7) 210 SOUND 180,30 220 ?"TOO LATE"
10 c=32000:b=0:ti$="000000":for i=0 to 40000 20 if i<30000 then b=b+1 25 if i=20000 then print "halftime" 30 c=c-1:u=peek(b+1):poke 832,35 40 next 50 printb,c,u,ti
Attribute VB_Name = "Dates" Option Private Module Option Explicit: Option Base 1 Const SqrTwoPi = 2.506628274631, PiOffs = 0.0001, Brk = "Ages of stacked, dated beds" Dim aa#(), VarA#(), SigmaA#(), Ndat%, Ncomp% Dim Toffs#, BadMix As Boolean, SigmaRho#(), MixConstr As Boolean Sub Mix(Optional FromMenu = False) Attribu...
10 DIM P$(41),S(41),R(41),V(41),J(41),M(41),K(21),L(41),C(41),B(41),O(41) 20 PRINT "HOW MANY PLAYERS"; 30 PRINT "(TYPE '0' FOR INSTRUCTIONS)"; 40 INPUT N 50 IF N>0 THEN 80 60 GOSUB 8580 70 GOTO 20 80 IF N<11 THEN 110 90 PRINT" NO MORE THAN 10 CAN PLAY" 100 GOTO 20 110 FOR Q5 = 1 TO N 120 PRINT "NAME"; 130 REM THIS PART...
5 dim v$(24):v$(0)="{home}":for i=1 to 24:v$(i)=v$(i-1)+"{down}":next 10 poke 53281,1:print"{clr}{blk}":poke 657,128:fg$="Q":nv=12:nh=20:goto 45 15 jy=peek(56321) and 15 20 h=((jy and 4)=0)-((jy and 8)=0) 25 v=((jy and 1)=0)-((jy and 2)=0) 30 if h=0 and v=0 then 15 35 nv=ov+v+24*((ov=23 and v=1)-(o...
1 ? " *************************************" 2 ? " * *" 3 ? " * TRAVELLER TRADER 2020.04 *" 4 ? " * *" 5 ? " * - PILOT A MARAVA FREE TRADER *" 6 ? " * - BUY AND SELL CARGO *" 7 ? " * - EXPLORE THE SPINWARD MARCHES *" 8 ? "...
10 ! & ! Program name: [1,8]CONPNB Compiled with SCALE 0 on V07.0 & ! Decompiled on 06-Jul-87 at 11:34 AM by UNBAC Version 1 50 DIM M1$(23%), M$(23%), M2$(44%), M(44%), P1$(29%), P$(9%), P(7%), & P%(15%), D1$(25%), D$(11%), D(14%) 90 DIM Y$(30%) & \ READ Y$(I%) FOR I%=1% TO 30% 91 DATA " ONE"," TWO","...
RANDOMIZE TIMER SCREEN 12 DIM c(100, 100) AS INTEGER start: CLS LOCATE 10, 20 PRINT "Working..." t = INT(RND * 2) + 1 't = 1 FOR x = 0 TO 100 FOR y = 0 TO 100 c(x, y) = 3 - t NEXT y NEXT x lakes = INT(RND * 20) + 1 lakes = lakes * t FOR i = 1 TO lakes lx = INT(RND * 100) + 1 ly = INT(RND * 100) + 1 ls = INT(RND * 2...
Function FileExists(ByVal FileToTest As String) As Boolean FileExists = (Dir(FileToTest) <> "") End Function Sub lixo() ' ' lixo Macro ' ' Dim oApp As Object 'Objeto application Dim Arquivo As Variant Dim NovaPasta As Variant Dim Caminho As String Dim strDate As String Dim test As String Dim nume As Integer Dim c...
Operation =2 Name ="tblCboProjectStatus" Option =0 Begin InputTables Name ="dbo_ProjectStatus" End Begin OutputColumns Expression ="dbo_ProjectStatus.ID" Expression ="dbo_ProjectStatus.StatusDesc" End Begin OrderBy Expression ="dbo_ProjectStatus.ID" Flag =0 End dbBoolean "ReturnsRecords" ="-1" dbIn...
10 INPUT Z 20 PRINT VARPTR(Z) 
10 MAXFILES=2 11 OPEN"PHC-35J_.ROM"AS#1LEN=1 12 OPEN"PHC-35J_.ASM"FOROUTPUTAS#2 20 FIELD#1,1ASA$ 30 FORA=&H1BBFTO&H1BBF+8*256-1STEP8 31 B$=CHR$(9)+"DEFB"+CHR$(9) 35 FORB=0TO7 40 GET#1,A+B+1 49 IFB>0THENB$=B$+"," 50 B$=B$+RIGHT$("00"+HEX$(ASC(A$)),3)+"H" 55 NEXTB 56 PRINTB$ 57 PRINT#2,B$ 60 NEXTA 69 CLOSE#2 7...
1 print tab(23);"millionaire" 2 print tab(20);"creative cqhputing" 3 print tab(18);"morristown, new jersey" 4 print:print:print 10 rem millionaire by craig gunnett 20 print "this is the game of 'millionaire'. all you must do is" 30 print "type in your name and answer some questions. the" 40 print "decisions you ma...
CLS SCREEN 1 PRINT "What is the message" INPUT A$ CLS DRAW "br-150 bd-100 " IF A$ = "A" OR A$ = "a" THEN SQUARE$ = "D4 R8 U4 L8 BR4 D2 BL4 R8 BL4 U2 BD4 D2 R7 U5 R1 D6 L8 D6 R2 D5 R4 D1 L5 U5 L4D4 L4 D1 R5 U6L1 R2 U6 L7 U6 R1 D5 R6 U1" DRAW "X" + VARPTR$(SQUARE$)
10 REM ***** PROGRAM 'DATES' **************** 20 REM ***** SUBMITTED BY HERMAN COHEN ****** 30 REM ***** USER: 73565,634 **************** 50 REM ***** [213] 645-2185 ***************** 60 REM ************************************** 70 E$=CHR$(27) 80 PRINT "" 90 PRINT 100 LET Y1=1979 110 GOSUB 1580 120 PRINT "E...
atom=H contraction shell=S num_primitives=2 num_coefficients=1 13.01072961 0.13140985 1.96226117 0.92113973 contraction shell=S num_primitives=2 num_coefficients=1 0.44453873 0.52276833 0.12194975 0.54767537 atom=He contraction shell=S num_primitives=2 num_coefficients=1 38.35494849 0.14069699 5.76890973 0.91521787 con...
10 Print "TEST.BAS -- TEST" 20 X=7 30 print "X is ";X
10 SCREEN 0:WIDTH80:CLS:W=256-10-26-26 20 OPEN "text.asc" FOR OUTPUT AS #1 30 READ LA$,X,Y,TX$ 31 PRINT TX$ 40 IF LA$="$" THEN 200 50 IF LA$="-" THEN 190 60 IF LEN(LA$)>0 THEN PRINT #1,LA$; 70 PRINT #1,CHR$(9);"dw ";HEX$(&H8000+256*Y+X);" ; x=";X;", y=";Y 80 PRINT #1,CHR$(9);"db ";LEN(TX$);" ; '";TX$;"'" 90 ...
!-------------------------------------------------- !- Thursday, September 16, 2021 2:45:39 PM !- Import of : !- z:\_cbmsoft\_bo_unz\d-zelch\zee2wm\prg.wm.p1.prg !- Unknown Machine !-------------------------------------------------- 0 DV=8:LU=0:D2=8:L2=0:LU$=MID$(STR$(LU),2):REM D2 AND L2 ARE FOR PRG.* 1 IFOO$=...
Version =20 VersionRequired =20 Begin Form AutoCenter = NotDefault AllowDeletions = NotDefault AllowAdditions = NotDefault ScrollBars =2 ViewsAllowed =1 TabularFamily =127 PictureAlignment =2 DatasheetGridlinesBehavior =3 GridX =24 GridY =24 Width =10080 DatasheetFontHei...
' Define type for the titles: TYPE TitleType MainTitle AS STRING * 40 XTitle AS STRING * 40 YTitle AS STRING * 18 END TYPE DECLARE SUB InputTitles (T AS TitleType) DECLARE FUNCTION DrawGraph$ (T AS TitleType, Label$(), Value!(), N%) DECLARE FUNCTION InputData% (Label$(), Value!()) ' Variable decla...
SCREEN _NEWIMAGE(800, 600, 32) DO WHILE _MOUSEINPUT: WEND CLS , _RGB32(51, 51, 51) 'the shadow being cast... sort of shadow~& = _RGBA32(0, 0, 0, map(dist(_MOUSEX, _MOUSEY, _WIDTH / 2, _HEIGHT / 2), 0, _WIDTH / 1.5, 255, 0)) FOR i = 60 TO map(dist(_MOUSEX, _MOUSEY, _WIDTH / 2, _HEIGHT / 2), 0, _WID...
10 rem two's complement converter 15 rem using sbc 20 code = 49152 30 for loop = 0 to 7 40 read byte 50 poke code + loop,byte 60 next loop 70 rem 80 rem m/c data 90 data 56 : rem $38 - sec ; set carry flag 100 data 169,0 : rem $a9,$00 - lda #0 ; load a ...
client = _OPENCLIENT("TCP/IP:6667:chat.freenode.net") IF client THEN PRINT "[Connected to " + _CONNECTIONADDRESS(client) + "]" IrcClient (client) ELSE PRINT "[Connection Failed!]" END IF ' The "main" sub-routine SUB IrcClient (handler) nick$ = "NICK TonyBot" + CHR$(13) + CHR$(10) user$ = "USER To...
' test basic DO LOOP OPTION EXPLICIT DIM s AS INTEGER = 0 DO s = s + 1 IF s > 41 THEN EXIT DO END IF LOOP ASSERT s = 42
dim blink_array() = { 0x08bc1ff0, 0x08fc2000, 0x28fc2001, 0xa0bc2210 0x80bc23f1, 0x64bfe80e, 0x68bfec0e, 0x68bfe80e 0xf8bc2210, 0x64bfe80e, 0xf8bc2210, 0xe4fc1e07 0x0cfc1e01, 0x0c7c1e03, 0x00008000 } def blink_size = 15
SUB CHDER (A, B, C(), CDER(), N) CDER(N) = 0! CDER(N - 1) = 2 * (N - 1) * C(N) IF N >= 3 THEN FOR J = N - 2 TO 1 STEP -1 CDER(J) = CDER(J + 2) + 2 * J * C(J + 1) NEXT J END IF CON = 2! / (B - A) FOR J = 1 TO N CDER(J) = CDER(J) * CON NEXT J END SUB
10 :REM'HELANT - Helical Antenna-VHF/UHF - 15 APR 2000, rev. 20 CLS:KEY OFF 30 IF EX$=""THEN EX$="EXIT" 40 COLOR 7,0,1 50 LF=1/LOG(10) :REM'factor to convert log to base 10 60 PI=4*ATN(1) :REM'3.141593 70 V=299792.5! :REM'velocity of light in m,/sec. 80 UL$=STRING$(80,205) 90 :REM' 100 :REM'.....title page 110 VIEW PR...
10 :'BOMBER by DAVE TOWN 20 :'copyright (c) AMSOFT 1984 30 :' 40 MODE 1:CLS:INK 0,0:BORDER 0:INK 1,18:INK 2,6:INK 3,4:INK 5,15:INK 6,2:INK 7,24:INK 8,8:INK 9,26:INK 10,10:INK 11,20:INK 12,12:INK 13,16:INK 14,14:INK 15,21 50 SYMBOL AFTER 240:SYMBOL 241,&40,&60,&70,&7F,&7F,&3F,&7,&0:SYMBOL 242,&0,&32,&7A,&FE,&FA,&F2,&E0,...
' Paper-Scissors-Stone! random version | IchigoJam BASIC ' Copyright (c) 2015 Keiichi Shiga (BALLOON | FU-SEN) ' The MIT License (MIT) - https://mit.balloon.net.eu.org/#2015 10 PRINT"ジャンケンポン!" 20 IF INKEY()<>0 GOTO 20 30 IF INKEY()=0 GOTO 30 40 I=RND(3) 50 IF I=1 PRINT"グー":GOTO 80 60 IF I=2 PRINT"チョキ":GOTO 80 70 PRI...
5 REM ** DECLARE / INIT VARIABLES 10 X= RND(-TI) 15 DIM GPD$(3) :DIM GX(3) : DIM GY(3) : DIM GC(3) : DIM GL(3) 20 GPD$(0)="l" : GPD$(1)="l" : GPD$(2)="l" : GPD$(3)="l" : REM GHOST PREV DIR 30 GX(0)=1 : GX(1)=1 : GX(2)=25 : GX(3)=25 : REM GHOST X POSN 40 GY(0)=1 : GY(1)=23 : GY(2)=1 : GY(3)=23 :...
Dim autosave_workname, autosave_houzhui, autosave_filename, autosave_filepath Sub 旧Excel文件破解() Dim fileName fileName = Application.GetOpenFilename("Excel文件,*.xls;*.xla;*.xlt", , "旧格式文件破解") If Dir(fileName) = "" Then MsgBox "没找到相关文件,请重新设置" Exit Sub Else FileCopy fileName, fileName & ".bak" '备份文件 End If Dim Ge...
10 INPUT "Cual es tu nombre?"; U$ 20 PRINT "Hola "; U$ 30 INPUT "Cuantas estrellas quieres?"; N 40 LET S$ = "" 50 FOR I = 1 TO N 60 REM LET S$ = S$ + "*" 70 NEXT I 80 PRINT S$ 90 INPUT "Quieres mas estrellas?"; A$ 120 IF A$ = "S" THEN GOTO 30 130 PRINT "Adios !! "; U$ 140 END
5 'from Lauwerier H., 1991. "Fractals Images of Chaos" Penguin 209p. 10 'Pythagoras Tree 20 'Using Binary Number System 30 'Name: PYTHT2 40 SCREEN 12, 0, 0, 0: CLS : pi = 3.141593 50 WINDOW (-2.5, -2)-(5.5, 4) 55 COLOR 15: LOCATE 1, 1: PRINT "Lopsided Pythagoras tree" 60 DIM x(2048), y(2048) 70 'Choice of angle 80 f ...
' recursive FUNCTION Rec(n) IF n = 1 THEN Rec = 1 ELSE Rec = n + Rec(n - 1) END IF END FUNCTION FUNCTION Main() PRINT Rec(10.0) PRINT Rec(100) END FUNCTION
100 REM *************** 110 REM ** ** 120 REM ** ELLIPSE ** 130 REM ** ** 140 REM *************** 150 REM 160 V=53248 : SA=8192 170 GOSUB 10000 : REM GRAPHICS ON 180 CO = 0*16 + 1 : GOSUB 10400 : REM SET COLOR 190 GOSUB 10200 : REM CLEAR GRAPHICS 270 XR=100:YR=80:XM=160:YM=100:REM X/Y-RADIUS===MIDPOINT COORDIN...
Attribute VB_Name = "DATE_SERIES_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. '*************************************************************...
'********* COLORS.BAS - prints a chart of the screen attributes for each color 'Copyright (c) 1988 Ethan Winer 'This chart provides a quick reference showing the correct "encoded" color 'value to use with PDQPrint. To get a hard copy printout, simply press 'Shift-PrtSc once it is on your screen. ' 'To obtain the equ...
1 REM AMAZING -- DRAW A MAZE 2 REM 3 REM FROM 101 BASIC COMPUTER GAMES 4 REM DIGITAL EQUIPMENT CORPORATION 5 REM MAYNARD, MASSACHUSETTS 01754 6 REM 7 REM 1975 8 REM 9 REM DESCRIPTION 10 REM 11 REM THIS PROGRAM WILL PRINT OUT A DIFFERENT MAZE EVERY TIME IT IS 12 REM RUN AND GUARANTEES ONLY ONE PATH THROUGH. YOU CAN CHO...
5 rem *** requires simons' basic - needs debugging *** 10 dim a(100),p(100) 20 print"{clear}{yellow}":colour 0,0 40 print tab(17)"menu" 50 print tab(12)"{white}{down}1: enter data" 60 print tab(12)"2: view chart" 70 print tab(12)"3: end" 80 get g$:g=val(g$):if g<1 or g>3 then 80 90 on g gosub 200,400,600 100 goto 20 20...
'$include:'/../fzxNGN/typesAndConstants/fzxNGNTypes.bas' '$include:'/../Pool/poolTypesConstArrays.bas' '$include:'/../fzxNGN/physics/collisionQuery.bas' '$include:'/../fzxNGN/body/bodyTools.bas' '********************************************************************************************** ' Pool related Methods '**...
value = 3 select case value case 1 print reversed$("one") case 2 print reversed$("two") case 3 print reversed$("three") case 4 print reversed$("four") case 5 print reversed$("five") case else ...
Attribute VB_Name = "PLayer_Cod" Option Explicit '**************************************************************************************************** '* * '* Copyright's(c) GHAYESH RAYANEH(GhayeshSoft)...
ordner$ = "test\" CLS DIM z(0) AS INTEGER, i(0) AS STRING * 3 OPEN "c:\eigene~1\rafael\magisch\" + ordner$ + "form.bmp" FOR BINARY AS #1 OPEN "c:\eigene~1\rafael\magisch\" + ordner$ + "muster.bmp" FOR BINARY AS #2 GET #1, 19, z(0) x1 = z(0) GET #1, 23, z(0) y1 = z(0) GET #2, 19, z(0) x2 = z(0) GET #2, 23, z(...
0 if peek(49152) <> 128 then load "m/l",8,1 1 goto 1000 10 rem:::::::graphics 11 if mu then poke 53270,216 : rem mu = multi color graphics 12 poke 53265,59 : rem 59 for graphics, 27 for text 13 poke 53272,29 : rem pixel pattern storage, 29 means patterns not stored in same location as colors 14 poke 56576,198 : r...
COLOR 3 PRINT "++-" sleep
LET s = 0 'number of times a space ship is hit LET s1 = 0 'number of times a space ship is hit LET co = 2 'number of steps the laser to the spaceship LET delay = 90 'delay so that you can see the laser moving LET col = 12 'color of laser LET cal = 9 'colo...
Attribute VB_Name = "Mod_PROC" ' Declaraciones del Api '********************************************************************************* ' Enumera los procesos ' Retorna un array que contiene la lista de id de los procesos Private Declare Function EnumProcesses Lib "psapi.dll" ( _ ByRef lpidProcess As Lo...
1 %TITLE "Employee Accruals" %SBTTL "PR_RPRT_EMPACCRUAL" %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 i...
#COMPILE EXE #DIM ALL %TRUE = -1 %FALSE = 0 #INCLUDE "PB_FileHandlingRoutines.inc" $MyFile = "MyFile.txt" $OutputFile = "OutputFile.txt" FUNCTION PBMAIN () AS LONG DIM a_strWork() AS STRING CON.CAPTION$= "Our Console" ' IF ISTRUE funReadTheFileIntoAnArray($MyFile, a_strWork()) THEN ' the function wor...
'special codes: '-1 Any numeric variable (will be made explicit by a C cast) ' Typically, these are used when multiple C functions exist '-2 Offset+Size(in bytes) ' Size is the largest safe memory block available from the offset ' used for: CALL INTERRUPT[X] '-3 Offset+Size(in bytes) ' Size is th...
Attribute VB_Name = "FINAN_DERIV_VARIATIONAL_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. '********************************************************...
Version =20 VersionRequired =20 Begin Form RecordSelectors = NotDefault AutoCenter = NotDefault NavigationButtons = NotDefault AllowDeletions = NotDefault DividingLines = NotDefault AllowAdditions = NotDefault AllowDesignChanges = NotDefault DefaultView =0 PictureAlignment =2 Da...
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...
1 %TITLE "Convert Cyma PR files to CMC" %SBTTL "PR_CONV_CYMA" %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 license and with ! the in...
'############################################################################### '################## Grundlegende Einstellungen zum Controller ################## '######################## nach Befehlsliste V0.1.2 ############################# '##########################################################################...
DECLARE SUB RightClick () DECLARE SUB LeftClick () DECLARE SUB DrawHud () DECLARE SUB InitColorInfo () DECLARE SUB InitScreenInfo () DECLARE SUB InitSpecificObjects () DECLARE SUB mouse (Funk AS INTEGER) DECLARE SUB SetPalette1 () DECLARE SUB UpdatePaletteGradient (pal() AS LONG, colour AS ANY) DECLARE FUNCTION getGrid...
10 :REM'LOPASS - SALLEN and KEY Lowpass Active Filter - 30 OCT 95 rev. 05 APR 1999 20 IF EX$=""THEN EX$="EXIT" 30 CLS:KEY OFF 40 COLOR 7,0,0 50 PI=3.1415929794311523! 60 U1$="#####.###" 70 UL$=STRING$(80,205) 80 E$=STRING$(79,32) 90 :REM' 100 :REM'.....start 110 COLOR 15,2 120 FOR Z=1 TO 2:PRINT STRING$(80,32);:NEXT Z ...
FUNCTION ex3(n) FOR i = n + 3 TO 1 STEP -2 PRINT i 'PRINT i * 2 END FOR END FUNCTION FUNCTION Main() CALL ex3 5 END FUNCTION
' ' ' +--[ DOSMatrix ]---------------------------------+ ' | | ' | DOSMatrix v2.0.0 | ' | Copyright (c) 2019 TSC. All Rights Reserved. | ' | | ' ...
10 'Programm: SONNE.BAS 20 'Funktion: Simulation der Planeten- 30 ' gravitation 40 'Sprache: GW-Basic 50 'Autor: Axel Werner 60 '(C)1991 DMV Widuch GmbH & Co. KG 70 DEFINT I,S,A,F 80 INPUT "A: ",A 90 IF A>5 THEN A=5 100 IF A<1 THEN A=1 110 FOR I=1 TO A 120 PRINT"XP("I"),YP("I"),ZP("I"): "; 130 INPU...
function ReplaceString$(byval source$, a$, b$) i = 1 while instr(i, source$, a$) > 0 i = instr(i, source$, a$) source$ = left$(source$, i-1) + b$ + mid$(source$, i + len(a$)) i = i + len(b$) wend ReplaceString$ = source$ end function cls infile$ = command$ print infile$ dim xm...