text
stringlengths
7
5.36M
2 ! & ! Program name: sort Compiled with SCALE 0 on V07.0 & ! Decompiled on 24-Nov-16 at 02:11 AM 5 ! 8 V$=SYS(CHR$(6%)+CHR$(-21%)) & \ D9$="" 10 ON ERROR GOTO 100 & \ V$=SYS(CHR$(7%)) & \ L1%=INSTR(ASCII(V$)+1%,V$,CHR$(13%)) & \ GOTO 50 IF L1%=0% & \ V$=CHR$(L1%)+RIGHT(V$,2%) & \ V1$=SYS(CHR$(8%)+...
2 REM A MICROSOFT WIN98 QBASIC PROGRAM BY A. J. YLIKOSKI 10 REM HOOSIANNAH BY G. J. VOGLER 12 REM WITH THE MICROSOFT WIN98 QBASIC PLAY COMMAND 20 CLS 22 PRINT: PRINT 30 PRINT TAB(30);"HOOSIANNAH, SON OF DAVID!!" 35 PLAY "O2" 40 FOR I% = 1 TO 2 45 FOR J% = 1 TO 2 50 PLAY "L8 D. L16 C L4 < B > D G L8 B B L4 B...
REM EXTERNAL INTEGRATION CALL MACHINE LANGUAGE IN BINARY FILE USING STACK REM REM This small example explains how to invoke external REM machine language, loaded from a binary file REM on the system into a specific location. The external machine REM routine will receive parameters from stack and store the resul...
RANDOMIZE TIMER SCREEN 12 DIM terrain(50, 50) DIM road(50, 50) DIM inrange(50, 50) DIM inrangech(50, 50) DIM xc(8) DIM yc(8) xc(1) = 0 xc(2) = 1 xc(3) = 1 xc(4) = 1 xc(5) = 0 xc(6) = -1 xc(7) = -1 xc(8) = -1 yc(1) = -1 yc(2) = -1 yc(3) = 0 yc(4) = 1 yc(5) = 1 yc(6) = 1 yc(7) = 0 yc(8) = -1 range = 1 FOR i = 1 TO 50...
5 rem *** just plain nuts *** 10 for m = 0 to 24 : poke 54272 + m,0 : next 20 m = 54272 30 poke m + 24,15 40 poke m + 5,16: poke m + 6,255 50 forz = 1 to 15 60 poke m + 1 ,rnd(z)*225 + 20 70 poke m + 4,17 80 for k = 1 to 4 : next k 90 poke m + 4,32 100 next z 200 c = c + 1 : if c = 25 then 500 210 goto 50 500 poke m + ...
0001 REM Copyright 2012 Lexi Robinson 0001 REM 0001 REM Licensed under the Apache License, Version 2.0 (the "License"); 0001 REM you may not use this file except in compliance with the License. 0001 REM You may obtain a copy of the License at 0001 REM 0001 REM http://www.apache.org/licenses/LICENSE-2.0 0001 REM 000...
5 ' ** CALENDAR III - BY BOB LAVINE (C) JULY 1987 ** 10 POKE65497,0:RGB:WIDTH80:PALETTE0,0:PALETTE8,0:PALETTE9,18:PALETTE10,27:PALETTE11,63:PALETTE12,60:PALETTE13,54:PALETTE14,61:PALETTE15,37:CLS1 15 CLEAR5000:DIMA(12),A$(12),B$(7),MO(250),DA(250),YR(250),C$(250),E$(100),V$(250),G2(30),G3(30):N=0:POKE150,7 17 ON ERR G...
10 PRINT "INTEGRATION: SIMPSON'S RULE" 20 PRINT 30 PRINT "SELECTION: 1=KNOWN FORMULA, O=UNKNOWN FORMULA"; 40 INPUT S 48 REM - IF FUNCTION IS KNOWN ENTER AT LINE 50 (DEFFNC(x)="FUNCTION") 49 GOTO 60 50 PROC C(X):RETURN @X 60 PRINT "LOWER, UPPER LIMIT OF INTEGRATION"; 70 INPUT A,B 80 PRINT "INCREMENT OF X"; 90 INPUT X1 9...
5 print 234 10 print 123 14 print 44444 16 print 88888 20 goto 10
5 rem *** requires simons' basic to run *** 10 colour 3,0:hires 1,0:multi 8,3,6 20 circle 65,100,10,16,2 30 paint 65,110,3 40 line 55,100,40,80,3 160 pause 20
atom=H contraction shell=S num_primitives=1 num_coefficients=1 13739.0854166734 1.0000000 contraction shell=S num_primitives=1 num_coefficients=1 7016.36109438299 1.0000000 contraction shell=S num_primitives=1 num_coefficients=1 3583.15866840946 1.0000000 contraction shell=S num_primitives=1 num_coefficients=1 1829.869...
' Rudolf Infrared Program ' For PICAXE-08M ' LDR on pin 1 ' Infrared sensor on pin 3 ' LEDs on pins 0 (nose) and 4 (eyes) ' Piezo sounder on pin 2 ' ***** main loop ***** ' wait until infrared signal main: infrain2 ' ***** play tune ***** 'debug infra ' optional display on screen for testing ' play tune depen...
DECLARE SUB TITLE () DECLARE SUB SHOW.SCORES (L%, H%) DECLARE SUB MIDDLE2 (row%, Text$) DECLARE SUB SORT.SCORES () DECLARE SUB SAVE.SCORES () DECLARE SUB WORD (PROMPT$, VAR$) DECLARE SUB CHECK.SCORES () DECLARE SUB MIDDLE (row%, Text$) DECLARE SUB FORWARD () DECLARE SUB MESSAGE (M$, OK$) DECLARE SUB SHOW.LEVEL () DECLA...
0 LOMEM: 24576 100 REM <CTRL-J><CTRL-J>PROGRAM TITLE<CTRL-J> 110 GOTO 400 200 HTAB (22 -( LEN(H$)/2)): PRINT H$: RETURN 300 VTAB 7:H$ = "G R A N D A P P L E C L O C K": GOSUB 200 310 VTAB 11:H$ = "BY BILL SMITH": GOSUB 200: RETURN 400 POKE 768,173: POKE 769,48: POKE 770,192: POKE 771,136: POKE 772,208: POKE ...
SUB DrawBattleCave SCREEN 7, 0, 7, 0 LINE (0, 0)-(319, 50), 6, BF LINE (0, 51)-(319, 199), 6, BF cntr = 1 FOR lookreal = 50 TO 199 cntr = cntr + 1 LINE (0, lookreal + 1)-(319, lookreal + cntr), 14, BF lookreal = lookreal + cntr NEXT END SUB SUB DrawBattleField SCREEN 7, 0, 7, 0 LINE (0, 0)-(319, 50), 11, B...
CLS SCREEN 9, 9 PALETTE 1, 0 COLOR 14, 1 DATA "COM CERTEZA","E DA°?","ERA PRA RIR?" DATA "CONCORDO","SIM","NéO","CLARO!"," DATA "OK", "CERTO!", "VOCą QUE SABE..." DATA "ź MESMO?!","REPITA O QUE DISSE" DATA "QUE INTERESSANTE!","VOCą ACHA?" DATA "ISSO PREOCUPA VOCą?","AH....","ISSO ...
1 %TITLE "USER DEFINED REPORT TABLE" %SBTTL "GL_MAIN_VENCOL" %IDENT "V3.6a Calico" FUNCTION LONG GL_MAIN_VENCOL(CDD_WINDOW_CDD SMG_WINDOW, LONG MOPTION, & LONG MLOOP, LONG MFLAG, STRING MVALUE) ! ! COPYRIGHT (C) 1988, 1989 BY ! ! Computer Management Center, Inc. ! Idaho Falls, Idaho. ! ! This software is ...
'============================================================================ ' To: ALL Number: 58 Refer: 0 ' From: JEAN-SEBASTIEN CARLE Conference: QUIK_BAS -Qui (298) ' Date: 05-11-99 03:04 BBS Name: YE OLDE PAWN SHOPPE ]I[ 'Subject: On Error ...
DECLARE FUNCTION NOD% (m%, n%) DEFSTR Q DEFINT M-N CLS DO PRINT "Введите числа" INPUT "1) ", qn INPUT "2) ", qm n = VAL(qn): m = VAL(qm) LOOP WHILE n = 0 OR m = 0 PRINT "Наибольший общий делитель чисел "; qn; " и "; qm; " равен "; NOD(m, n) FUNCTION NOD% (m%, n%) DO IF m% > n% THEN m% = m% - n% IF n% > m% THEN n% = n%...
rem tests the goto statement 10 goto 50 20 goto 40 30 goto 60 40 goto 30 50 goto 20 60 let c = 108 70 print c; "\n"
4 SCREEN 2 ' View port sized to proper scale for graph: VIEW (20, 2)-(620, 172), , 1 CONST PI = 3.141592653589# ' Make window large enough to graph sine wave from ' 0 radians to 2ã radians: WINDOW (0, -1.1)-(2 * PI, 1.1) Style% = &HFF00 ' Use to make dashed line. VIEW PRINT 23 TO 24 ...
10 DEFDBL A-Z:DEFINT C,I,J:S=0:C=0:DIM D(1024) 12 PRINT "Input Numbers (Input 'x' to end):" 20 WHILE 1:INPUT "> ",S$:IF S$="x" THEN GOTO 100 30 V=VAL(S$):D(C)=V:S=S+V:C=C+1 40 IF C=1 THEN MIN=V:MAX=V ELSE IF V<MIN THEN MIN=V ELSE IF V>MAX THEN MAX=V 50 WEND 100 PRINT "CNT";C:PRINT "SUM";S:PRINT "AVG";S/C:PRINT "M...
1 %TITLE "Verify W-2 Tape" %SBTTL "PR_SPEC_TAX_VERIFY_2000" %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...
10 REM 'NEXT' TEST PROGRAM 20 FOR X=1 TO 4 30 PRINT X, 40 NEXT X 50 PRINT "THE 'NEXT' STATEMENT PASSED THE TEST." 99 END
Version =20 VersionRequired =20 PublishOption =1 Checksum =-2056523891 Begin Form RecordSelectors = NotDefault AutoCenter = NotDefault NavigationButtons = NotDefault AllowDeletions = NotDefault DividingLines = NotDefault FilterOn = NotDefault AllowDesignChanges = NotDefault DefaultView ...
Version =20 VersionRequired =20 Begin Form DividingLines = NotDefault AllowDesignChanges = NotDefault DefaultView =0 PictureAlignment =2 DatasheetGridlinesBehavior =3 GridY =10 Width =6009 DatasheetFontHeight =11 ItemSuffix =19 Right =25080 Bottom =12120 DatasheetGridlin...
SCREEN 12 FOR i = 0 TO 15 COLOR i PRINT i NEXT i
'Created By Jake Ayoub 6/3/2021 'Updated 6/11/2021 'This function to break complied data and migrate data to the designated worksheet Sub data_organizer() Dim col_rng As String Dim boring_filter As String Dim existing_Sheet As String Dim date_col As String Dim date_rng As Stri...
10 MODE1 20 PR=10:LD=0 30 GOSUB 950 40 GOTO 1080 50 GRAV=0.1:LD=0:DP1=8:DP2=8:BP1=5:BP2=5:WP1=3:WP2=3 60 X1=RND(400)+100:X2=RND(400)+550 70 Y1=1000:Y2=1000 80 H=RND(200)+150:IH=0 90 CLS:CLG 100 GCOL 0,3 110 IHS=RND(100) 120 FOR K=1 TO 1000 STEP 3 130 IF K>=X1-1 AND K<=...
60000 input "enter start, increment";s,i 60010 print "{clear}{down*2}"; s;: poke 204,0 60020 get x$: if x$="" goto 60020 60030 print x$;: if asc(x$)<>13 goto 60020 60040 print "s=" s+i ":i=" i ":goto60010": print"{home}"; 60050 poke 631,13: poke 632,13: poke 198,2: end
CHDIR ".\programs\samples\pete\su2" ' Interesting facts ' Programmed on windows 95 that runs at 50-60 Mhz ' Had to remake all movement just for the bullets ' listen to music while programming ' All remade in a few hours( don't know how long, just one afternoon-not that long) ' Made BY me - Nixon ' Rewrite most...
INSTALL "C:/Users/d_dud/source/repos/PiBasic/V2/test/Demos/Perlin.bas" DEFPROCCreateTerrain(width%, depth%, scale_x_in, scale_y_in, scale_z_in, grass%, rock%, snow%, rock, snow, flat) PRINT "Creating terrain, may take a little while..." LOCAL scale_x = scale_x_in / width% LOCAL scale_y = scale_y_in / width% LOCAL ...
5 a$="0123456789abcdef" 10 print"{clear}" 15 poke 198,0 20 input"load program";l$:if left$(l$,1)="y" then gosub 1000:goto 40 30 input"save program";s$:if left$(s$,1)="y" then gosub 2000 40 input"starting location";sl 50 printsl;:input"hex(2) digits";h$ 60 if h$="end" then 200 70 for a=1 to 16:b=a-1:if left$(h$,...
Version =20 VersionRequired =20 Begin Form RecordSelectors = NotDefault ControlBox = NotDefault NavigationButtons = NotDefault DividingLines = NotDefault AllowAdditions = NotDefault DataEntry = NotDefault DefaultView =0 ScrollBars =0 ViewsAllowed =1 TabularFamily =0 BorderSt...
5 REM Pointless colours thing 10 FOR a=0 TO 7 STEP 2 20 POKE USR "P"+a,BIN 10101010 30 POKE USR "P"+(a+1),BIN 01010101 40 NEXT a 50 FOR x=0 TO 9 60 FOR y=0 TO 9 70 PRINT AT x,y; PAPER 6; INK 2;CHR$ 159 80 NEXT y 90 NEXT x 100 FOR x=0 TO 9 110 FOR y=11 TO 20 120 PRINT AT x,y; PAPER 1; INK 2;CHR$ ...
10 POKE 53280,6: POKE 53281,6 20 GOSUB 2200 : rem init SID 30 GOSUB 2600 : rem Intro 40 DIM R(4),S(7,7):G=-1:R(0)=-99 50 GOSUB 2400 : rem Prepare/init board 60 GOSUB 3000 : rem POKE the ML code 65 PRINT "{light blue}{clear}": XU=0: YU=2 : SM = 1024 : QM = 55296 70 GOSUB 2000 : rem DRAW BOARD 80 GOSUB 140...
=INT(ALEATÓRIO()*10000)
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...
DIM Num1 AS SINGLE DIM Num2 AS SINGLE DIM Sel AS STRING DO CLS INPUT "Enter First Number: ", Num1 INPUT "Enter Second Number: ", Num2 PRINT DO PRINT "A) Add" PRINT "D) Divide" PRINT "M) Multiply" PRINT "S) Subtract" INPUT "Enter Selection: "...
1 m=9000 10 dim a$(m) 20 print "freier stringspeicher: " fre(0) 30 b$=chr$(65) 40 print "array setup ..." 50 for i=0 to m : a$(i)=b$: next 60 print "garbage collection ..." 70 ti$="000000" 80 print fre(0) "bytes frei" 90 print "dauer (hhmmss): " ti$ " /" int(ti/3600+1) "minuten"
10 SCREEN 1 g = 150 i = 100 g1 = 200 i1 = 150 g2 = 10 i2 = 50 g3 = 50 i3 = 100 d = g q = i 20 i$ = INKEY$ IF i$ = CHR$(0) + "P" THEN i = i + 5: CLS IF i$ = CHR$(0) + "H" THEN i = i - 5: CLS IF i$ = CHR$(0) + "K" THEN g = g - 5: CLS IF i$ = CHR$(0) + "M" THEN g = g + 5: CLS IF i$ = "w" THEN i1 = i1 - 5...
DECLARE FUNCTION ERFCC! (X!) FUNCTION ERFCC (X) Z = ABS(X) T = 1! / (1! + .5 * Z) DUM = T * (-.82215223# + T * .17087277#) DUM = T * (-1.13520398# + T * (1.48851587# + DUM)) DUM = T * (.09678418# + T * (-.18628806# + T * (.27886807# + DUM))) DUM = -Z * Z - 1.26551223# + T * (1.00002368# + T * (.37409196# + DUM...
10 INPUT I 20 A$=STR$(I) 30 M=VAL(MID$(A$,2,1)) 40 FOR J=2 TO LEN(A$)-1 50 IFM<VAL(MID$(A$,J+1,1))THEN M=VAL(MID$(A$,J+1,1)):NEXTJ ELSE NEXTJ 60 PRINT M 
10 PRINT TAB(33);"BOMBARDMENT" 20 PRINT TAB(15);"CREATIVE COMPUTING MORRISTOWN, NEW JERSEY" 30 PRINT:PRINT:PRINT 100 PRINT "YOU ARE ON A BATTLEFIELD WITH 4 PLATOONS AND YOU" 110 PRINT "HAVE 25 OUTPOSTS AVAILABLE WHERE THEY MAY BE PLACED." 120 PRINT "YOU CAN ONLY PLACE ONE PLATOON AT ANY ONE OUTPOST." 130 PRINT "...
10 DEF FNQ%=1:DEF FNQ!=2:DEF FNQ=3:DEF FNQ$="4" 20 DEFINTQ:PRINT FNQ; 30 DEFSNGQ:PRINT FNQ; 40 DEFDBLQ:PRINT FNQ:PRINT 50 PRINT FNQ%;FNQ!;FNQ;FNQ$ 
SCREEN 13 CLS DIM a(1 TO 61)
DECLARE SUB Decifraggio () DECLARE SUB Ritorno () DECLARE SUB Informazioni () DECLARE SUB ErrorControl (Errore$) DECLARE SUB Segreti () DIM SHARED Parole$(1000) DIM SHARED Trad$(1000) TYPE Variabili s AS STRING * 10 Errore AS STRING * 255 aa AS INTEGER END TYPE ON ERROR GOTO Errori DO CL...
10 'Ввод двумерного массива MAS по столбцам 20 DIM MAS(30,20):FOR I=1 TO 20:FOR J=1 TO 30 30 INPUT MAS(J,I):PRINT MAS(J,I):NEXT J,I 
Attribute VB_Name = "Módulo43" Sub Macro26() Attribute Macro26.VB_ProcData.VB_Invoke_Func = " \n14" ' ' Macro26 Macro ' ' With ActiveSheet.QueryTables.Add(Connection:= _ "TEXT;C:\Murilo\MACRO\DSSAT\BATCH_DSSAT_TCH\IRRIGADO\OUTPUT\ESAL0101.OSU", _ Destination:=Range("$A$1")) .Name = "ESAL010...
DECLARE SUB COINS () COMMON SHARED dy, m$, C, B1, PB1, CC, PCC DECLARE SUB HOLE () DECLARE SUB HOMESCREEN () DECLARE SUB HOWTOPLAY () SCREEN 13 HP = 0 LINE1: P = 0 CLS CALL HOMESCREEN CLS CIRCLE (10, 130), 5, 3 PAINT (10, 130), 7, 3 PSET (13, 129), 11: PSET (12, 129), 11 LINE (11, 132)-(13, 132), 11 DIM A%(290) GET ...
100 INPUT"Задайте a,b,c";A,B,C 110 DISC=B*B-4*A*C:W=1/2/A:Z=-B/2/A 120 IF ABS(DISC)<1E-14 THEN PRINT"Двойной корень,x=";Z:GOTO 100'Условие ABS(DISC)<1.E-14 взято вместо условия DISC=0 с целью компенсации ошибок округления. 130 IF DISC<0 THEN 160 140 PRINT "Корни";Z+SQR(DISC)*W; 150 PRINT "и";Z-SQR(DISC)*W:GOTO 100...
10 REM This is a test 20 DATA 10,20,30 30 READ A,B,C 40 WRITE A,B,C 90 STOP 99 END
SCREEN 11 1 INPUT "Vilken massa ska planeten ha"; mass IF mass > 111 THEN PRINT "Lite stor kanske...": GOTO 1 IF mass < 11 THEN PRINT "Det var en g†ng en „rta...": GOTO 1 5 INPUT "M„tare(P/A)"; mezz$ IF NOT UCASE$(mezz$) = "A" AND NOT UCASE$(mezz$) = "P" THEN GOTO 5 7 INPUT "Trace(P/A)"; Trace$ IF NOT UCASE$(Tra...
10 FOR I = 1 TO 10 20 PRINT "HELLO WORLD" 30 NEXT I 40 END
1 rem using non-maskable interrupts with basic 2 rem to provide completely regular timing 3 rem e.g. to play music notes display the 4 rem time, display game scores etc. 6 rem this version uses both timers of cia#2, 7 rem so delays can vary from few millionths 8 rem of second up to an hour or more. 10 rem this d...
10 INPUT "Masukkan nilai temperatur dalam derajat Fahrenheit: ", f 20 LET c = 5 / 9 * (f - 32) 30 LET r = 4 / 9 * (f - 32) 40 PRINT "Temperatur dalam derajat Celcius: "; c 50 PRINT "Temperatur dalam derajat Reamur: "; r 60 END
#PBFORMS CREATED V2.01 '------------------------------------------------------------------------------ ' The first line in this file is a PB/Forms metastatement. ' It should ALWAYS be the first line of the file. Other ' PB/Forms metastatements are placed at the beginning and ' end of "Named Blocks" of code that should ...
' Guessing game, for FreeBASIC, web: http://rudih.info DIM range AS INTEGER DIM guess AS INTEGER DIM numguess AS INTEGER DIM magicnumber AS INTEGER Dim x As String CLS PRINT "---Guessing game---" INPUT "Enter range (1-32000, e.g. 1000): ", range RANDOMIZE TIMER magicnumber = INT(RND * range) + 1 numguess...
Attribute VB_Name = "mGeometry" Option Explicit '#Requires '# Direct3DVertexBuffer8 '# That initD3D has been run '# Constant for untransformed and lit vertices - XYZ and DIFFUSE Public Const FVF_VERTEX = (D3DFVF_XYZ Or D3DFVF_DIFFUSE) '# Type for lit vertex Type VERTEX X As Single Y As Single Z A...
# 3D, Transient aquifer to demonstrate MNW1 package FREE Item 1: Options CONSTANT 1 Item 2: IBOUND, layer 1 CONSTANT 2 IBOUND, layer 2 999. Item 3: HNOFLO CONSTANT 100. Item 4: STRT, layer 1 CONSTANT 100. STRT, layer 2
1 %TITLE "Journal Order Entry" %SBTTL "MO_MAST_ORDERJOUR" %IDENT "V3.6a Calico" ! ! COPYRIGHT (C) 1990 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...
'Text Typer Engine, By Robert Shoemate 'Commands: 'COLOR, C :USAGE: DATA COLOR, C :C=1-15 Color Number -Changes Text Color 'XAXIS :USAGE: DATA XAXIS,X :X=1-25 -Changes The X Axis Location Of The Text 'YAXIS :USAGE: DATA YAXIS,Y :Y=1-80 -Changes The Y Axis Location Of The Text 'INVALID COMMAND SPACE :USAGE: DAT...
DECLARE SUB TestTX () DECLARE FUNCTION n$ (n%) DECLARE SUB TX (s AS STRING) DECLARE SUB DrawText(x as integer,y as integer,text as string) DATA &H50,&H53,&H56,&HBE,&H00,&H00,&H2E,&HC7,&H04,&H00,&H00,&HB8,&H00,&HDB,&HCD,&H2F DATA &H3C,&HFF,&H75,&H12,&H81,&HFB,&H50,&H54,&H75,&H0C,&HB8,&H11,&H00,&HCD,&H79,&H75 DATA ...
10 print"Free memory: ",fre(0) 20 print 30 print "Hello World:";rnd(0) 40 print "USR is supported, but doesn't output anything useful:",USR(10),"See?" 50 print abs(-123),abs(-222.334) 60 PRINT ATN(1),ATN(1)*4 ; π ; ATN(1)*4 - π 65 gurk=35:print gu,gurk 70 print ti,time 80 print ti$,time$ 90 PRINT EXP(1), LOG(10), LOG(1...
'************** PDQCAP.BAS - all-mode screen capture TSR program ' Copyright (c) 1991 Crescent Software ' Written by Nash Bly ' ' PDQCAP is a simplified PopUp TSR whose Hot Key is Alt-S. It captures ' Text, Hercules, CGA, EGA and VGA screens, saving them with BLOAD files. ' When the hot key is pressed, the...
'-(In this version 3, I've further compressed the code...to make it just 23 lines long; ' when it started out as being 118 lines long; in order to achieve this...; ' I've deleted: 'comments'/'white space'/'labelname/GOSUB/RETURN' block statements; ' used multi-line: 2 lines of code becoming 1 line, instead; -etc. ...
Operation =1 Option =0 Begin InputTables Name ="dboC8000Log" End Begin OutputColumns Alias ="Docket" Expression ="Val(Left([job title],6))" Expression ="dboC8000Log.[Job Title]" Expression ="dboC8000Log.[Timestamp Printing]" Expression ="dboC8000Log.[Timestamp Done Printing]" Alias ="PrintT...
Attribute VB_Name = "MOD_InternationalLanguage" Private Const DEFAULT_CHARSET = 1 Private Const SYMBOL_CHARSET = 2 Private Const SHIFTJIS_CHARSET = 128 Private Const HANGEUL_CHARSET = 129 Private Const CHINESEBIG5_CHARSET = 136 Private Const CHINESESIMPLIFIED_CHARSET = 134 Private Declare Function GetUserDefault...
'This version bypasses password requirement! COMMAND = val(CommandLine$) PRINT fileName$ PRINT " Tkn Distler(tm) " PRINT " By Tyler Minard" PRINT "" PRINT "-------------------------------------------------------" print "This is the DEV version. You can decode ALL tkn files" print "and are not P...
' imprime solicitudes de pedido DEFINT A-Z DECLARE SUB Espera () DECLARE SUB LeeEstado () DECLARE SUB Center (row, text$) DECLARE SUB Box (Row1%, Col1%, Row2%, Col%) DECLARE SUB BorraBox (Row1%, Col1%, Row2%, Col%) DECLARE SUB Termometro (va%, total%, edo%, text$, fila%, columna%) DECLARE SUB ImprimePedido ...
#COMPILE EXE #DIM ALL FUNCTION PBMAIN () AS LONG LOCAL MyTime AS IPOWERTIME LET MyTime = CLASS "PowerTime" LOCAL now AS QUAD MyTime.Now() MyTime.FileTime TO now #DEBUG PRINT FORMAT$(now, "###################") 'TRIM$(STR$(now, 18)) MyTime.NewDate(2010, 12, 29) MyTime.FileTime TO now #DEBUG PRINT F...
DECLARE SUB putcolour (x&, y&, forecolor&, backcolor&, page&) DECLARE SUB putcharonly (x&, y&, Char&, page&) DECLARE SUB RenderGlyph (renderchar AS LONG, cursorx AS LONG, cursory AS LONG) DECLARE SUB RenderScratch (scratchstring AS STRING, cursorx AS LONG, cursory AS LONG) DECLARE SUB EditCharTable (firstchar AS LO...
1 'PーxdRE<wTBP 2 O=#C04:I=0:K=0:M=9 3 S=I%8:A=PEEK(O+I):A=A-(1+(A>#AA))*#30:IFSV=A>>(7-S)|C:POKE#800+K,V:K=K+1 4 C=(A&(#7F>>S))<<(S+1):I=I+1:IFK<MGOTO3
ON ERROR GOTO ErrHandler DIM PIX(7682) SCREEN 2 CLS OUT &H3D9, 7 PAINT (319, 199), 3 OPEN "star.prn" FOR BINARY AS #1 'FOR A = 1 TO 35 'WHILE (ASC(INPUT$(1, 1)) <> 10) 'WEND 'NEXT GOSUB Search X = 0 Start: A$ = INPUT$(1, 1) A = ASC(A$) IF A = 255 THEN LINE (X, Y)-(X, Y + 7), 0: GOTO Skip IF A = 0 THEN GOTO Skip IF X >=...
' 3D wire cube v1.bas, SmallBASIC B+ ' From Simple_3D.bas copied 2015-04-23 ' Modified improved for Windows 7-64 and Bpf maxy=600: maxx=600 : dd=rad(10) d=100*(maxy/160):t=0:p=0 locate 0,90:? "press 0 to zero out rotations locate 1,90:? "press 1 or 2 = ccw, cw rotation on z axis locate 2,90:? "press 3 or 4 = rot...
2 REM GETTING STARTED WITH COLOR BASIC 3 REM BOUNCING BALL, P291 5 CLEAR 12 8 INPUT "BACKGROUND COLOR (1-8)";C 9 CLS(C) 10 X=13:Y=13 15 XM=20: YM=15 400 F=0 410 XT = X:YT = Y 420 X=X+XM:Y=Y+YM 430 TX=X:TY=Y:T1=XM:T2=YM 440 GOSUB 1000 450 X=TX:Y=TY:XM=T1:YM=T2 455 H=INT(XT/2)*2:V=INT(YT/2)*2 460 SET(H,V,C):SET(H+1,V,C) ...
Attribute VB_Name = "MOD_ReportAd" Option Explicit Public blnConnected As Boolean Public blGotResponse As Boolean Public strResponse As String Public g_strReportedAdURL_ahrefs As String Public g_strReportedAdURL_srcs As String Public g_strReportedAdURL_others As String Public g_strReportedAdBody ...
PRINT ENVIRON$("PATH")
Operation =1 Option =0 Begin InputTables Name ="tbl_LP_Intercept" End Begin OutputColumns Expression ="tbl_LP_Intercept.Intercept_ID" Expression ="tbl_LP_Intercept.Transect_ID" Expression ="tbl_LP_Intercept.Point" Expression ="tbl_LP_Intercept.Top" Expression ="tbl_LP_Intercept.Alive" Expre...
\******************************************************************************* \******************************************************************************* \*** \*** CSR ON ORDER FILE FUNCTIONS \*** \*** REFERENCE : ONORDFUN.BAS \*** \**********************************************************...
100 REM Program to demonstrate use of text in 110 REM medium-resolution graphics mode. 120 SCREEN 1,0 'Set medium-res color mode 130 COLOR 0,1 'Select palette 1 for color 140 CLS:KEY OFF 'Clear the screen 150 LOCATE 17,14 'Set location and 160 PRINT "MOVING LINE" ' print title...
CLS LOCATE 10, 20 COLOR 14 PRINT "Basic Dopes@ is proud to present!" LOCATE 11, 30 COLOR 13 PRINT "THE BARNEY SONG!" LOCATE 12, 20 COLOR 14 PRINT "Music & Program by Lori Toland" SLEEP 5 CLS PLAY "mb o3 l4 geg p4 o3 l4 geg p4 agfedef p4 l5 fg l4 c l6 c l4 cdefg p4 l4 g l6 dd l4 fedc" LOCATE 10, 30 COLOR 1...
' If statements allow "branching". ' The path of execution is based on some condition. ' Simplest form of IF statements (sqare brackets are around descriptions): ' ' IF ([condition]) THEN [do something] 'x > 1 'x = 5 'y <> 10 'z >= 14 ' General form of IF statements (sqare brackets are around descriptions): ' ' IF (...
10 ERASE 20 CLS 23 EXEC "WIFI","CHECK" 25 ? "Reset OK" 30 EXEC "WIFI","CHECK" 40 ? "OK" 50 EXEC "WIFI","RSS" 60 ? "OK" 65 N=RZ$(0) 68 ? N, "lines readed" 70 FOR I=1 TO N 80 ? RZ$(I) 90 NEXT 100 ? "Bye"
1 ' BTN SERVO 5 L=80:H=210:S=L 6 IF BTN()=0 THEN GOTO 6 7 LED 1 10 FOR S=L TO H STEP 20 20 PWM 5,S:WAIT 60 30 NEXT 40 FOR S=H-5 TO L STEP -5 50 PWM 5,S:WAIT 5 60 NEXT 70 WAIT 60:PWM 5,140 80 LED 0 90 GOTO 1
SUB events' Special Events IF realism > 0 AND year = 1862 AND month < 3 THEN COLOR 14: CALL clrbot PRINT "SPECIAL DEVELOPMENT : IRONCLAD ships now available"; IF noise > 0 THEN FOR k = 1 TO 5: SOUND 140, 1: SOUND 37, 1: NEXT k DO WHILE INKEY$ = "": LOOP EXIT SUB END IF IF randbal = 0 THEN EXIT SUB plus = difficult...
0 GOSUB950:DIMT(36,3),D(144),R(16,9,5),CL(6),A(50,2),B(50,5),I$,QU$ 1 DIMA,B,C,D,X,Y,L,TQ,UF,MC,RC,TT,T1,T2,LL,XC,YC,LC,QQ,ML,V1,V2,V3,V4,I,N2,N3,N4,N5,DI,VX,VY,FL,PK,T,P,M,N,Z,GP,GW,ZZ,CC 2 GOSUB200 3 GOSUB100:GOSUB300:GOSUB400:GOTO900 5 TQ=(Y*64)+(X*2)-66:IF (X<2ORX>13)AND(Y>3ANDY<6)THENTQ=TQ-V2 7 IF R(X,Y,0)=5THENTQ...
' Copyright (c) 1988, 1990 Crescent Software DEFINT I-N DEFDBL A-H, O-Z DECLARE FUNCTION ATAN3 (A, B) FUNCTION ATAN3 (A, B) STATIC ' Four quadrant inverse tangent function ' Input ' A = sine of angle ' B = cosine of angle ' Output ' C = angle ( 0 =< C <= 2 * pi : radians ) PIDIV2...
' ' SAMEGAME ' ACLS BGMPLAY 27 XMAX=15 YMAX=10 DIM SMAP[XMAX,YMAX] 'スプライト ノ マップ DIM PMAP[XMAX,YMAX] 'コマ ノ マップ MX=(400-XMAX*16)/2 'Xイチ ノ マージン MY=(240-YMAX*16)/2 'Yイチ ノ マージン DIM PS[3] 'シヨウスル コマ PS[0]=22 'エメラルド PS[1]=23 'ルビー PS[2]=24 'ダイヤモンド CS=0 'カーソル ノ スプライト バンゴウ CX=0 'カーソル ノ Xイチ CY=0 'カーソル ノ Yイチ GOSUB @INITMA...
'imprimir facturas al final del dia DEFINT A-Z DECLARE SUB LeeEstado () DECLARE SUB Visualiza () DECLARE SUB Center (row, text$) DECLARE SUB Box2 (Row1, Col1, Row2, Col2) DECLARE SUB Espera () DECLARE FUNCTION CheqDate (caden$, op%) DECLARE FUNCTION MeteDatoLetra$ (fila%, columna%, largo%, caden$, tr$) DECLARE...
dbMemo "SQL" ="SELECT tbl_Locations.Unit_Code, Year([Start_Date]) AS Visit_Year, tbl_Locations." "Plot_ID, tbl_Quadrat_Species.Plant_Code, tbl_Quadrat_Species.Q1_hm, tbl_Quadrat_" "Species.Q2_5m, tbl_Quadrat_Species.Q3_10m, tbl_Quadrat_Species.Average_Cover, tb" "l_Quadrat_Species.Q1_3m, tbl_Quadrat_Specie...
$regfile = "m16def.dat" $crystal = 8000000 Config Lcdpin = Pin , Db4 = Portc.3 , Db5 = Portc.2 , Db6 = Portc.1 , Db7 = Portc.0 , E = Portc.4 , Rs = Portc.5 Config Lcd = 16 * 2 Config Adc = Single , Prescaler = Auto Start Adc Config Timer0 = Timer , Prescale = 1024 On Ovf0 Timer0_isr Enable Timer0 Enable In...
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...
Attribute VB_Name = "modJrnlCol_Buttons" Option Compare Database Option Explicit Private Const THIS_NAME As String = "modJrnlCol_Buttons" 'VGC 09/02/2017: CHANGES! 'tblJOURNAL_FIELD DOESN'T GET AUTOMATICALLY UPDATED!!! ' ** Array: arr_varSpecPurp(). Private lngSpecPurps As Long, arr_varSpecPurp() As Vari...
Attribute VB_Name = "FINAN_ASSET_TA_TABLES_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. '***********************************************************...
DECLARE SUB SetParms () DECLARE SUB ScreenPocket (IO$) DECLARE SUB SetParm (P$) DECLARE FUNCTION Menu% () DECLARE SUB Warning () DECLARE SUB SaveParms () DECLARE SUB ReadParms () ON ERROR GOTO OOps TYPE ProgramParameters fore AS INTEGER: back AS INTEGER: warn AS INTEGER: END TYPE DIM SHARED Scr(3999) AS ST...
DECLARE CUSTOMTYPE LIBRARY FUNCTION MEM_MALLOC%& ALIAS malloc (BYVAL bytes as LONG) FUNCTION MEM_REALLOC%& ALIAS realloc (BYVAL src as _OFFSET, BYVAL size as LONG) SUB MEM_FREE ALIAS free (BYVAL off as _OFFSET) SUB MEM_MEMCPY ALIAS memcpy (BYVAL dest as _OFFSET, BYVAL src as _OFFSET, BYVAL bytes as LONG) ...
' ______ ' / \ ' / \ ' / \ ' / |\ /| / / | | _ \ ' / |/ / | / / ...
10 COLOR 6, 9 20 PRINT "Der Starter 1.0" 30 COLOR 2, 9 40 PRINT "Welches Programm starten?" 50 INPUT "", a$ 60 SHELL a$ 70 80 90 100 110 120 130 140 150 160 170 180 190 200 210 220 230 240 250 260 270 280 290 300
Version =20 VersionRequired =20 Begin Form DividingLines = NotDefault FilterOn = NotDefault AllowDesignChanges = NotDefault DefaultView =0 TabularCharSet =238 PictureAlignment =2 DatasheetGridlinesBehavior =0 GridY =10 Width =5805 DatasheetFontHeight =9 ItemSuffix =20 Le...