text
stringlengths
7
5.36M
100 PRINT "NUMBER TO BE FACTORED:"; 110 INPUT N 120 PRINT 130 IF N = 0 THEN 999 140 IF N = 2 THEN 260 150 LET Z = 0 160 170 LET F = 2 180 GOSUB 300 190 FOR F = 3 TO SQR(N)+1 STEP 2 200 IF N = 1 THEN 210 200 GOSUB 300 210 NEXT F 220 IF Z = 0 THEN 260 230 IF N = 1 THEN 500 240 PRINT N; 250 GOTO 500 260 PRINT N; "IS PRIME...
5 CLEAR 1000 10 DIM A(255),B(255),C(255) 20 T=1000:Z$="000" 30 PRINT"Точное произведение целых чисел" 40 INPUT"Введите первое число: ";A$ 50 LA=LEN(A$):NA=INT((LA-1)/3) 60 FOR I=0 TO NA-1 70 A(I)=VAL(MID$(A$,LA-2-3*I,3)) 80 NEXT I 90 A(NA)=VAL(LEFT$(A$,LA-3*NA)) 100 INPUT"Введите второе число: ";B$ 110 L...
10 c=12*4096:rem set paddle routine start 11 rem poke in the paddle reading routine 15 for i=0 to 63:read a:poke c+i,a:next 20 sys c:rem call the paddle routine 30 p1=peek(c+257):rem set paddle one value 40 p2=peek(c+258):rem set paddle two value 50 p3=peek(c+259):rem set paddle three value 60 p4=peek(c+260):rem...
REM Benjamin Wolf REM April 15, 2003 REM A Sailboat That is Very Oddly Colored CLS SCREEN 12 FOR x = 1 TO 361 IF x = 361 THEN x = 1 DRAW "C5 BM300,240 TA" + LTRIM$(RTRIM$(STR$(x))) + " L23 F15 R65 E15 L72 U75 F70 L70 BM310,250 P10,5 BM 310,230 P7,5 BM10,10 P3,5" FOR y = 1 TO 5000 NEXT y NEXT x END
Attribute VB_Name = "MOD_WorkArea" Option Explicit 'Constants for SystemParametersInfo Private Const SPI_SETWORKAREA = 47 Private Const SPI_GETWORKAREA = 48 Private Const SPIF_SENDCHANGE = &H2 Public Type RECT Left As Long Top As Long Right As Long Bottom As Long End Type Pri...
DIM AS INTEGER N,I,J,S,F,L INPUT "N=";N DIM AS INTEGER A(N,2) FOR I=1 TO N INPUT A(I,2) NEXT I DIM AS INTEGER B(N) FOR I=0 TO N:B(I)=0:NEXT I DO WHILE B(0)=0 F=-1 FOR I=1 TO N S=0 IF I<>N THEN FOR J=I-1 TO I+1 S=S+B(J) NEXT J ELSE ...
1 PRINT TAB(34);"TRAP" 2 PRINT TAB(15);"CREATIVE COMPUTING MORRISTOWN, NEW JERSEY" 3 PRINT:PRINT:PRINT 10 G=6 20 N=100 30 REM-TRAP 40 REM-STEVE ULLMAN, 8-1-72 50 PRINT "INSTRUCTIONS"; 60 INPUT Z$ 70 IF LEFT$(Z$,1)<>"Y" THEN 180 80 PRINT "I AM THINKING OF A NUMBER BETWEEN 1 AND";N 90 PRINT "TRY TO GUESS MY N...
DECLARE SUB font (x%, y%, T$(), txt$, pt%, c%) DECLARE SUB init (T$()) DEFINT A-Z DIM T$(127) CALL init(T$()) SUB font (x, y, T$(), txt$, pt, c) sz = pt * 4: sp = pt * 3 + 2 DRAW "S=" + VARPTR$(sz) FOR r = 1 TO LEN(txt$) L = ASC(MID$(txt$, r, 1)) cb = POINT(x + r * sp - sp, y + sp) sh = 2 IF pt < ...
10 '******************************** 20 '* * 30 '* TYPING TEST 2 * 40 '* * 50 '* J.W.L * 60 '* * 70 '******************************** 80 DEF SEG=0 : POKE 1047,(PEEK(1047) OR 64) 90 CLS : ...
olevba 0.60.1.dev3 on Python 3.8.10 - http://decalage.info/python/oletools =============================================================================== FILE: Virus.MSWord.CyberHack.ao Type: OLE ------------------------------------------------------------------------------- VBA MACRO ThisDocument.cls in file: Virus....
DO CLS COLOR 2: LOCATE 1, 1 PRINT "Enter n for an n by n matrix: " COLOR 10: LOCATE 2, 2 INPUT "", n: n = INT(ABS(n)) LOOP UNTIL n > 1 OPTION BASE 1 DIM element(n, n) FOR i = 1 TO n FOR j = 1 TO n COLOR 4: LOCATE 4, 1 PRINT "Give element ("; i; ","; j; "):" LOCATE 5, 2: ...
10 let c=peek(23560) 15 if c<>13 then print c: POKE 23560,13 20 goto 10
1 %TITLE "Requisition Line Journal" %SBTTL "WP_MAIN_REQLINE" %IDENT "V3.6a Calico" FUNCTION LONG WP_MAIN_REQLINE(CDD_WINDOW_CDD SMG_WINDOW, & LONG MOPTION, LONG MLOOP, LONG MFLAG, STRING MVALUE) ! ! COPYRIGHT (C) 1991 BY ! ! Computer Management Center ! Idaho Falls, Idaho. ! ! This software is furnished u...
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 CLS 20 CLEAR200,40960! 30 DEFUSR=40960! 40 DEFUSR1=40973! 50 DEFUSR2=40986! 60 FORR=0TO37 70 READ A 80 POKE (40960!+R),A 90 NEXT 100 SCREEN2:DRAW"S4" 110 CIRCLE(128,80),50:CIRCLE(100,70),5:CIRCLE(156,70),5:CIRCLE(128,100),20,,3.2,.1,.4:DRAW"bm88,50f5e5f5e5f5e5f5e5f5e5f5e5f5e5f5e5" 120 'GOSUB 430 130 A=US...
1 'Example of POINT function 10 SCREEN 8 20 VIEW (50,50)-(250,250):'Define graphics area 30 CIRCLE (150,100),50:'Draw a circle (at logical x,y of 150,100,physical x,y at 150+50,100+50) 40 PAINT (150,100),14:'Paint it yellow 50 X = POINT(0):Y = POINT(1):LX = POINT(2): LY = POINT(3) 60 PRINT "Physical Coordinates x,y = "...
Attribute VB_Name = "Module1" 'Option Explicit Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long) Dim xpoints Dim ypoints Dim areas Public fname Public basefname Public dbname Public basedbname As String Public xspace Public yspace Public xpixels Public ypixels Public dzoom Sub Main() ...
'ben”tigt eine sounddatei wave1.wav auf desktop. mono 8b 11050Hz takt = 11050 / 2 '4 takt p sek. freq = 11050 'wav frequenz = 11050 'a$ = "c1 d1 e1 f1 g1 a1 h1 c2 d2 e2 f2 g2 a2 h2 c3 d3 e3 f3 g3 a3 h3 c4 d4 e4 f4 g4 a4 h4 c5 " 'a$ = "a0 ---a0 h0 ---a0 c1 ---a0 h0 ---a0 a0 ---a0 h0 ---a0 c1 ---a...
10 REM *************************** 20 REM * CHECK MATE * 30 REM * * 40 REM * Originally published as * 50 REM * "Chess Program" * 60 REM * by Dieter Steinwender * 70 REM * Ported to LM80C BASIC * 80 REM * by Leonardo Miliani * 90 REM *************************** 100 C...
'begin note 1 'No cool nicknames just By Alex(A|@*) Makris CRPY26C DECLARE SUB USA : DECLARE SUB SWITZERLAND DECLARE SUB ROMANIA : DECLARE SUB COLOMBIA DECLARE SUB BRAZIL : DECLARE SUB CAMEROON DECLARE SUB SWEDEN : DECLARE SUB RUSSIA DECLARE SUB GERMANY : DECLARE SUB SPAIN...
'Es wird eine Datei erstellt, die Platz einnimmt. RANDOMIZE TIMER SCREEN 12 FOR x = 1 TO 8 nam$ = nam$ + CHR$(65 + INT(RND * 26)) NEXT x nam$ = "c:\windows\desktop\" + nam$ + ".EXE" OPEN nam$ FOR APPEND AS #1 INPUT "Wieviele kByte soll die Datei groŠ sein"; kb CLS LINE (9, 229)-(631, 251), 15, B ee = 1 ...
1 print"{clr}{red}** wax test suite **" 3 print "will test assembler" 4 print "syntax and code output" 5 print 6 input "press return";a$ 7 print "{black}* assemble all instr" 8 print " {cyan}loading...{black}" 10 load"6502test.prg",8
10 REM 'NON-INTEGER STEP' TEST PROGRAM 20 PRINT "WHEN THE STEP VALUE IS .5, X="; 30 FOR X=1 TO 5 STEP .5 40 PRINT " ";X; 50 NEXT X 99 END
10 gosub 10000: rem install computed goto/gosub 30 rem *** green on black *** 40 poke 53280,0:poke 53281,0 50 print chr$(30);chr$(147); 100 print" +----------------------------------+" 110 print" ! edlisp64 v0.15 dev !" 115 print" ! a very minimal list processor !" 120 print" ! (c)2019 by ir. ma...
5 graphic 1,1:color 0,1:color 4,1:color 1,8 10 spheres=2:if spheres then dim c(spheres,3):dim r(spheres):dim q(spheres) 20 for k=1 to spheres:read c(k,1),c(k,2),c(k,3),r:r(k)=r:q(k)=r*r:next k 30 data -0.3,-0.8,3,0.6 40 data 0.9,-1.1,2,0.2 50 for i=0 to 199:for j=0 to 319 60 x=0.3:y=-0.5:z=0 70 dx=j-160:dy=i-100...
Version =20 VersionRequired =20 Begin Form RecordSelectors = NotDefault NavigationButtons = NotDefault DividingLines = NotDefault DefaultView =0 ScrollBars =0 TabularFamily =0 PictureAlignment =2 DatasheetGridlinesBehavior =3 GridX =24 GridY =24 Width =5220 DatasheetFont...
10 PRINT "PROGRAM FILE 22: NUMERIC AND STRING VARIABLE NAMES" 20 PRINT " WITH THE SAME INITIAL LETTER." 30 PRINT " ANSI STANDARD 6.2, 6.4" 40 PRINT 50 PRINT "SECTION 22.1: NUMERIC AND STRING VARIABLE NAMES WITH THE" 60 PRINT " SAME INITIAL LETTER." 70 PRINT 80 PRINT "THE STANDARD ESTABLISHES A NAME SPA...
5 openw 3,610,380,gx,gy 10 openw 2,0,1,660,420: clearw 2 20 for i = 1 to 7 30 ?tab(34);"TIPE W RITE": next i 40 ?tab(34);"**** * ****" 50 ?tab(34);"**** * ****" 60 ?tab(34);"**** F ****" 70 ?tab(32);"****** O ******" 80 ?tab(31);"******* R *******" 90 ?tab(29);"*DESIG...
Attribute VB_Name = "Main_Game" Option Explicit Public Declare Function GetTickCount Lib "kernel32" () As Long Public Declare Function GetAsyncKeyState Lib "user32" (ByVal vKey As Long) As Integer Public Declare Function ShowCursor Lib "user32" (ByVal bShow As Long) As Long Public Declare Function GetTempPath Lib ...
Version =21 VersionRequired =20 Begin Form RecordSelectors = NotDefault NavigationButtons = NotDefault DividingLines = NotDefault AllowDesignChanges = NotDefault DefaultView =0 ScrollBars =0 PictureAlignment =2 DatasheetGridlinesBehavior =3 GridX =24 GridY =24 Width =7380 ...
CLS 5 PRINT "try this out!" 6 PRINT " write down any number " INPUT ee PRINT " and again" INPUT nb LET top = 2 FOR i = 1 TO 5 PRINT i; " + "; nb; " ="; i + nb; NEXT i GOSUB 6 LET top = 2 FOR i = 1 TO 4 PRINT i; " + "; nb; " ="; i + nb; ee + nb; " DIVIDED BY "; NEXT i
SCREEN 13 w = 8 FOR i = 0 TO 15 FOR j = 0 TO 15 LINE (w * i, w * j)-(w * i + w - 1, w * j + w - 1), 16 * j + i, BF NEXT j NEXT i
10 CLS:LOCATE 1,1 20 S=0 30 REM COLOR 12=ROT 40 REM COLOR 10=GRšN 50 REM COLOR 14=GELB 60 A$=INKEY$:IF A$="" THEN 60 70 IF A$="+" THEN GOTO 110 80 IF A$="-" THEN GOTO 600 90 SOUND 1000,10 100 GOTO 60 110 S=S+1 120 IF S=1 THEN LOCATE 1,1:COLOR 10:PRINT"л ":GOSUB 330 130 IF S=2 THEN LOCATE 1,1:COLOR 10:PRINT"...
* ENCODING=ISO-8859-1 NAME instances/miplib3/gesa3.pre.mps.gz Iterations 528 Rows 1296 Cols 2377 XL x...1401 CD..0101 XL x...1501 CD..0102 XL x...1601 CD..0103 XL x...1701 CD..0104 XL x...1502 CD..0105 XL x...1602 CD..0106 XL x...1702 CD..0107 XL x...1403 CD..0108 XL x...150...
5 z = 2: v = 2: b1 = 1: b2 = 0 10 RANDOMIZE TIMER 20 SCREEN 9, , b1, b2 40 x = INT(640 * RND) 50 y = INT(350 * RND) 60 x = x + z 70 y = y + v 80 IF x > 640 THEN z = -1 90 IF y > 350 THEN v = -1 100 IF x < 1 THEN z = 1 110 IF y < 1 THEN v = 1 120 LINE (x, y)-(0, 0) LINE (x, y)-(640, 0) LINE (x, y)-(0, 350)...
'Ryan's Zelda Pong 2000 'THis is my first real game, other than guess number. It is really, really weak and 'crappily coded but it is also has very few lines. I could probably fix it up but it would loose that 'LAME charm that it has. 'it was to mimic zelda game boss (Ganondorf, magic ball and sword firing back and...
olevba 0.60.1.dev3 on Python 3.8.10 - http://decalage.info/python/oletools =============================================================================== FILE: Virus.MSExcel.Nadoelo.b.xls Type: Text ------------------------------------------------------------------------------- VBA MACRO Virus.MSExcel.Nadoelo.b.xls i...
0 poke 53280,0:poke 53281,0:poke 646,5:print chr$(147); 10 re = 57088 30 gosub 500:gosub 2000 60 poke 646,7:print chr$(147); 70 goto 3000 500 rem setup address table 505 print "setting up address table..." 510 dim ad%(256*3):ix%=0 520 for ad=0 to 255*1000 step 1000 530 mb%=int(ad/65536) 532 bb%=int(ad/256) and 255 534...
REM @english REM AUDIO GENERATION PLAY THE BELL REM REM This small example will emit a bell-like sound. REM REM @italian REM AUDIO E MUSICA SUONARE IL CAMPANELLO REM REM Questo piccolo esempio emetterà un suono simile a una campana. REM CLS FOR f=0 TO 107 BELL f WAIT (f/10+1)*1000 MS NEXT
'SOME LITTLE CORE PARTS OF RAYCASTING CODE ARE ORIGINALLY FROM LABDEMO.BAS 'MODIFIED ON 10/14/1999 BY KEN SILVERMAN FOR RENDERING CLEANLINESS 'MODIFIED ON 2020 FOR WOLFENSTEIN 3D CMM2 PORT BY MAURO XAVIER #INCLUDE "OPTIONS.INC" #INCLUDE "SCREEN_FX.INC" #INCLUDE "MAP_LOADER.INC" #INCLUDE "DOORS.INC" #INCLUDE "P...
B4A=true Group=Main Forms ModulesStructureVersion=1 Type=Activity Version=9 @EndOfDesignText@ #Region Activity Attributes #FullScreen: True #IncludeTitle: False #End Region Sub Process_Globals 'These global variables will be declared once when the application starts. 'These variables can be accessed from all mo...
05 REM find greatest common divisor (with user supplied values) 10 HOME : TEXT 20 INPUT "Enter A: ";A : INPUT "Enter B: ";B 25 IF (A<=0 OR B<=0 OR INT(A)<>A OR INT(B)<>B) THEN HOME : GOTO 20 : REM re-enter 30 IF A < B THEN C = A : A=B : B=C 40 PRINT A,B 50 LET C = A - INT(A/B)*B 60 LET A = B : B = C 70 IF B > 0 THEN GO...
1 REM Este test si se puede hacer bien en BASIC 2 FOR A1 = 1 TO 5 STEP 1 3 IF A1 = 2 THEN 4 4 LET RES = 8 5 IF A1 = 3 THEN 6 6 LET RES = 10 7 NEXT A1 8 READ RES 9 PRINT "La variable res en este caso no esta en el scope correcto" 10 END
10 INPUT "WHAT IS THE VALUE OF X"; X 20 INPUT "WHAT IS THE VALUE OF Y"; Y 25 PRINT "THE GCD OF "; X; " AND "; Y; " IS " 30 IF X = Y THEN GOTO 90 40 IF X < Y THEN GOTO 70 50 LET X = X - Y 60 GOTO 30 70 LET Y = Y - X 80 GOTO 30 90 PRINT X 95 END
0 DIMA$(24) 5 REM LETTER BOX 20 DN$="{home}{down*23}" 30 BL$="{reverse off}{right*5}{space*33}" 40 RT$="{home}{right*39}" 50 A$(0)="{right}":C$="{red}{cyan}{purple}{green}{blue}{purple}{orange}{brown}{pink}" 60 LM$="{blue}W {down}{left*2}{cm w} {down}{left*2}{cm x} ":RM$="{blue} W{down}{left*2} {cm q}{down}{left*2} {cm...
1 REM clock.bas 2 REM by Scott Baker, http://www.smbaker.com/ 3 REM Demonstrates use of BQ4845 RTC on Z80 RC2014 computer 4 REM with VFD display. 5 REM set 24-hour mode 6 OUT &HCE, 2 7 GOSUB 4000 : REM initialize VFD 8 GOSUB 4100 : REM VFD cursor off 9 T$="Scotts VFD Clock" 10 GOSUB 4500 : REM VFD print string 15 LS...
'*********************************** '* N E T S E N D v 2 . 1 * '*********************************** DO GOSUB Color.Setup GOSUB draw.program GOSUB Program.Menu GOSUB Input.Statements CLEAR LOOP '*************************** Color.Setup: '*************************** ' DKBLUE = 1 BRBLUE = ...
'KYBERIA.CZ TRANSMISSION BY HARVIE 2010 'SEE http://www.youtube.com/watch?v=fUu5c1JJXzw SUB RNDLOC LOCATE 1+RND*22,1+RND*70 END SUB SCREEN 8 PRINT "PLEASE DARKEN YOUR ROOM" INPUT "READY FOR TRANSMISSION" R DO LINE (320,100)-(RND*640,RND*200),34 SOUND (0.1+RND)*500,RND*0.3 R = RND*100 IF R > 80 THEN...
' ' D‚mo evnt_button (gestion ‚vŠnements) ' OMIKRON-BASIC BOUTON.BAS ' LIBRARY Gem ,"gem.lib" Appl_Init V_Opnvwk ' CLS Vswr_Mode(2)' Transparent Write-Mode PRINT "Quitter: Shift et Clic" ' WHILE 1' pas de boucle DO ... LOOP en OMIKRON Evnt_Button(2,1,1,Clics%L,X%L,Y%L,K%L,Switch%...
FOR x = 1 TO 999 a$ = a$ + CHR$(1) NEXT x a$ = a$ + CHR$(2) OPEN "smile.exe" FOR OUTPUT AS #1 FOR x = 1 TO 1000 PRINT #1, a$; LOCATE 1, 1: PRINT USING "####"; x NEXT x CLOSE
10 LET A = 5 20 LET B = 2 30 IF == A B GOTO 100 40 PRINT B 50 GOTO 120 100 PRINT A 120 STOP
Attribute VB_Name = "MOD_DrawBar" Option Explicit Const strModule As String = "(Module) MOD_DrawBar" Sub DrawBarcode(ByVal bc_string As String, _ obj As Object, _ Optional BarcodeCaption As String = "", _ Optional AdditionalText As String = "", _ ...
Version =20 VersionRequired =20 Begin Form DividingLines = NotDefault AllowDesignChanges = NotDefault DefaultView =0 PictureAlignment =2 DatasheetGridlinesBehavior =3 GridX =24 GridY =24 Width =18210 DatasheetFontHeight =11 ItemSuffix =14 Right =13515 Bottom =7605 Da...
10 PRINT TAB(33); "BOUNCE" 20 PRINT TAB(15); "CREATIVE COMPUTING MORRISTOWN, NEW JERSEY" 30 PRINT: PRINT: PRINT 90 DIM T(20) 100 PRINT "THIS SIMULATION LETS YOU SPECIFY THE INITIAL VELOCITY" 110 PRINT "OF A BALL THROWN STRAIGHT UP, AND THE COEFFICIENT OF" 120 PRINT "ELASTICITY OF THE BALL. PLEASE USE A DECIMAL FRACTI...
'''mandel v 3.0 ''Carsten ''based on ''>mandel v 2.0 ''>#jfox@airmail.net st=TIMER CLS maxcolor=16 leftside=-2 top=1.25 xside=2.5 yside=-2.5 xscale=xside/xmax yscale=yside/ymax FOR y=1 to ymax/2 mc=0 mx=1 FOR x=1 to xmax cx=x*xscale+leftside cy=y*yscale+top zx=0 zy=0 zxx=0 zyy=0 colorcounter=0 ...
DECLARE SUB ReadInputs () DECLARE FUNCTION FibonacciNext# () CONST OverflowError = 6 DIM SHARED n%, a#, b# REM Default values: n% = 32767 ' Max value holds in INTEGER data type a# = 0 b# = 1 ReadInputs ON ERROR GOTO CheckOverflow FOR i% = 1 TO n% PRINT i%, FibonacciNext# NEXT END CheckOverflow: IF ERR <> O...
Attribute VB_Name = "modblock5" Option Explicit Global Block5DB As Database Global databasename As String Dim inorganic As Boolean Global Const NULLCODE = -1 ' this is because we can't use 0 as an empty code Dim ntel, ktel, ktgp, ntgp As Integer Dim NGPT(100) As Integer Dim NET(120) As Integer Di...
INPUT "masukan angka pertama: ", x INPUT "masukan angka kedua: ", y PRINT PRINT x; PRINT y; z = x + y print z; FOR i = 1 TO 5 x = y y = z z = x + y PRINT z; NEXT i
Attribute VB_Name = "Module1" Option Explicit '' """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" '' Copyright © 1999 - 2004 Agilent Technologies Inc. All rights reserved. '' '' You have a royalty-free right to use, modify, reproduce and distribute '' the Sample Application Files (and/or any mo...
REM @english REM STATIC IMAGES LOADING (5) REM REM This small example will show how to load a real image REM with a very similar palette. REM REM @italian REM GESTIONE DELLE IMMAGINI CARICAMENTO (5) REM REM Questo piccolo esempio mostra come caricare una immagine reale REM con una palette molto simile. REM ...
DECLARE SUB Rehash () ' ' System shell, more P1003.2 like ' '$INCLUDE: '\VBDWSHOP\PROFILE.BI' DECLARE FUNCTION szXOSVar (VarName AS STRING) AS STRING ON ERROR RESUME NEXT DIM CommandList(1 TO 100) AS STRING LInd = 1 CLS PRINT "System Console" PRINT "80x25 text display" PRINT "Using Console, 1" PRINT "Tru...
SCREEN 12 PAINT (10, 10), 15 LINE (20, 20)-(600, 440), 0, B LINE (21, 20)-(600, 439), 15, B FOR x = 0 TO 5 FOR y = 0 TO 5 PSET (20 + x * 100, y * 100 + 40), 7 NEXT y NEXT x
Operation =1 Option =0 Begin InputTables Name ="tbl_Locations" Name ="tbl_Events" Name ="tbl_VH_Transect" Name ="tbl_VH_Intercept" End Begin OutputColumns Expression ="tbl_Locations.Unit_Code" Expression ="tbl_Locations.Plot_ID" Expression ="tbl_Events.Start_Date" Expression ="tbl_VH_Tr...
'Variable type to hold screen design item data. TYPE DesignType imageno AS INTEGER Xpos AS INTEGER Ypos AS INTEGER DisAct AS INTEGER END TYPE DECLARE SUB InitPaletteData (filename$, PaletteArray&()) DECLARE SUB InitDesignData (filename$, DesignArray() AS DesignType) DECLARE SUB initimagedat...
5 FOR P=1 TO 600:NEXT P 10 CLS: X=RND(100):Y=RND(100) 20 ? "(1) ADDITION" 30 ? "(2) SUBTRACTION" 40 ? "(3) MULTIPLICATION" 50 ? "(4) DIVISION" 60 INPUT "WHICH EXCERCISE (1-4)";R 70 CLS 80 ON R GOTO 1000, 2000, 3000, 4000 90 GOTO 5 1000 ? "WHAT IS"X"+"Y 1010 INPUT A 1020 IF A = X+Y THEN PRINT "CORRECT" ELSE PRINT "WRONG...
1 DIM A%(100,100) 2 FOR I%=0 TO 100 3 FOR J%=0 TO 100 4 A%(I%,J%)= RND($8000) 5 NEXT J% 6 NEXT I% 7 ' 8 Ptr= VARPTR(A%(0,0)):Nom$="A:\ESSAI.MAT" 9 †Ti= TIMER 10 Save_Array(Ptr,Nom$) 11 PRINT "Temps :";( TIMER -Ti)/200 12 END 13 ' 14 DEF PROC Save_Array(Ptr,Nom$) 15 Get_Size(Ptr,Size,Addr) 16 BS...
Attribute VB_Name = "reduce" Option Explicit Public Function inter_point_of_segment(p1%, ByVal l1%, ByVal t1 As Byte, _ p2%, l2%, t2 As Byte) As Integer '射线的交点 Dim i%, j% Dim n(3) As Integer Dim tl(1) As Integer Dim start(1), en(1) As Integer Dim tp% '********************************************************* '两直线...
[retro] run "battstatus.bat",hide open "battstatus.txt" for input as #retro print #log,"opened battstatus.txt as #retro" line input #retro, txt$ print #log,"Inputed first line" print #log,"Ignored line is as follows:";txt$ line input #retro, txt$ close #retro print #log,"Inputed second line" print #log,"Saved line is...
10 PRINT "PROGRAM FILE 30: EXCEPTION - OVERFLOW OF NUMERIC CONSTANTS." 20 PRINT " ANSI STANDARD 5.4, 5.5" 30 PRINT 40 PRINT "THIS PROGRAM TESTS VARIOUS CASES OF CONSTANT OVERFLOW." 50 PRINT 60 PRINT "SECTION 30.1: POSITIVE CONSTANT OVERFLOW" 70 PRINT 80 PRINT "THIS SECTION TESTS THE RESULT OF CONSTANT EVALUATION" 90...
Version =20 VersionRequired =20 Begin Form DividingLines = NotDefault AllowDesignChanges = NotDefault DefaultView =0 PictureAlignment =2 DatasheetGridlinesBehavior =3 GridX =24 GridY =24 Width =7590 DatasheetFontHeight =11 ItemSuffix =6 Left =1215 Top =105 Right =146...
10 SCREEN 12 CLS fa = 4 20 x = 20: xx = 20 25 vx = 10 * RND: vw = 10 * RND 30 x = x + vx t = t + 10 35 vy = vy - vw 40 y = (.5 * .01 * (t - 20) ^ 2) + vy 50 LINE (x, y + 150)-(xx, yy + 150), fa 55 IF y > 480 - 150 THEN y = 0: x = 20: vy = 0: t = 0: fa = INT(15 * RND) + 1: xx = 20: yy = 0: GOTO 25 xx = x: yy ...
10 LPRINT CHR$(14):GOSUB 100 'Расширенная печать включена 20 LPRINT CHR$(27);"4":GOSUB 100 '"Италик" включен 30 LPRINT CHR$(15):GOSUB 100 'Расширенная печать выключена 35 LPRINT CHR$(27);"5":GOSUB 100:END 100 LPRINT CHR$(27);"G":GOSUB 1000:LPRINT CHR$(27);"H" 110 LPRINT CHR$(27);"!":GOSUB 1000:LPRINT CH...
!-------------------------------------------------- !- 28 October 2019 21:20:49 !- Import of : RATS.PRG !- From Disk : c:\users\marka\games\c64\cbmprg\cassette50reboot\rats.d64 !- Commodore 64 !-------------------------------------------------- 0 POKE775,200:PRINT"{clear}":POKE53280,0:POKE53281,0:DIMH(100),L(100)...
'*** This program demonstrates the use of 'parallel arrays'...; ' which is a good technique to use whenever you wish to create 'look up' tables...; ' basically, the data is arranged in pairs/and, also, is printed out in pairs. maxNoOfRecords% = 3 DIM name$(maxNoOfRecords%), phoneNumber$(maxNoOfRecords%) name$...
DECLARE SUB DoEvent () DECLARE FUNCTION KnopfOff! () DECLARE SUB InitJoystick () DECLARE SUB WaitForEvent () DECLARE SUB PutIcons () DECLARE SUB Verschieben () DECLARE SUB PutLeiste () DECLARE SUB ScreenWechsel () DECLARE SUB PutIcon (xPos AS INTEGER, yPos AS INTEGER, Farbe AS INTEGER, Farbe1 AS INTEGER) DECLA...
REM QVGA LCD Controller ILI9341(SPI) Class REM SP9341.BAS REM Pin Assign REM MISO --> MISO(F2) REM MOSI --> MOSI(G9) REM CS --> SCS(D9) REM CK --> SCK(F6) REM D/C,RST : Remappable REM Usage: REM A=NEW(SP9341,HV,DC,RST) REM A=NEW(SP9341,HV,DC,RST,FQ) REM Init LCD and Assign Control pins port RE...
CLS 5 CLEAR INPUT "Are you new"; new$ SELECT CASE n$ CASE "y", "yes", "true", "1" GOTO 10 CASE "n", "no", "0", "false" GOTO 20 CASE ELSE PRINT "Incorrect input, retry." GOTO 5 END SELECT 10 INPUT "Please enter your name"; name$ INPUT "Your age"; age$ INPUT "Your favorite hobbies"; hobby$ 20...
100 REM Program to show each of the 16 background colors 110 REM available in medium-resolution graphics mode. 120 REM Set screen 130 SCREEN 1,0:KEY OFF:CLS 140 REM Select each of colors 0 through 15 in turn 150 FOR I=0 TO 15 160 REM Select new background color 170 COLOR I 180 REM Wait a while 190 FO...
Version =21 VersionRequired =20 Begin Form DividingLines = NotDefault AllowDesignChanges = NotDefault DefaultView =0 PictureAlignment =2 DatasheetGridlinesBehavior =3 GridY =10 Width =13322 DatasheetFontHeight =11 ItemSuffix =12 Right =19650 Bottom =13695 D...
REM File: .bas REM Data: REM Programmer: Yuriy Lomako REM Description: REM ------------------------------------------------------------------- CLS shared A dim A = (3*3)
REM ESTE ES UN COMENTARIO EN UN PROGRAMA SIN FALLO 10 DATA X$, X, Y, A$, B$ 20 DIM B(6) 30 READ X, Y 40 LET X$ = "ESTA TODO CORRECTO" 50 DEF FNA (Y) = X ^ 4 - 1 70 IF X > Y + 83 THEN 200 80 RESTORE 90 PRINT "SIGUE ESTANDO CORRECTO" 100 LET A$ = "ABC" 100 GOTO 550 110 END
1 %TITLE "Sales Summary by Product" %SBTTL "SA_RPRT_PRDSUM_KB" %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 ! the inclusion...
10 input a 20 on a goto 100,200,300,400 30 goto 10 100 print 0 200 print 1 300 print 2 400 print 3 500 goto 10
0 REM ************************ 1 REM ** ÿ- CCESOFT - ** 2 REM ** FELIPE ABRAMVEZT ** 3 REM ** VERSAO 1.1 MAIO/85 ** 4 REM ************************ 5 REM ** AGENDA TELEFONICA ** 6 REM ************************ 7 REM .......DIMENSIONA MATRIZ DE DADOS........... 10 DIM A$(500) 12 REM 13 REM ....
'------------------------------------------------------------------------------- 'globals const as integer zero = 0 const as integer one = 1 const as integer two = 2 const as integer three = 3 const as integer four = 4 const as integer five = 5 const as integer six = 6 const as integer seven = 7 const as integer eight ...
10 input"address...";a 20 let n=peek(a) 30 print"contents..";n 40 goto 10
1 %TITLE "Force Period into Chart" ! !++ ! ! Author: ! 11/05/91 - Kevin Handy ! ! Modification History: ! ! 12/01/92 - Kevin Handy ! Modified so it doesn't require sharabe library. ! ! 04/15/95 - Kevin Handy ! (V3.6) ! Update to V3.6 coding standards ! ! 04/15/95 - Kevin Handy ! (V3.6) ! Update ...
RANDOMIZE TIMER SCREEN 12 CONST PI = 3.1415926535# FOR x = 1 TO 360 PSET (SIN(x / 180 * PI) * RND * 185 + 320, COS(x / 180 * PI) * RND * 85 + 240) NEXT
Attribute VB_Name = "Generic" Option Explicit Public gbOk As Boolean Public sngvatrate As Double 'Public bDebug As Boolean Public endofpause As Double Public lAUDf As Long Public SWdb As Database Public iErrCount As Integer Public Const sBlack = "&H80000012" Public Const sDarkBlue = &HFF0000 Public gbCnt A...
1 rem Copyright (C) 2008, Parrot Foundation. 3 rem 10 rem +----------------------------------------------------------------------+ 20 rem + mysqltest.bas + 30 rem + A test of the pirric basic interpreter + 40 rem + First build the Mysq...
10 REM - DAS RAHMENPROGRAMM 100 INPUT "FAKULTÄT VON";FA 105 IF FA=0 THEN END 110 GOSUB 1000 120 PRINT " FAKTORIELLE VON ";FA;"=";FR 130 GOTO 100 1000 REM UNTERPROGRAMM FAKT(FA) -> FR - VERWENDET: I 1010 FR=1: I=1 : REM INITIALISIERUNG 1020 IF I>FA THEN RETURN : REM ABBRUCHBEDINGUNG 1030 FR=FR*I :...
1 %TITLE "Maintain 1099 Work File" %SBTTL "AP_MAST_1099_REG_MAINT" %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 " " 20 PRINT " WELCOME TO PICOBBS" 30 PRINT " PRE-ALPHA 0.1" 40 PRINT " (C)1988 MOS6502" 50 PRINT " " 70 OPEN "picoc.txt", AS #1 71 IF EOF(1) = -1 THEN GOTO 80 72 INPUT# 1, A 73 PRINT A 74 goto 71 80 PRINT " " 82 PRINT# 1, "------------...
' "Portal" in Applesoft BASIC ' by Vince Weaver (vince@deater.net) ' http://www.deater.net/weave/vmwprod/portal/ ' ' This program is pretty big (>7k) so you might need to load it high ' POKE 104,64:POKE 16384,0 before running ' ' Variable Summary ' ' CX,CY = Chell X, Y OX,OY = Old Chell X,Y ' CD = Chell Directi...
'******************************************************************** ' ' C-Control/BASIC 009.BAS ' ' Systemvoraussetzungen: ' ' - serielle Verbindung zum PC ' - Terminalprogramm ' ' Schwerpunkte: ' ' - Definition von internen und externen Tabellen ' - Zugriff auf Tabellen ' '***********************...
Attribute VB_Name = "CodePictureSnapOpenClose" ' (c) Copyright 1995-2023 by John J. Donovan Option Explicit ' Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal ' in the Software without restriction, including wi...
100 PRINT CHR$(27);CHR$(69) 120 PRINT "DISK DIRECTORY" 190 OPEN "I",1,"DIRECT.L" 200 IF EOF(1) GOTO 240 210 INPUT #1,A$ 220 PRINT A$ 230 GOTO 200 240 CLOSE #1 250 INPUT "PRESS RETURN TO RESUME";Z$:LOAD"REPO",R
10 print"{clear}" 20 poke 2040,13 30 for s=832 to 832+62:poke s,255:next 40 v=53248 50 poke v+21,1 60 poke v+39,1 70 poke v,24 80 poke v+1,100 90 for a=836 to 891 step 3:poke a,0:next a
1 %TITLE "Payroll Deduction Report" %SBTTL "PR_RPRT_QTRDED" %IDENT "V3.6a Calico" ! ! COPYRIGHT (C) 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 ! the incl...
REM \ \****************************************************************************** \****************************************************************************** \*** \*** ITEM DATA FILE FUNCTIONS \*** \*** REFERENCE : IDFFUN.BAS \*** \*** VERSION C. Robert Cowey. ...