text
stringlengths
7
5.36M
10 INPUT A$ 20 IF A$ = "" THEN ?"FUCK":GOTO 10 30 PRINT A$
6 F=0:H=0:T=64 10 KEY OFF 15 CLS 16 GOSUB 2500 20 X=VAL(RIGHT$(TIME$,2)) 30 RANDOMIZE X 40 CLS:V=INT(RND*2)+1 45 GOSUB 3500 50 ON V GOTO 500,1500 500 A=INT(RND*24)-12 510 B=INT(RND*24)-12 520 PRINT:PRINT:PRINT"Mennyi ";A;"*";B;"="; 530 INPUT C...
10 REM THE WORLD FAMOUS "HELLO WORLD!" PROGRAM. 20 PRINT "HELLO WORLD!" 30 END
10 F$="PRGFLASH.BIN":GOSUB 3000:CLEAR 200,SA-1:CLS 15 BA=&H64:GOSUB 4000:'SET COCOFLASH BASE ADDRESS 90 LOADM"PRGFLASH.BIN":EXEC:'SETS UP ALL RAM MODE AND DEFINES USR FUNCTIONS 95 PRINT "ERASING ALL FLASH BANKS. THIS WILL TAKE A WHILE." 100 X=USR7(0) 110 END 3000 OPEN "D",1,F$,5:FIELD #1,5 AS H$:GET #1,1:SA=ASC(...
5 HOME 10 PRINT "LOADING MIST V0.99.3" 20 PRINT:PRINT 40 PRINT "CONTROLS: " 42 PRINT " MOVE CURSOR : ARROWS OR WASD" 44 PRINT " FORWARD/ACTION : ENTER" 46 PRINT 50 PRINT " JOYSTICK (TODO): J" 53 PRINT " LOAD GAME : CONTROL-L" 56 PRINT " SAVE (TODO) : CONTROL-S" 58 PRINT " TOGGLE SOUND...
10 'Smooth scroll 20 LET[0],24,24,36,52,189,189,255,90 30 CLP:FOR J=0 TO 7:FOR I=0 TO 7 40 POKE#700+I+J*8,[I]>>(J) 50 POKE#740+I+J*8,[I]<<(8-J) 60 NEXT:NEXT 70 ' 80 CLS:CLT:X=64:Y=15:A=0:B=0 90 @LOOP:IF TICK()<0 GOTO@BTN 100 Z=0 110 IF VPEEK(X/8,Y-1) Z=#FF00 120 IF VPEEK(X/8+1,Y-1) Z=Z+#FF 125 CLT:POKE #900+RND(32),ASC...
10 print "hello asm": i%=255 20 rem [ ldx i%! ] 30 rem [ inc 53280 ] 40 rem [ dex; bne 30! ] 50 goto 10
Attribute VB_Name = "pingmod" Option Explicit Public Const IP_STATUS_BASE = 11000 Public Const IP_SUCCESS = 0 Public Const IP_BUF_TOO_SMALL = (11000 + 1) Public Const IP_DEST_NET_UNREACHABLE = (11000 + 2) Public Const IP_DEST_HOST_UNREACHABLE = (11000 + 3) Public Const IP_DEST_PROT_UNREACHABLE = (11000 + 4) P...
Version =20 VersionRequired =20 Begin Form RecordSelectors = NotDefault MaxButton = NotDefault MinButton = NotDefault AutoCenter = NotDefault NavigationButtons = NotDefault AllowAdditions = NotDefault DefaultView =0 ScrollBars =0 BorderStyle =3 GridX =20 GridY =...
IF usercommand$(runcommands) = "redo" THEN DO IF usercommands <> 1 THEN EXIT DO speechoutput$ = "redoing" speechprint$ = speechoutput$ GOSUB textprint GOSUB speechoutput _SCREENPRINT CHR$(25) useroutputuse$ = "" usercommands = -1 EXIT DO LO...
REM @english REM I/O CONTROL WITH KEYBOARD (9) REM REM This example will wait the typing of exactly ten characters. REM Then, it will print out the same sequence. We note the use of REM ''CLEAR KEY'' instruction, that clears the keyboard buffer. REM Moreover, we will use the ''INPUT$()'' function to retrieve REM...
10 PRINT "Enter N to calculate fibonacci" 20 INPUT N 30 PRINT "You entered: ", N 40 F0 = 0 50 F1 = 1 60 FOR I = 0 TO N 70 IF I = 0 THEN F = F0 ELSE IF I = 1 THEN F = F1 ELSE F = PREV1 + PREV2 80 PRINT "Fib of ", I, "IS", F 90 REM Shift values 100 PREV2 = PREV1 110 PREV1 = F 120 NEXT I 
1 'SUNCRACK V1.0 - UTILITY TO *CRACK* (NOT COPY) SOME SUNDOG GAMES 2 'BY JOHN RIDDLE MAY 22, 1997 3 'FIRST BACKUP SUNDOG DISK EXCLUDING TRACK 0 4 'THEN RUN THIS PATCH ON THE BACKUP 5 'METHODS: #1,2,3 & 4 - JSR KILL, #5 - EXEC ADDRESS CHANGE 10 F=0:CLS:WIDTH32 20 PRINT@9,"SUNCRACK V1.0" 30 PRINT:PRINT"INSERT APPR...
10 REM TEST RIGHT() FUNCTION 20 A$="ABCDEFG" 30 R$=RIGHT$(A$,3) 40 PRINT "R$: ";R$ 50 R1$=RIGHT$(A$,10) 60 PRINT "R1$: ";R1$ 70 R0$=RIGHT$(A$, 0) 80 PRINT "R0$: ";R0$ 99 END
100 FOR X = 1 TO 100 110 FLAG=1 120 IF NOT (X-INT(X/3)*3)=0 THEN 150 130 FLAG=0 140 PRINT "FIZZ"; 150 IF NOT (X-INT(X/5)*5)=0 THEN 180 160 FLAG=0 170 PRINT "BUZZ"; 180 IF FLAG=1 THEN PRINT X; 190 PRINT 200 NEXT X RUN
100 ' KPOS ƒTƒ“ƒvƒ‹ {SJIS} 110 CLS 120 A$="‚j‚o‚n‚r‚ΜƒTƒ“ƒvƒ‹‚kist" 130 PRINT A$ 140 LOCATE 0,1:PRINT "‚hƒ‚ƒWƒ ƒoƒCƒg" 150 FOR I=1 TO 13 160 PRINT I,KPOS(A$,I) 170 NEXT
SCREEN 12 CLS d2 = 1000 y29 = 1 DO IF y29 < 29 THEN COLOR 0: LOCATE 13, y29: PRINT "By: Robert Shoemate": COLOR 12: y29 = y29 + 1: COLOR 10 COLOR 12 LOCATE 13, y29: PRINT "By: Robert Shoemate" COLOR 10 LOCATE 12, 30: PRINT "\ Lamb Hunt III \" del = 0 DO UNTIL del = d2 del = del + 1 LOOP LOCATE 12, 30: PRI...
1 'Example of BIN function 10 PRINT INP(&0):'Read data from port 0 20 PRINT BIN(INP(&0)):'Read data from port 0, treat as a BCD number
5 'from Lauwerier H., 1991. "Fractals Images of Chaos" Penguin 209p. 10 'Modern Art 20 'Name: MONDRIAN 30 SCREEN 12, 0, 0, 0: CLS : pi = 3.141593: RANDOMIZE 111 40 WINDOW (-.5, -.3)-(1.5, 1.2) 50 DIM x(200), y(200) 52 FOR i = 1 TO 200: x(i) = RND: y(i) = RND: NEXT i 60 COLOR 7: PRINT : PRINT "This program forms with a...
CLS C$ = ". ROLL NO. 54 CR!!" FOR I = 1 TO 54 IF I MOD 2 = 0 THEN COLOR 10: PRINT I; C$ END IF IF I MOD 2 = 1 THEN COLOR 12: PRINT I; C$ END IF NEXT
B4A=true Group=Default Group ModulesStructureVersion=1 Type=Activity Version=9.5 @EndOfDesignText@ #Region Activity Attributes #FullScreen: True #IncludeTitle: False #End Region Sub Process_Globals Private MyPositionLat, MyPositionLon As String Public Device As Phone End Sub Sub Globals Private ButtonUserUnav...
$apptype console $typecheck on $include "RAPIDQ2.inc" $include "includes\qgetosversion.inc" Get_Version 'print "OSV.dwPlatformId: "+str$(OSV.dwPlatformId) 'print "OSV.dwMajorPlatform: "+str$(OSV.dwMajorPlatform) 'print "OSV.dwMinorPlatform: "+str$(OSV.dwMinorPlatform) 'print "OSV.dwBuildNumber: "+str$(OSV.dwBuildNumber...
10 REM Howdy Hackers in BASIC 20 PRINT "Howdy Hackers"
$regfile = "m8def.dat" $crystal = 1000000 $baud = 19200 $include "Serial.bas" $include "ADC.bas" 'Deklarasi Variable Global Dim Bstatus As Byte 'Configurasi Port Config Portb = Output 'Alias Output1 Alias Portb.1 Waitms 1000 'Call CheckCommand() Do Print "test" Loop End
1 %TITLE "Purchase Order Type List" %SBTTL "PO_RPRT_TYPE" %IDENT "V3.6a Calico" ! ! COPYRIGHT (C) 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...
1 ' CONSOLE 3,1,3 2 ' Raycaster Demo - Xts-uBasic version 4 CLS 5 DIM L(8, 8) 6 ' 1234567812345678123456781234567812345678123456781234567812345678 9 L$="1111111110000001100000011000000110000001100000011000200111111111" 10 L(1,1) = 1: L(2,1) = 1: L(3,1) = 1: L(4,1) = 1: L(5,1) = 1: L(6,1) = 1 : L(7,1) = 1 20 L(1,2) =...
0 REM **** BOLOGNA & MILANO **** 1 KEY OFF:SCREEN0:BLOAD"BOLOGNA.BIN",S 2 COLOR 6,5:WIDTH 39 3 LOCATE12,10 4 PRINT"BOLOGNA & MILANO" 5 GOSUB 768 6 COLOR15,4 7 CLS:LOCATE 0,10:PRINT"Bologna & Milano ‚ um jogo espetacular!" 8 GOSUB 768 9 CLS 10 LOCATE 0,10:PRINT"Que vai testar sua capacidade p/administrar uma cidade, um...
10 ' [ 5GAMES IN 1 ] 20 ' 30 CLEAR :RANDOMIZE :DIM G$(4),H(4) 40 FOR I=0TO 4:READ G$(I):NEXT :OPEN "E:5IN1H.DAT"FOR INPUT AS #1:INPUT #1,H(*):CLOSE 50 CLS :LINE (2,2)-(237,29),B:LOCATE 1,0:PRINT " 5GAMES IN 1 SELECT GAME ! ":LOCATE 24,3:PRINT " (C)MINDELIGHT " 60 LOCATE 2,2:PRINT USING "No# &&&&&&&&&&&&&&&&";G+1;G$(G)...
a = 0 B = 0 c = 0 d = 0 e = 0 h = 0 i = 0 GOTO 15 COLOR 14 FOR t = 1 TO 5000: NEXT t FOR t = 1 TO 10 PRINT "" NEXT t PRINT " SPECIAL GROUP PRODUCTS" FOR t = 1 TO 8000: NEXT t CLS FOR t = 1 TO 9 PRINT "" NEXT t PRINT " JOEL BARBA VIDAL" PRINT...
10 JMS F 15 LOADM"L 20 INPUT "LEVEL";L$ 21 HSCREEN 2 25 EXEC:R:L:"BOSS"+L$ 30 POKE &HE6C6,&H21 40 HSCREEN 2 50 Z=&H4000:FOR Y=0 TO 41:FOR X=0 TO 23:P=&H60000+Y*160+X+1:POKE Z,BUTTON(P):LPOKE P,0:Z=Z+1:NEXT X,Y 60 FOR X=0 TO 15:POKE &H4400-16+X,PEEK(&HFFB0+X):NEXT X 70 SAVEM"BOSSES"+L$,&H4000,&H43FF,0 80 POKE 113,0:DLOA...
atom=H contraction shell=S num_primitives=7 num_coefficients=1 0.300996E+04 0.994949E-04 0.451373E+03 0.772617E-03 0.102806E+03 0.405930E-02 0.291474E+02 0.170977E-01 0.952878E+01 0.615690E-01 0.345638E+01 0.192015E+00 0.135638E+01 0.500000E+00 contraction shell=S num_primitives=1 num_coefficients=1 0.561300E+00 1.0000...
Attribute VB_Name = "STAT_MOMENTS_CORREL_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. '************************************************************...
10 REM TEST MAT PRINT USING 12 OPTION BASE 1 20 DIM A(5,4) 30 LET A(R,C) = R*C FOR C = 1 TO 4 FOR R = 1 TO 5 50 MAT PRINT USING "###.# ###", A 99 END
OPEN "GWT.CFG" FOR OUTPUT AS 1 CLS COLOR 9 INPUT "Path for Score files --=*> ", path$ IF RIGHT$(path$, 1) <> "\" THEN path$ = path$ + "\" INPUT "Path to your DOOR.SYS drop file --=*> ", droppath$ IF RIGHT$(droppath$, 1) <> "\" THEN droppath$ = droppath$ + "\" INPUT "Use Renegade Pipe? (Y/n):", rg$ rg$ = UCASE$(rg$) IF ...
!-------------------------------------------------- !- Sunday, May 14, 2017 10:01:15 PM !- Import of : !- c:\src\zimodem\cbm8bit\weather.prg !- Commodore 64 !-------------------------------------------------- 0 CLR: 2 REM 140 DOUGHERTY AVE 3 REM HOLBROOK,N.Y. 4 : 5 REM CURSOR #1, JUNE-JULY 1984 6 REM ADAPTED TO C64 IN...
1 REM ** butterfingers ** 2 POKE530,1:GOSUB100 3 KE=57088:DI=30 4 PRINTCHR$(26):POKE53325,32 5 L=53790:P=2 6 OF=0:GOSUB35 7 DIMP(2),D(2),F(2),A(20,2),C(2) 8 K1=7:K2=13:K3=19:GOSUB91 9 FORT=0TO2:D(T)=1:NEXT 10 P(0)=INT(RND(1)*4) 11 P(1)=INT(RND(1)*7) 12 P(2)=INT(RND(1)*10) 13 FORT=0TO2:F(T)=0:GO...
100 let n=100000 120 let m=0 110 let s=0 130 let m=m+1 140 let s=s+m 150 if m<n then goto 130 160 print "interpreted ", n*3, " lines of code; answer is ", s 170 end
10 INPUT "What is your name"; a$ 20 SCALE$ = "dddbbbdddeeeg" PLAY "L16" FOR i% = 1 TO 1 PLAY "O" + STR$(i%) PLAY "X" + VARPTR$(SCALE$) NEXT i% 30 SCREEN 1 FOR i% = 1 TO 9 STEP 2 WINDOW (-160 / i%, -100 / i%)-(160 / i%, 100 / i%) CIRCLE (0, 0), 10 NEX...
1 'Example of GOTO statement 10 INPUT "Enter Y or N";REPLY$ 20 IF REPLY$ = "Y" THEN GOTO ..good:'If Y, good answer, else fall through to check for N 30 IF REPLY$ <> "N" THEN GOTO 10:'Not Y, not N, start again 40 ..good 50 PRINT "You have entered ";REPLY$
' ======================================================================================== ' Demonstrates the use of hasChildNodes method ' The following example checks a node to see if it has any child nodes. If it does, ' it displays the number of child nodes it contains. ' ===========================================...
100 LPRINT TAB(10);"Changes to Documentation Programs to support Other Printers." 110 LPRINT 120 LPRINT TAB(10);"Each of the documentation programs contains its own text" 130 LPRINT TAB(10);"processor. There is a determination of whether each line" 140 LPRINT TAB(10);"is a command (begun with a period) o...
IF usercommand$(runcommands) = "restart" THEN DO FOR runcommands2 = 1 TO usercommands IF usercommand$(runcommands2) = "stop" OR usercommand$(runcommands2) = "abort" THEN SHELL _DONTWAIT _HIDE "shutdown -a" speechoutput$ = "aborting restart" speechp...
#24 #2 #5 #2 #5 LET A = 1 * 2 * 3 * 4 PRINT A LET A = 2 PRINT A LET Z = 5 PRINT Z PRINT A PRINT Z
10 'STUDENT INFORMATION MANAGEMENT SOFTWARE 20 CLS: SCREEN 0, 1: WIDTH 80 'COLOR TEXT MODE 30 LOCATE 5, 20: COLOR 9: PRINT "STUDENT INFORMATION MANAGEMENT SOFTWARE" 40 LOCATE 10, 39: COLOR 6: PRINT "By" 50 LOCATE 14, 36: COLOR 2: PRINT "ASMIT DE" 60 LOCATE 15, 32: COLOR 2: PRINT "DEEPTIMAN DATTA" 70 LOCATE 16, ...
1 %TITLE "Payroll Tax Register Report" %SBTTL "PR_RPRT_TRN_STATUS" %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 ! t...
OPTION TERMINAL ANSI OPTION EDIT "nano" OPTION DISABLE COMMAND "renum" OPTION RENUM ""
Operation =1 Option =0 Where ="(((dbo_ProjectHeader.InvoiceNum) Is Not Null Or (dbo_ProjectHeader.InvoiceNum)>0" ") AND ((dbo_ProjectHeader.void)=False))" Begin InputTables Name ="dbo_ProjectHeader" Name ="dbo_ContactGeneral" Name ="dbo_ContactName" Name ="dbo_CompanyEmployee" Name ="qryRptSale...
'############################################ '# UnZipper System # '# UnZipper System by Tyler Minard # '# Created in 2005 # '# Use at your own risk # '############################################ 'bmpsat$ = "pk1.pak" 'Name of file to get f...
0 GOSUB10005:GOSUB10000:GOSUB3500:CLEAR5500:GOSUB1000:GOTO20 1 Z=Z-1:K=K-1:RETURN 2 Z=Z+1:K=K+1:RETURN 3 Z=Z-S:RETURN 4 Z=Z+S:RETURN 5 I=-1:J=J-1:ON-(J<K)GOSUB90:RETURN 6 I=-(Z>R)*S+(Z<R)*S:RETURN 7 I=-S:RETURN 8 I=S:RETURN 9 I=0:RETURN 10 ONRND(6)GOSUB5,7,8,6,6,9:ONK(PEEK(R+I))GOTO10:RETURN 11 RETURN 13 POKEG(G+RND(2)...
'Date started: 9/12/2018 'Programmer: Emily Frost Wood 'Goal: Display a station model with accurate weather data. SCREEN 12 '16 color attributes, 640 by 480 COLOR 0, 15 'white background with black graphics CLS 'refreshes to make the screen actually for sure $100% white OPEN "weather.txt" FOR INPUT AS #1 LIN...
CLS FOR A=0 TO 255 COLOR 0,15 SCREEN 1 LOCATE 2,2 PRINT A " " CHR$ (A)"" locate 5,5 input "Chcete znat dalsi znak? Jestli ne napiste x a stisknete enter." ;dalsi$ REM POKR: REM LOCATE 5,5 REM PRINT CHR$ (A) REM FOR I=0 TO 99999 REM NEXT I ...
100 '* **************************************************************** *' 110 '* gwdemo2.bas For GWBASIC *' 120 '* *' 130 '* cross was created by Exporting image as Put+Mask data statements *' 140 '* from Raster M...
Attribute VB_Name = "mdPrintImages" '========================================================================= ' ' vbimg2pdf (c) 2018 by wqweto@gmail.com ' ' Convert jpeg/png images to multi-page pdf file ' '========================================================================= Option Explicit DefObj A-Z '=========...
\***************************************************************************** \***************************************************************************** \*** \*** UOD MASTER FILE FUNCTIONS \*** \*** REFERENCE : UODMSFUN.BAS \*** \*** VERSION A : Les Cook 23rd December 1992 \*...
100 CLEAR 200,&HD000:DEFINT A-Z 110 COLOR 15,0,0:SCREEN 5 120 BLOAD"DSEED.BIN" 130 DEFUSR1=&HD000:DEFUSR=&HD003 140 SETPAGE 0,1:BLOAD"DSEED.SC5",S 150 COLOR=RESTORE:SETPAGE 0,0 160 COPY(0,0)-(255,191),1 TO (0,0),0 170 LINE(0,192)-(255,211),0,BF 180 U=USR1(0) 190 TIME=0:U=USR(0) 200 GOTO 190 
Version =20 VersionRequired =20 Begin Form AllowFilters = NotDefault PopUp = NotDefault Modal = NotDefault RecordSelectors = NotDefault MaxButton = NotDefault MinButton = NotDefault ControlBox = NotDefault AutoCenter = NotDefault NavigationButtons = NotDefault AllowDeletions = N...
10 REM GUESS THE NUMBER GAME 11 REM BY NATHAN STORY (2014) 20 LET A=RND(10)+1 21 LET C=0 30 PRINT "I AM THINKING OF A NUMBER BETWEEN ONE AND TEN." 40 PRINT "CAN YOU GUESS MY NUMBER?" 41 LET C=C+1 50 INPUT G 60 IF G = A THEN GOTO 90 70 IF G < A THEN GOTO 100 80 IF G > A THEN GOTO 110 90 PRINT "YOU ARE CORRECT!" 91 PRINT...
Version =20 VersionRequired =20 Begin Form AllowFilters = NotDefault PopUp = NotDefault RecordSelectors = NotDefault MaxButton = NotDefault MinButton = NotDefault ControlBox = NotDefault AutoCenter = NotDefault NavigationButtons = NotDefault AllowDeletions = NotDefault CloseButt...
!-------------------------------------------------- !- Saturday, May 20, 2017 1:34:36 AM !- Import of : !- c:\src\zelch128\extras\gal.setup.prg !- Commodore 128 BASIC 7/7.1 !-------------------------------------------------- 1 U=PEEK(186):R$=CHR$(13):I=RND(-TI):GOTO100 2 PRINT#1,"p"CHR$(98)CHR$(I)CHR$(0)CHR$(0)...
DEFSTR Q DEFINT C-K, M-N OPTION BASE 1 '$DYNAMIC CLS INPUT "Введи первое число ", qm INPUT "Введи второе число ", qn m = VAL(qm): n = VAL(qn) DIM dm1(m) i = 1: j = 0 DO UNTIL i > m IF m MOD i = 0 THEN j = j + 1 dm1(j) = i END IF i = i + 1 LOOP DIM dm(j) FOR i = 1 TO UBOUND(dm) ...
1' ------------------------------------' 1' map 13000-13999 ' 1' -------------------------------------' 1 'mc=counter map 1 'mu=update map, nos dice que debemos de volver a cargar el archivo.bin del disco en el array (en la RAM)' 1' tx=Es el tile en el que está el player en el eje x 1 't0=tile sobre el...
' ' ' SUB Main FOR i = 0 TO 10 STEP 2 PRINT i * i END FOR FOR j = 0 TO 10 PRINT j * j * j END FOR FOR k = 0 TO 10 STEP -4 PRINT 77 * k END FOR END SUB
dbMemo "SQL" ="SELECT qry_rpt_Mo_Tr_Listing_Species_Detail.Unit_Code, qry_rpt_Mo_Tr_Listing_Spe" "cies_Detail.Visit_Year, qry_rpt_Mo_Tr_Listing_Species_Detail.Plot_ID, qry_rpt_Mo" "_Tr_Listing_Species_Detail.Transect, qry_rpt_Mo_Tr_Listing_Species_Detail.Area, " "qry_rpt_Mo_Tr_Listing_Species_Detail.PlantC...
10 :REM'QFIND5 Q-L/C Tank Circuit - 29 MAR 09, rev 17 SEPT 2010 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 CLS 80 COLOR 15,2 90 PRINT " Q Measurment - L/C Tank Circuit"TAB(57)"by George Murphy VE3ERP "; 100 COLOR 1,0:PRINT STRIN...
RANDOMIZE TIMER bb = 1: aa = 2 10 SCREEN 9 20 a = a + 1 30 IF a = 45000 THEN a = aa: b = bb: GOTO 50 40 GOTO 20 50 x = INT(640 * RND) 60 y = INT(350 * RND) 70 x = x + a 80 y = y + b 90 IF y >= 349 THEN b = -bb 100 IF x >= 640 THEN a = -aa 110 IF y <= 0 THEN b = bb 120 IF x <= 0 THEN a = aa 130 CIRCLE (x, ...
10 FOR I = 0 TO 10 20 PRINT RND(I) 30 NEXT I
dbMemo "SQL" ="SELECT tblProjects.ProjectID, tblLocations.StationID, tblLocations.[Station Name" "], tblVisits.START_DATE, tblCharacteristics.DISPLAY_NAME, tblResults.DETECTION_C" "ONDITION, tblResults.RESULT_TEXT, tblResults.LAB_REMARKS, tblResults.RESULT_COMM" "ENT, tblVisits.VISIT_COMMENT, tblResults.VA...
'$DYNAMIC DEFINT A-Z DECLARE SUB Cave.Names.Init (CaveList() AS STRING) DECLARE SUB Date.Init () DECLARE SUB TimeDisplay () DECLARE SUB Bar.Title (Text AS STRING, X%, Y%, Length%) DECLARE SUB Font.Regular (Text$, X%, Y%, col%) DECLARE SUB Help () DECLARE SUB KeyGet () DECLARE SUB Wumpus.Draw () DECLARE SUB Communicat...
Version =20 VersionRequired =20 Begin Report LayoutForPrint = NotDefault DividingLines = NotDefault AllowDesignChanges = NotDefault DefaultView =0 TabularCharSet =186 DateGrouping =1 GrpKeepTogether =1 PictureAlignment =2 DatasheetGridlinesBehavior =3 GridY =10 ...
10 REM lineare Regression 20 CLEAR:GOSUB 410:REM Initialisierung 30 WHILE:REM Hauptmen 40 CLS:USING:USING$:PRINT cur_off$ 50 PRINT ' ' rev_on$ ' lineare Regression ' rev_off$ 60 PRINT ' V. 1.00' 70 PRINT ' ' CHR$($BD)' J.Starzynski 1990/93' 80 PRINT:PRINT:PR...
#COMPILE EXE #DIM ALL %TRUE = -1 %FALSE = 0 #INCLUDE "PB_FileHandlingRoutines.inc" $MyFile = "MyFile.txt" $OutputFile = "OutputFile.txt" TYPE udtUsers strForeName AS STRING * 50 strSurname AS STRING * 100 strAddress AS STRING * 200 strTelephone AS STRING * 20 strEyeColour AS STRING * 10 strBloo...
DECLARE SUB ChaosRealm () DECLARE SUB WoefulEscarad () DECLARE SUB Azzagrat () DECLARE SUB TwelveTrees () DECLARE SUB Fights () DECLARE SUB BrokenReach () COMMON SHARED MolyDead, RM, Sword, Talked, HP, Captured, Level, TIME, MaxHp, SonADead, RedShroud, MolyAppeared, Talked1, BlowUp, Free, Desc, Looked, Item, KeyTouched...
10 REM TEST TARGET LINE NUMBER PRECHECK 20 PRINT "START PROGRAM" 80 GOTO 100 90 PRINT "END PROGRAM" 99 END
def fnkalimat$(master$,start%,stops%) fnkalimat$ = mid$(master$,start%,stops%-start%+1) end def def fninstrrev(start%, sumber$, ygdicari$) local a% for a% = start% to 1 step -1 if mid$(sumber$, a%, 1) = ygdicari$ then fninstrrev = a% exit def end if next a% end def def fnnamadasar$(any$) local slash% sl...
#----------------------------------------------------------------------- # G R A P H T O O L #----------------------------------------------------------------------- #.m !******************************************************************************* Image tool, facility=graph, short_n...
REM Program Data Mahasiswa CLS PRINT "Masukan Data Diri Anda !": FOR I = 1 TO 3 INPUT "NPM : ", NPM$(I) INPUT "Nama : ", NAMA$(I) INPUT "Kelas : ", KELAS$(I) INPUT "Nilai 1 : ", A INPUT "Nilai 2 : ", B INPUT "Nilai 3 : ", C LET Rata(I) = (A + B + C) / 3: NEXT I PRINT "====================...
Version =20 VersionRequired =20 Begin Report LayoutForPrint = NotDefault AllowDesignChanges = NotDefault DefaultView =0 TabularFamily =0 DateGrouping =1 GrpKeepTogether =1 PictureAlignment =2 DatasheetGridlinesBehavior =3 GridX =24 GridY =24 Width =14970 DatasheetFontHei...
10 CLEAR3000:DIMA$(9) 20 CMD"T":PRINT"PREPARE INPUT DATA TAPE AND PRESS PLAY" 30 FORJ=1TO4:L$=RIGHT$(STR$(J),1) 40 AN$="LEVEL"+L$ 50 OPEN"O",1,AN$ 60 FORI=1TO9 70 INPUT#-1,A$(I):PRINTLEN(A$(I)); 80 PRINT#1,A$(I) 90 NEXTI 100 CLOSE1:PRINTAN$" COMPLETE" 110 NEXTJ:END
100 rem ****** mininec(3) ********** NOSC code 822 (jcl change 9) 11-26-86 101 rem Original by J.C.Logan & J.W.Rockway @ Navel Ocean Systems Center 102 rem Converted for Chipmunk Basic 3.6.8 103 rem 2019-10-21 by rhn@nicholson.com 105 print "mininec3 v.05 for Chipmunk Basic" 104 rem 110 defint i,j,k,n 120 dim k(6,2...
10 DATA &B00000001,&B10000000 30 LPRINT CHR$(27);"T16"; 'Команда устранения пробелов между строками 40 FOR I=1 TO 2 50 LPRINT CHR$(27);"S0200";:LPRINT CHR$(255);:READ A 80 LPRINT STRING$(198,CHR$(A));:LPRINT CHR$(255) 100 NEXT I 
0 REM Show off the time-based interrupts 10 ONTIME 5, 1000 20 TIC 1 : REM set it ONTIME 30 FOR t=1 TO 400 : NEXT t : REM Time delay 40 ?"LOOP" 50 GOTO 30 1000 REM here after 5 seconds 1010 ?"** 5 second interrupt **" 1015 FLFP 000 1020 LIO : TIC 1 : RETI
10 INPUT "Номер строки";N 20 INPUT "Номер столбца";T 30 OUT &HAA,INP(&HAA) AND &HF0 OR N 40 B=((INP(&HA9) AND 2^T)=0) 50 IF B THEN PRINT "Клавиша нажата":END 60 GOTO 30 
10 REM FINITE STATE MACHINE 20 LET MS=1: REM MACHINE STATE 30 REM 1=READY, 2=WAITING, 3=DISPENSE, 4=REFUND, 5=QUIT 40 : 50 REM MAIN LOOP 60 ON MS GOSUB 1000,2000,3000,4000,5000 70 GOTO 50 80: 1000 REM READY 1010 PRINT "MACHINE IS READY" 1020 PRINT "PRESS D-ISPENSE OR Q-UIT" 1030 INPUT KP$ 1040 IF KP$ = "D" THEN MS=2: G...
DECLARE SUB where (d#, pants#) DECLARE SUB look (d#) DECLARE SUB lookat (d#) DIM level#(4, 4) CLS FOR c# = 1 TO 4 FOR b# = 1 TO 4 level#(b#, c#) = a# a# = a# + 1 NEXT NEXT PRINT "Save Mel Gibsons Testicles" PRINT "By: Jesse Donat, Andrew Gross, Jeff Forshee" PRINT "Testicles Provided by: Nick Miller" PRINT "" b# = 1: c...
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 rem Main game code GameStart COLUPF = $00 AUDV0 = 0 AUDV1 = 0 CTRLPF = $21 gosub Title bank3 rem call title screen gosub ClearPF rem clear playfield gosub MusicInit bank2 rem init music driver rem ---------------- Initialize variables health = 100 ballx = 0 ballhei...
10 print "hello world" 20 for i = 0 to 100 30 next i 40 goto 10
DECLARE SUB PInfor () DECLARE SUB CarteS () DECLARE SUB Gioco () DECLARE SUB CarteC () SCREEN 0 CLS DIM SHARED Carte(3) DIM SHARED a$(1) DIM SHARED a(1) DIM SHARED b(1) DIM SHARED c(1) DIM SHARED Info$(16) PInfor CLOSE Porta$ = "COM" + Info$(9) + ":4800," + Info$(6) + "," + Info$(7) + "," + Info$(8) + ",C...
'S-Edit ' 'By Elias York 'You may use this code freely as long as you give credit 'to Elias York. SCREEN 7, 0, 1 ON ERROR RESUME NEXT 'Main windows vars dx% = 10 'Main drawing window x. dy% = 10 'Main drawing window y. spaceing% = 7 'Main drawing window spaceing. LineColor% = 7 'Line color for divider. cx% = 100...
'********** DemoMisc.Bas 'Copyright (c) 1987 Brian Giedt 'Copyright (c) 1987 Crescent Software 'This program demonstrates some clever graphic techniques. The first demo 'shows Brian's multi-tasking technique that displays a text stream with word 'wrap, while continually flashing a border on the screen. The second ...
REM @english REM MULTI TASKING FOR DUMMIES (7) REM REM This example will show how to use multitasking to REM make a simple animation of various bats and boys on the REM screen. REM REM @italian REM USARE IL MULTITASKING CON UN ESEMPIO (7) REM REM Questo esempio mostrerà come usare il multitasking per REM rea...
10 MEMORY 23499:' ASSEMBLING OPTION =0 20 MODE 0: DEFINT A-Z: CALL &6B78:' install RSX 21 ENT 1,10,100,3 30 ON BREAK GOSUB 320 40 CALL &BC02:'restaura paleta por defecto por si acaso 50 INK 0,0:'fondo negro 60 FOR j=0 TO 31:|SETUPSP,j,0,0:NEXT:|3D,0:'reset sprites 70 |SETLIMITS,0,80,0,124: ' establecemos los limites ...
10 :REM'ZEPP - end fed multiband antenna - 02 FEB 08 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 CLS 80 COLOR 15,2,0 90 PRINT " ZEPP END-FED MULTBAND ANTENNA"TAB(57)"by George Murphy VE3ERP "; 100 COLOR 1,0:PRINT STRING$(80,223); 1...
Attribute VB_Name = "modFileInUse" ' modFileInUse ' Tests if a file is currently open ' From http://vbnet.mvps.org/index.html?code/fileapi/createfile_inuse.htm Option Explicit Private Const GENERIC_READ As Long = &H80000000 Private Const INVALID_HANDLE_VALUE As Long = -1 Private Const OPEN_EXISTING As Long = 3 Privat...
CLEAR M, N CLS : SCREEN 13 LOCATE 23, 17: COLOR 15: PRINT "LOADING... " 20 A$ = "seal10.pic ": GOSUB 20000 25 LOCATE 20, 1 20000 OPEN A$ FOR INPUT AS #1 20005 INPUT #1, PART$ 20007 INPUT #1, MAXCOL 20010 INPUT #1, XSIZE: INPUT #1, YSIZE 20020 IF EOF(1) THEN GOTO 20080 20030 INPUT #1, TEMP1: C = TEMP1 / 1000: ...
Version =20 VersionRequired =20 Begin Report LayoutForPrint = NotDefault DividingLines = NotDefault AllowDesignChanges = NotDefault DefaultView =0 TabularCharSet =204 DateGrouping =1 GrpKeepTogether =1 PictureAlignment =2 DatasheetGridlinesBehavior =3 GridX =24 ...
DIM Title AS STRING DIM x AS INTEGER DIM y AS INTEGER DIM Answer AS INTEGER CLS Title = "Tutorial 5" x = 50 y = 25 Answer = x + y PRINT Title PRINT Answer
'********** 3DLine.Bas - subprogram to draw a single line 'Copyright (c) 1987 Brian Giedt 'Copyright (c) 1987 Crescent Software DEFINT A-Z 'This DECLARE statement is for QuickBASIC 4.0 - See DEMOGPAK.BAS DECLARE SUB FillPoly (a%, b%, c%, d%, e%, f%, g%, h%, Colr%) '$INCLUDE: 'Common' SUB PlotLine3 (X, Y, Z!, ZOld...
\***************************************************************************** \***************************************************************************** \*** \*** FILE HANDLING FUNCTIONS SOURCE CODE \*** \*** FILE TYPE: DIRECT \*** \*** REFERENCE: CCSTSFUN.BAS...
10 :REM'ZOSTEPUP - Folded Dipole Zo Step-up Ratios - 20 NOV 96 rev.13 APR 97 20 IF EX$=""THEN EX$="EXIT" 30 CLS:KEY OFF 40 COLOR 7,0,1 50 U$="####.##" 60 GOTO 190 70 :REM' 80 :REM'.....clear bottom of screen 90 VIEW PRINT LN TO 24:CLS:VIEW PRINT:LOCATE LN 100 RETURN 110 :REM' 120 BEEP:LN=CSRLIN:PRINT :COLOR 0,7 130 PR...