text
stringlengths
7
5.36M
10 :REM'DISHANT - Parabolic Dish Reflector - 15 AUG 92 rev. 21 JAN 2002 20 IF EX$=""THEN EX$="EXIT" 30 COMMON EX$ 40 CLS:KEY OFF:SCREEN 0 50 COLOR 7,0,1 60 DIM X(16),Y(16) 70 PI=3.1415929794311523! 80 U$="#####.##" 90 U1$="#####.#" 100 UL$=STRING$(80,205) 110 T$=" PARABOLIC DISH REFLECTOR" 120 :REM' 130 :REM'.....start...
' Copyright (c) 1993 Crescent Software DEFINT I-N DEFDBL A-H, O-Z DECLARE FUNCTION DLOG10(X) FUNCTION DLOG10 (X) STATIC ' Common logarithm function ' Input ' X = argument ' Output ' DLOG10 = common log of X IF (X = 0#) THEN DLOG10 = -99# ELSE DLOG10 = .43429448190325...
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 @english REM GRAPHICS PRIMITIVES SCREEN AND TEXT COORDINATES (1) REM REM This example will show how to pass from screen to text coordinates and viceversa. REM REM @italian REM PRIMITIVE DI GRAFICA COORDINATE DI SCHERMO E DI TESTO (1) REM REM Questo esempio mostrerà come passare dalle coordinate schermo a quelle tes...
olevba 0.60.1.dev3 on Python 3.8.10 - http://decalage.info/python/oletools =============================================================================== FILE: Virus.MSWord.Ble.b Type: OLE ------------------------------------------------------------------------------- VBA MACRO ThisDocument.cls in file: Virus.MSWord....
10 gosub 100 20 gosub 100 30 end 100 gosub 200 110 gosub 200 120 return 200 print "hello, world":return
10 REM Blockbuster--a pong-type video game--complete, commented version. 100 DEFINT A-Z:SCREEN 1,0:COLOR 0,1:KEY OFF:CLS 105 REM Draw the ball and fill it in 110 CIRCLE(3,3),2,3:PAINT STEP(0,0),3 115 REM Save the ball in array called BALL 120 DIM BALL(10):GET(0,0)-(5,5),BALL 125 REM Draw the playfield 130 LINE(0...
PROGRAM:SUORANRA :Input "X1>",X1 :Input "X2>",X2 :Input "Y1>",Y1 :Input "Y2>",Y2 :K=((Y2-Y1)/(X2-X1)) :B=(-K*X1+Y1) :Disp "Kulmakerroin" :Disp K :Disp "Vakio" :Disp B
1 %TITLE "Payroll Net Check Report" %SBTTL "PR_RPRT_TRN_CHECK_02" %IDENT "V3.6a Calico" ! ! COPYRIGHT (C) 1986, 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...
Attribute VB_Name = "functionsKorrekt" Option Compare Database Public Function getRSForReport() As String getRSForReport = "ofAdressen" End Function Function getFirma(Adresse_ref) As String Dim part(1 To 30) As String Dim partNR, i, Pos, Adresse partNR = 1 Adresse = Adresse_ref 1: Po...
1000 CLS 1010 INPUT "QSpread file for analysis> ";file$ 1020 OPEN_IN #3,file$ 1027 : 1035 PRINT "Init code: "; 1040 GET #3,id% : PRINT "$";HEX$(id%,16) 1045 PRINT "Application: "; 1050 FOR i=1 TO 4 : BGET byte : PRINT CHR$(byte); 1055 PRINT 1060 PRINT "Version: "; 1070 FOR i=1 TO 4 : BGET byte : PRINT CHR$(byte);...
1 %TITLE "Daily Audit Report" %SBTTL "GL_RPRT_AUDITDAILY" %IDENT "V3.6a Calico" ! ! COPYRIGHT (C) 1993 BY ! ! Computer Management Center, Inc. ! Idaho Falls, Idaho. ! ! This software is furnished under a license and may be used and ! copied only in accordance with terms of such license and with ! the inclus...
10 READ R,C 20 FOR I = 1 TO R 30 FOR J = 1 TO C 40 READ T(I,J) 50 NEXT J 60 NEXT I 70 FOR I = 1 TO R 80 LET S = 0 90 FOR J = 1 TO C 100 LET S = S + T(I,J) 110 NEXT J 120 PRINT "SUM OF ROW" I; "EQUALS" S 130 NEXT I 140 PRINT 150 FOR J = 1 TO C 160 LET S = 0 170 FOR I = 1 TO R 18...
1 DIM F(4) 2 RANDOM 15 GOSUB 1091 16 LET I=600 17 PRINT "DO YOU WISH TO TRADE FURS?" 18 GOSUB 1402 19 IF B$="YES" THEN 100 20 IF B$="NO" THEN 2200 25 GOSUB 1402 100 PRINT 101 PRINT "YOU HAVE $";I "SAVINGS," 102 PRINT "AND 190 FURS TO BEGIN THE EXPEDITION." 300 PRINT 301 PRINT "YOUR 190 FURS ARE DISTRIBUTED AMONG THE FO...
10 LET [0], 0,1,1,1,2,1,1,2:GOSUB@CLC 20 LET [0], 1,0,1,1,2,1,1,2:GOSUB@CLC 30 LET [0], 1,1,0,2,1,2,2,2:GOSUB@CLC 40 LET [0], 1,0,0,1,1,1,1,2:GOSUB@CLC 90 END 100 @CLC:C=0:D=0:FOR I=0 TO 7 110 X=[I]:Y=[I+1] 120 C=C|1<<((3-X)+4*Y) 130 D=D<<4:D=D+X<<2+Y 140 I=I+1:NEXT 150 ?HEX$(D);",";:RTN
10 LET A=5:LET B=7 20 LET A$="A" 30 PRINT A$;A 40 PRINT 50 PRINT B$;A 60 LET C=A+B 70 PRINT 80 PRINT C$;C 90 LET A%=7 100 LET A!=7.5 110 LET A$="7.5" 120 PRINT A$;A%;A! 
10 COLOR 1,15,8:SCREEN 1,3 20 ON SPRITE GOSUB100:SPRITE ON:X$="итерация":SPRITE$(50)=X$+X$+X$+X$ 50 FOR K=0 TO 255 60 PUT SPRITE 0,(K,70),4,50:PUT SPRITE 1,(120,K),13,50 80 NEXT:SPRITE ON:GOTO 50 90 '©©©© Подпрограмма! ©©©© 100 PRINT"Столкновение":FORI=1 TO 1000:NEXT:CLS:SPRITE OFF:RETURN 
Version =21 VersionRequired =20 Begin Report LayoutForPrint = NotDefault PopUp = NotDefault DividingLines = NotDefault AllowDesignChanges = NotDefault DateGrouping =1 GrpKeepTogether =1 PictureAlignment =2 DatasheetGridlinesBehavior =3 GridY =10 Width =12756 DatasheetFontHei...
Attribute VB_Name = "AccessRoutines" Option Explicit Global cnPumpData As New ADODB.Connection 'Pump Database connection Global cnEffData As New ADODB.Connection 'local efficiency database connection 'initials to approve and delete testing Global Const strApproveInitials As String = "Admin" Global boCanAppr...
1 %TITLE "Terms Table File Maintenance" %SBTTL "UT_MAIN_TERMS" %IDENT "V3.6a Calico" FUNCTION LONG UT_MAIN_TERMS(CDD_WINDOW_CDD SMG_WINDOW, & LONG MOPTION, LONG MLOOP, LONG MFLAG, STRING MVALUE) ! ! COPYRIGHT (C) 1987, 1988 BY ! ! Computer Management Center ! Idaho Falls, Idaho. ! ! This software is furni...
10 CLEAR 24831 20 RANDOMIZE USR 15619:REM:LOAD "scr_fill" CODE 24832 30 RANDOMIZE USR 24832
2 PRINT TAB(30) "CHIEF" 4 PRINT TAB(15) "CREATIVE COMPUTING MORRISTOWN, NEW JERSEY" 6 PRINT:PRINT:PRINT 10 PRINT "I AM CHIEF NUMBERS FREEK, THE GREAT INDIAN MATH GOD." 20 PRINT "ARE YOU READY TO TAKE THE TEST YOU CALLED ME OUT FOR"; 30 INPUT A$ 40 IF A$="YES" THEN 60 50 PRINT "SHUT UP, PALE FACE WITH WISE TONGUE." 60 ...
10 dim vector(20) 12 input "ingrese numero: ";n 14 max=n 16 posicion=1 18 vector(0)=n 20 for i=1 to 19 step 1 30 input "ingrese numero: ";n 40 vector(i)=n 50 if (n>max) then goto 70 end if 55 60 next 62 goto 80 70 posicion=i+1 71 max =n 72 goto 55 80 print "el maximo se encuentra en la posicion: ";posicion 90 pri...
1 ifpeek(49153)+peek(49154)<>21thenload"ge",8,1 2 ifpeek(49153)+peek(49154)=21thensys49152 6 dimt,d,x:deffnt(x)=int(x/16)*10+(xand15):d=56590:goto10 7 t=fnt(peek(d-3))*1e4+fnt(peek(d-4))*100+fnt(peek(d-5))+fnt(peek(d-6))/10:return 9 poked,(127andpeek(d))+128*peek(678):poked-3,0:poked-4,0:poked-5,0:poked-6,0:return 10 d...
REM Calculate Cube root(N) REM by BIGNUM Class (1000 digits) USECLASS BIGNUM N=2 K=1:WHILE K*K*K<=N:K=K+1:WEND:K=K-1 A=NEW(BIGNUM,K):B=NEW(BIGNUM,0) C=NEW(BIGNUM,0):D=NEW(BIGNUM,4*N) WIDTH 48 PRINT "Calculating CBRT(";N;")..." PRINT "Initial Value=";K DO C.AS(A) B.MUL2(A,A):B.MUL2(B,A):B.SUB(D,B)...
10 :REM'WIREMESH - Wire Mesh Screens - 24 FEB 96 rev. 10 JAN 1999 20 IF EX$=""THEN EX$="EXIT" 30 CLS:KEY OFF 40 COLOR 7,0,1 50 U$="#####.###" 60 U1$="#####.#" 70 UL$=STRING$(80,205) 80 PI=3.1415929794311523! 90 DIM WP(11) 100 DATA .3, .8, 1.3, 2.1, 3.1, 4.2, 5.5, 6.9, 8.5, 10.3, 12.3 110 FOR Z=1 TO 11:READ WP(Z):NEXT Z...
10 SCREEN 1,,0 20 COLOR 15,1 30 KEYOFF 40 A=ASC("q")*8+BASE(7) 50 FOR I=0 TO (8*5)-1 60 READ D$ 70 VPOKE A+I,VAL("&B"+D$) 80 NEXT I 90 WIDTH 32 100 FOR I=0 TO 23 110 READ M$ 120 LOCATE 0,I,0 130 PRINT M$; 140 NEXT I 150 D=0 160 DIM PX(2) 170 DIM PY(2) 180 DIM ST(2) 190 PX(0)=15:PY(0)=9:ST(0)=1 200 PX(1)=1:PY(1)=10:ST(1...
SCREEN 7 p1 = 40: p2 = 150: bx = 150: by = 100: ba = -2.5: acc = 0: acc2 = 0 usu = 2: sf = 2 DO VIEW (0, 1)-(319, 198), 0, 15 LINE (4, p1)-(4, p1 + 30), 14 LINE (315, p2)-(315, p2 + 30), 14 VIEW (bx, by)-(bx + 5, by + 5), 15, 15 IF usu <= 0 THEN sf = sf + .5 ...
Attribute VB_Name = "knjname_MyXlsFunc_Core" Option Explicit ' Depends on "Microsoft Scripting Runtime" ' Depends on "Micsoroft VBScript Regular Expressions 5.5" Private xlsVbaFuncFSO As New FileSystemObject Function increment&(ByRef value&, Optional ByVal added = 1) increment = value value = value...
10 COLOR 1,15,8:SCREEN 3 20 FORK=1TO12:PSET(20*K,95),INT(RND(-TIME)*16):NEXT:P=0 50 FOR K=1 TO 12:IF POINT(20*K,95)=1 THEN P=1 70 NEXT:FOR K=1 TO 1000:NEXT:SCREEN0:KEY OFF 80 IF P=1 THEN GOSUB 110:FORI=1TO1000:NEXT:GOTO 10 ELSE GOSUB 100:FOR I=1 TO 1000:NEXT:GOTO 10 100 LOCATE 9,12:PRINT"Черных точек нет!":RETURN ...
Attribute VB_Name = "MOD_AdSystem" Option Explicit 'to force case to remain 'Private Const Video = 0 'Private Const Application = 1 'Private Const Image = 2 'Private Const SWF = 3 'Private Const URL = 4 'Private Const HTML = 5 Enum enmActivityFormat Video = 0 Application = 1 Image = 2 SWF =...
ver$="1.3" BeginCheck=10000 print"Scanning for Checksum ."; shell "DIR BOOTINFO.EXE > BOOTINFO.TMP" print"."; for x=1 to len(command$) if File=0 then LogFile$=LogFile$+mid$(command$,x,1) if File=1 then OutText$=OutText$+mid$(command$,x,1) if mid$(command$,x+1,1)=" " then File=1 next x print"....
'for calculating of free tacts 'needs some debug info from RS-232 CLS DIM c AS STRING * 1 OPEN "rs232.bin" FOR BINARY AS 1 OPEN "log.txt" FOR OUTPUT AS 2 mn = 1000000! mx = 0 sm = 0 n = 0 DO UNTIL EOF(1) GET 1, , c GET 1, , c GET 1, , c: l = ASC(c) GET 1, , c: h = ASC(c) f = (h * 256 + l) IF f...
Include "strings.bas" Include Once Function SourceDirectory$() current_file$ = Command$(0) cwd$ = Dir$ end_of_dir = Max( FindLastOf("\\", current_file$), FindLastOf("/", current_file$) ) end_of_dir = Max( end_of_dir, 0 ) current_file_dir$ = "" If Trim$(Left$(current_file$, end_of_dir)) <> "" Then Ch...
Check D28B04B1 Auto 8224 # Run-time Variables Var x: NumFOR = 12, 12, 1, 20, 2 Var y: NumFOR = 156, 144, 12, 40, 2 # End Run-time Variables 1 REM by Uwe Geiken 2 REM https://www.facebook.com/groups/ZXBasic/permalink/1749115045352768/ 10 PRINT "f(x)=x^2 in the normal x-domain": PRINT "The x-distance is equal...
CLS germ.x1 = 20 germ.x2 = 35 germ.y1 = 35 germ.y2 = 20 a: germ.direction$ = "N" germ.direction$ = "W" germ.direction$ = "S" germ.direction$ = "E" b: PRINT "Welcome to " PRINT " THE GERMATTAX " PRINT PRINT "Do you need instructions? y/n " instruct.y.n: DO WHILE INKEY$ = instruct$ SE...
00001 REM PROGRAM SUBMITTED BY JESSE LYNCH, ST.PAUL, MN. 00002 REM *** CONVERTED TO RSTS/E BY DAVID AHL, DIGITAL 00003 J=0\L=0 00004 RANDOMIZE 00005 PRINT "OLYMPIC BOXING -- 3 ROUNDS" 00007 PRINT 00010 PRINT "INPUT YOUR OPPONENT'S NAME" 00020 INPUT J$ 00030 PRINT "INPUT YOUR MAN'S NAME" 00040 INPUT L$ 00045 ...
'Inter2.Bas 'Copyright 1990, Brian C. Giedt DEFINT A-Z '$INCLUDE: 'GWDecl.BAS' DECLARE SUB Inter2Line (X1%, Y1%, X2%, Y2%, DrawColor%, OldColor%) '$INCLUDE: 'Common.GW' SUB Inter2Line (X1%, Y1%, X2%, Y2%, DrawColor%, OldColor%) STATIC IF X1 = X2 THEN FOR T = Y1 TO Y2 V = GetCacheVE%(X1, T) ...
100 SCREEN 0,0:CLS 3 ' {DELAY2:200} 110 XD=40:YD=20 120 BYTE=((XD+7)\8)*YD*3+4 130 FACT=BYTE\2+1 140 DIM G%(FACT) 150 LINE(0,0)-STEP(XD-1,YD-1),1,B 160 CIRCLE(XD/2-1,YD/2-1),YD/2,2 170 GET(0,0)-STEP(XD-1,YD-1),G% 180 FOR X=0 TO 500 STEP 100 190 PUT(X,100),G% 200 NEXT
Attribute VB_Name = "FINAN_ASSET_TA_FRAMES_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. '**********************************************************...
1 %TITLE "QTR - Quarterly Accrual Report" %SBTTL "PR_RPRT_QTR_ACCRUAL" %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 ...
DEFINT A-Z OPTION EXPLICIT DECLARE SUB IconEdit.Main () DECLARE SUB IconEdit.Preview () DECLARE FUNCTION IconEdit.SaveIcon% () DECLARE FUNCTION IconEdit.LoadIcon% () TYPE IconDataType Pixel(31, 31) AS INTEGER END TYPE DIM SHARED IconData AS IconDataType DIM SHARED IconFileName AS STRING '$INCLUDE...
Attribute VB_Name = "modGlobals" '********************************************* 'modGlobals 'Copyright VisualBasicZone.com 2004 - 2005 '********************************************* 'Notes '********************************************* '"a" - means it is an Address '"o" - means it is a relative Offset '"Unknown" - self...
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...
61000 ' 61001 ' S T A T L I B - 1.1 61002 ' 61003 ' Statistik-Bibliothek fr OMIKRON.BASIC 61004 ' 61005 ' Programmiert von 61006 ' 61007 ' J”rn Wilms 61008 ' Im Feldle 23 61009 ' D-7312 Kirchheim/Teck 61010 ' ...
COLOR 2, 0 CLS PRINT "Enter your question please... => "; COLOR 1, 3 PRINT STRING$(12, " "); STRING$(11, CHR$(29)); INPUT "", mth$ COLOR 2, 0 IF mth$ <> "" THEN mth$ = LTRIM$(mth$) val1 = VAL(mth$) mth$ = MID$(mth$, LEN(STR$(val1))) mth$ = LTRIM$(mth$) op$ = LEFT$(mth$, 1) val2 = VAL(MID$...
Attribute VB_Name = "mdlLisImage" Option Explicit '获取图片数据功能模块 Public Function DrawImgAndSaveFile(ByVal strType As String, ByVal strData As String, ByVal strFilename As String, Optional ByVal intSaveType As Integer) As Boolean '根据传入的参数绘图,并保存为指定文件 Dim frmDraw As Form Set frmDraw = New frmChart frmDraw.Hi...
5 rem *** 2 dim array *** 10 dimv(20,2) 15 m = 54272 :z = 0: c = 0 20 for s = m to m + 24 : poke s,0 : next 30 poke m + 24,15 40 poke m + 5,0: poke m + 6,240 45 rem *** load the array *** 50 readh,l,dr 60 v(z,0) = h : v(z,1) = l : v(z,2) = dr : z = z+ 1 70 if dr = -1 then goto 90 80 goto 50 85 rem *** play the music **...
900 rem "Fill screen with random characters" 1000 a = 8*256 1010 vpoke 0,a,random() and 255 1015 vpoke 0,a+1,random() and 15 1020 a = a + 2 1030 if a <> 44*256 then 1010 1100 vpoke 1,510,42 1110 x = vpeek(1,510) 1200 stop
Attribute VB_Name = "SYSINF32" 'This module is compatable with: ' VB version 4.0 and up ' No library Dependencies 'information types Global Const OPSYS = &H100 Global Const DLLINF = &H400 Global Const VXDINF = &H500 Global Const REGINF = &H600 Public Const FILE_READ_ATTRIBUTES = (&H80) ' all Public Co...
COLOR 7, 1 CLS LOCATE 12, 30 PRINT "Mozart's Sonata in C" PLAY "c2 L4 e g < b. > l16 c d 12 c" PLAY "> a 14 g > c < g l16 g f e f 12 e" PLAY "< a8 l16 b > c d e f g a g f e d c < b a" PLAY "g8 a b > c d e f g f e d c < b a g f8 g a b > c d e" PLAY "f e d c < b a g f e8 fga b > c d e d c < b a g f e" PLAY "d8 e f g a b...
REM @english REM ARRAY MANAGEMENT VARIOUS (1) REM REM This small example will test the fix for bug#225. REM REM @italian REM GESTIONE DEGLI ARRAY ESEMPI VARI (1) REM REM Questo piccolo esempio proverà la risoluzione del bug#225. REM CLS PRINT "OK!" DIM tst$(1) tst$(0)="tst" NOP ...
1 %TITLE " Print Journal" %SBTTL "AD_RPRT_UNITS" %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 of the abov...
10 FOR A=10 TO 15 20 PRINT A 30 NEXT A
1 cls 5 gosub 100 : rem random coord generators 10 graphics window 100,100,200,200 : call "wintitle","Random Image" 20 for l1 = 1 to 200 25 for l2 = 1 to 200 27 cr = rnd(100) : cg = rnd(100) : cb = rnd(100) 30 graphics color cr,cg,cb 32 gosub 150 35 pset l1,l2 40 next l2 45 next l1 50 for p = 1 to 10 55 sound 2000,0.07...
10 REM THIS PROGRAM WILL COMPUTE THE LOG 20 REM OF ANY POSITIVE NUMBER X, TO ANY POSITIVE 30 REM BASE Y 40 PRINT "BASE = " 50 INPUT Y 60 PRINT "X = " 70 INPUT X 80 LET J = LOG(X)/LOG(Y) 90 PRINT "LOG";X;" = ";J 100 PRINT "TYPE 1 TO CONTINUE, 0 TO STOP" 110 INPUT L 120 IF L =1 THEN 140 130 STOP 140 PRINT 150 GOTO 40 160...
SCREEN 12 DIM GRA(5000) COLOR 14 PAINT(1,1),2,15 PRINT " О миссиях": Z = 1: FOR X = 0 TO 130 FOR Y = 0 TO 15 IF X < 60 THEN COL = 2 IF X > 60 THEN COL = 2 IF INKEY$ <> "" THEN END IF POINT(X, Y) = 14 THEN CIRCLE (X * 5 + 2, Y * 5 * Z + 22),2, 14: CIRCLE (X * 5 + 2, Y * 5 * Z + 22), 3 + Z, 4 NEXT: NEXT LINE(...
10 OPEN "TESTF" FOR INPUT AS #1 20 IF EOF(1) THEN 60 30 INPUT #1,A:PRINT A:GOTO 20 60 CLOSE #1 
1 %TITLE "Workmans Compensation Table" %SBTTL "PR_RPRT_WC" %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...
' ' Doom.bas port by Matthew Whited ' Origanaly Programmaned By Neotech Computing Soluations ' '5432(pinout) 'FBLR ' '98765432 ' FBLR ' '1 true '0 false ' 'Binary(pinout) Direction Decimal '1000 forward 8 '0100 backward 4 '0010 left 2 '0001 righ...
DIM SHARED Cache_Folder AS STRING Cache_Folder$ = "internal\help" IF _DIREXISTS("internal") = 0 THEN GOTO NoInternalFolder IF _DIREXISTS(Cache_Folder$) = 0 THEN MKDIR Cache_Folder$ DIM SHARED Help_sx, Help_sy, Help_cx, Help_cy DIM SHARED Help_Select, Help_cx1, Help_cy1, Help_SelX1, Help_SelX2, Help_SelY1, Help_SelY2 DI...
10 GOTO 160 20 '******************************** 30 '* * 1 40 '* PLAY 15 * 9 4 50 '* * 12 13 10 60 '* J.W.L * 6 15 14 7 70 '* ...
' ' qbasic program to generate a sin table ' PI = 256 ' pi value in table columns = 8 ' data columns FOR i = 0 TO PI * 5 / 2 - 1 IF (i MOD columns = 0) OR (i = 0) THEN PRINT : PRINT "DD "; ELSE PRINT ","; fixed& = SIN(i * 3.14159 / PI) * 65536 PRINT fixed&...
start: CLS PRINT " ******** META TEST ********" PRINT PRINT "INPUT SQUADRON ID NUMBER:" INPUT ">", id$ IF id$ = "Viper" THEN GOTO viper.squad IF id$ = "Scorpion" THEN GOTO scorpion.squad IF id$ = "test_smart" THEN GOTO diagnostics IF id$ = "test_log" THEN GOTO diagnostics.log IF id$ = "show_error" T...
10 memory 23999 20 load "!8bp.lib" 30 print "ya puedes cargar las demos"
10 LET X=10: LET I=1 20 BEEP .005,X 30 BEEP .005,24-X 40 LET X=X+I 50 IF X>38 THEN LET I=-1 55 IF X<10 THEN LET I=1 60 GO TO 20
'rotozoomer Galileo vB+.bas (SmallBasic) bpf 2015-05-16 ' some big screen adjustements B+ 'a snapshot frame rect 0,0,804,704,15 filled for i=1 to 24 'orig .08, now increment in radian fractions ANG=ANG+2*3.14159265/32 CS=COS(ANG)*ABS(SIN(ANG))*128 SS=SIN(ANG)*ABS(SIN(ANG))*128 FOR Y=-350 TO 350 ...
REM @english REM MATHEMATIC ROUTINES HEXADECIMAL REPRESENTATION REM REM This example will show how to represent hexadecimal numbers. REM REM @italian REM ROUTINE DI MATEMATICA CON NUMERI RELATIVI (1) REM REM Questo esempio mostra come rappresentare i numeri esadecimali. CLS PRINT $42 PRIN...
DEFINT A-Z 'by Phil Cramer 'Copyright (c) 1992 Crescent Software '$INCLUDE: 'FldInfo.Bi' '---- BASIC subs DECLARE SUB DemoType (FileName$, FRM%, SvLd%, Fs%) DECLARE SUB FileThere (FileName$, Button%) DECLARE SUB MakeFrmModule (SBName$, Fld() AS ANY, Calc$(), Help$()) DECLARE SUB InsertChars (Work$) '---- ASM Subs D...
' Called from scribe, capture-city, special-events, victory-conditions-met SUB image2 (a$, s) DIM g2(1 TO 8000) mtx$(1) = a$ tlx = 32 - LEN(a$) \ 2 tly = 10: size = 1 CALL mxw(wide) IF wide > 59 THEN wide = 59: a$ = LEFT$(a$, 59) x = 8 * (tlx + wide) y = 16 * (tly + 1) GET (8 * tlx - 4, 16 * tly - 3)-(8 * (tlx...
Attribute VB_Name = "MOD_IniHandler" Option Explicit Declare Function GetPrivateProfileSectionNames Lib _ "kernel32" Alias "GetPrivateProfileSectionNamesA" _ (ByVal lpszReturnBuffer As String, ByVal nSize As _ Long, ByVal lpFileName As String) As Long Declare Function GetPrivateProfileSe...
'---------------------------- '*** PROGRAM: Random names... '---------------------------- '*** This program prints out a list of 'random names' of people ' who met each other at an entirely 'fictional' party. ' The list of random names is selected from a pair of 'parallel' arrays; ' and, by using the QBASIC/...
\******************************************************************************* \******************************************************************************* \*** \*** %INCLUDE FOR STOCKTAKE GROUP CODE FILE PUBLIC FUNCTIONS \*** \*** REFERENCE : XGCFFUN.BAS \*** \*** FILE TYPE : Keyed \*** ...
10 REM Chequebook-Balancing Program 20 PRINT "ENTER CREDITS"' 30 GOSUB 1000 40 PRINT "ENTER DEBITS" 50 GOSUB 2000 60 PRINT "TOTAL IS " 70 GOSUB 3000 80 END 1000 REM Sum Credits in C 1010 REM Changes C,J 1020 C=0 1030 DO INPUT J; C=C+J 1040 UNTIL J=0 1050 RETURN 2000 REM Sum Debits in ...
b = 3*(3+SQRT(2)) IF b>1 THEN b = SQRT(3) PRINT b IF b>1 THEN PRINT "A" ENDIF END
DECLARE SUB WAITSYNC () RANDOMIZE TIMER SCREEN 12 CIRCLE (4, 4), 2, 15 PAINT (4, 4), 14, 15 DIM A(7) GET (1, 1)-(7, 7), A LINE (1, 1)-(7, 7), 0, BF BALLS = 100 DIM X(BALLS) DIM Y(BALLS) DIM XX(BALLS) DIM YY(BALLS) FOR I = 1 TO BALLS X(I) = 320: Y(I) = 240 'X(I) = RND * 620 + 10 'Y(I) = RND * 460 + 10 XX(I) = RND * 2 - ...
DECLARE SUB DBox (p$(), v!(), acc!(), num!, boxname$, success!) DECLARE SUB dialog (prompt$, nprompt!, aname!) DECLARE SUB GETMOUSECOORD (b%, x%, y%) DECLARE SUB HIDEMOUSE () DECLARE SUB STARTMOUSE () DECLARE SUB SHOWMOUSE () 'QB-CAD Lathe CLS SCREEN 9 stol = 10 yesno = 0 WINDOW (-100, 100)-(200, -100) ...
Operation =1 Option =0 Where ="(((tmp_ContactGeneral.TagForMail)=True) AND ((dbo_ContactLocation.IsActive)=True" ") AND ((Len([add1]))>\"0\"))" Begin InputTables Name ="tmp_ContactGeneral" Name ="dbo_ContactLocation" End Begin OutputColumns Expression ="tmp_ContactGeneral.TagForMail" Expression ="t...
REM CLS READ A S = A + A PRINT "SUM="; S PRINT A DATA 10,35,37,90,91,104 END
1 REM mlf88 100 CLEAR,&H8FFF:WIDTH 80:CONSOLE 0,25,0,1:CLS 110 PRINT"[¼ÌÄ]·° ¦ µ¼Å¶Þ× ·ÄÞ³½ÙÄ ¾¯Ã²Ó°ÄÞ Æ ÅØÏ½¡":CONSOLE 1,25 120 IF (INP(8) AND 64)=0 THEN *MSYS 130 POKE &HE000,16 140 BLOAD "pcmldr",R:'&H9000 150 CLEAR,&H8FFF:CONSOLE 1,25,0,1 160 BLOAD "errmsg":'&H8800 170 BLOAD "music":'&HC000 180 BLOAD "muc88",R:'&H9...
OPTION _EXPLICIT $EXEICON:'./../../gx/resource/gx.ico' '$include: '../../gx/gx.bi' _TITLE "Test Device Input" GXSceneCreate 500, 300 GXFrameRate 10 DIM SHARED dleft AS GXDeviceInput PRINT "Press Left... "; GXDeviceDetectInput dleft PrintDeviceInput dleft DIM SHARED dright AS GXDeviceInput PRINT "Press Right..."; GXD...
Version =20 VersionRequired =20 Begin Report LayoutForPrint = NotDefault DividingLines = NotDefault AllowDesignChanges = NotDefault DateGrouping =1 GrpKeepTogether =1 PictureAlignment =2 DatasheetGridlinesBehavior =3 GridX =24 GridY =24 Width =11340 DatasheetFontHeight =11 ...
10 REM This is a test 20 A,B=10,20 40 PRINT A,B 90 STOP 99 END
10 rem simple subtraction 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 165,251 : rem $a5,$fb - lda $fb 110 data 229,252 ...
Version =20 VersionRequired =20 Begin Form PopUp = NotDefault RecordSelectors = NotDefault ControlBox = NotDefault AutoCenter = NotDefault NavigationButtons = NotDefault DividingLines = NotDefault AllowAdditions = NotDefault DefaultView =0 ScrollBars =0 ViewsAllowed ...
0 REM Star-twinkling superpasta 0 REM You are NOT supposed to code like this! 0 REM Test features: GOTO, GOSUB, boolean literals and their evaluation 10 PRINT "GOSUB test" 11 PRINT "" 12 TWINKLED = FALSE 20 GOTO 100 100 PRINT "Twinkle twinkle little star" 101 IF TWINKLED THEN GOTO 4666 110 IF NOT TWINKLED THEN GOSUB 4...
10 REM This is a simple BASIC script that tests the DIM keyword 20 DIM A = SQR(12) 30 PRINT A 40 PRINT POW(2,10) 100 REM END
Attribute VB_Name = "Franz_Export_Position" Option Explicit Sub exportPositionToCSV() '' Creates a .csv containing the position for each account. '' '' Positions Type: 0 - Error (unrecognized) '' 1 - Call '' 2 - Put '' 3 - SPY '' 4 - ES Fut...
'BF interpreter outline 'Variable list '------------- 'PROGRAM BF Program 'MEMORY Memory 'STAK Square bracket stack 'IP Instruction Pointer 'IPVALUE Value at Instruction Pointer, [IP] 'MP Memory Pointer 'MPVALUE Value at Memory Pointer, [MP] 'SP ...
Attribute VB_Name = "mdlMain" Option Explicit Public Const PROCESSOR_INTEL_386 = 386 Public Const PROCESSOR_INTEL_486 = 486 Public Const PROCESSOR_INTEL_PENTIUM = 586 Public Const PROCESSOR_MIPS_R4000 = 4000 Public Const PROCESSOR_ALPHA_21064 = 21064 Public Type SYSTEM_INFO dwOemID As Long dwPageSize As Long ...
10 :REM'CMOSC3.....CMOS OSCILLATOR - 08 JUN 09 20 CLS:KEY OFF 30 IF EX$=""THEN EX$="EXIT" 40 IF PROG$=""THEN GO$=EX$ :ELSE GO$=PROG$ 50 COMMON EX$,PROG$ 60 PI=4*ATN(1) 70 :REM'.....title page 80 CLS:KEY OFF 90 COLOR 15,2 100 PRINT " CMOS OSCILLATOR"TAB(61)"by R.J.Dehoney IEEE "; 110 COLOR 1,0:PRINT STRING$(80,223); 120...
Attribute VB_Name = "mod_Func14" Option Explicit Private cn As Object Public Function JustDoIt(ByRef objWebPool As Object, _ ByRef strPara As String) As String On Error GoTo ChkErr Dim strQry As String Dim varPara As Variant Dim rs As Object Dim strOwner As St...
CLS '***********Decs*********** DIM numbers(20) AS INTEGER '**********Input*********** FOR ctr = 0 TO 19 STEP 1 PRINT "Enter a Number"; (ctr + 1); " : "; INPUT numbers(ctr) NEXT ctr '********Output************ PRINT "Your Array Contains the Even Numbers :" PRINT FOR ctr = 1 TO 20 STEP 2 'IF number(c...
10 ! & ! HOURJOB - MAINTAINS HOUR.DAT FILE WHERE COMPLETION %'S ARE STORED & ! & ! BY KEN TAYLOR AND WENDELL RICHARDSON MAY 1978 & ! 06/14/79 - BILL LOVEGROVE FOR GENERAL SYSTEM & ! & ! PRINT OPTION NOW PAGES CORRECTLY AND IS MILDLY READABLE & ! BY BRIAN HANDY DEC-84 & ! & 15 ! & ! PRO...
Auto 1 # Run-time Variables Var c: Num = 3000 Var i: NumFOR = 11, 10, 1, 20, 2 Var a$: Str = "Polygon" # End Run-time Variables 10 CLS 20 FOR i=1 TO 10 30 READ a$,c 40 PRINT a$ 50 PLOT 128,13 60 DRAW 0,150,c 70 PRINT AT 21,0;"Press any key":\ PAUSE 0 80 CLS 90 NEXT i 100 DATA "arc",3.1415926...
10 MAXFILES=5:OPEN "LU" AS#4 20 FIELD #4, 2 AS A$, 4 AS B$, 8 AS E$ 30 INPUT X%:LSET A$=MKI$(X%) 40 INPUT Y!:LSET B$=MKS$(Y!) 50 INPUT Z#:LSET E$=MKD$(Z#) 60 PRINT A$;" ";B$;" ";E$ 70 RSET A$=MKI$(X%):RSET B$=MKS$(Y!):RSET E$=MKD$(Z#) 80 PRINT A$;" ";B$;" ";E$ 
5 ' Calcul du PPCM 10 INPUT A, B 15 X = A: Y = B 20 R = A MOD B: A = B: B = R 30 IF R <> 0 THEN 20 40 PRINT X * Y / A
Version =20 VersionRequired =20 Begin Report LayoutForPrint = NotDefault AllowDesignChanges = NotDefault DefaultView =0 TabularFamily =124 DateGrouping =1 GrpKeepTogether =1 PictureAlignment =2 DatasheetGridlinesBehavior =3 GridX =24 GridY =24 Width =4320 DatasheetFontHe...
1 %TITLE "Print Journal" %SBTTL "PO_RPRT_ORDERJOUR" %IDENT "V3.6a Calico" ! ! COPYRIGHT (C) 1986, 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 inclus...
100 ' CMD BGM sample 110 CMD STOPM 120 CMD BGM 0 130 FOR I=0 TO 61 140 PRINT "Sound number =";I 150 CMD PLAY "@=I;CDE" 160 NEXT 170 END