text stringlengths 7 5.36M |
|---|
1 rem Basic Memory Editor 1.0.1
1 rem - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1 rem This program "easily" lets you edit the memory's content
1 rem It's primary use is to enter put "asm" in the ram without a SD2IEC device
1 rem as they are a bit expensive and I'm already resorting to c... |
10 DIM ri$(6), r$(35), d(35, 6), v$(12), ob$(45), rn$(45), ob(45)
15 CLS
20 PRINT
25 PRINT
30 PRINT TAB(9); "Pacy-Face und seine Abenteuer";
35 PRINT
40 PRINT
45 PRINT
50 PRINT "Januar 1985, von Philipp Koehn geschrieben"
55 PRINT "PC Uebersetzung Dezember 1993 von Bob Newell"
60 PRINT " (mit ein paar klei... |
'$Id$
|
' Rui Branco - rmrbranco@gmail.com
'
title$ = "Hello World - plug-in made by you"
vers$ = "1"
'Function if the file does not exist terminating the process
FileToScan$=title$+".dat"
dim dir$(0, 0)
if fileExists(FileToScan$) then end
open title$+".dat" for output as #f
print #f, "stat"
... |
Attribute VB_Name = "mod_Func21"
Option Explicit
Private cn As Object
Public Function JustDoIt(ByRef objWebPool As Object, _
ByRef strPara As String) As String
On Error GoTo ChkErr
Dim varAry As Variant
Dim varPara As Variant
Dim varElement As Variant
Dim strC... |
Version =20
VersionRequired =20
Begin Form
RecordSelectors = NotDefault
AutoCenter = NotDefault
NavigationButtons = NotDefault
DividingLines = NotDefault
AllowDesignChanges = NotDefault
DefaultView =0
ScrollBars =0
TabularFamily =0
PictureAlignment =2
DatasheetGridlinesBehavior =... |
10 JMS F
20 PALETTE 12,63:PALETTE 13,0
30 PCLEAR 6
40 CLEAR 200,&H3FF0
50 INPUT"WHAT LEVEL";A$
60 PRINT"LOADING BLOCKS"
65 POKE &HFFA3,0
70 LOADM"GRBLOCK.BIN"
80 FOR X=1 TO 4:POKE &HFFA2,X
81 N$="LEVEL "+A$+".BI"+MID$(STR$(X),2,1)
82 PRINT N$:LOADM N$
83 NEXT X
100 LOADM"PRINT
101 POKE 150,7:JMS F
105 CLS
110 EXEC
|
10 OPEN"R",#1,"SFALDES.0"
20 FOR X=1 TO 72:READ DE$:FIELD#1,128 AS D$:LSET D$=DE$:PUT#1:NEXT X:CLOSE#1
100 DATA You are standing at entrance of old shack. To the West is a rocky path. A road goes north.
110 DATA You are inside the old shack. There is a door to the West.
120 DATA You are at the edge of a rock strewn pat... |
Version =20
VersionRequired =20
Begin Form
NavigationButtons = NotDefault
DividingLines = NotDefault
ScrollBars =2
GridX =20
GridY =20
Width =5555
ItemSuffix =15
Left =1050
Top =210
Right =7320
Bottom =6225
RecSrcDt = Begin
0x06fcb8b911cde140
... |
10 PRINT "PROGRAM FILE 6: PRINT-SEPARATORS, TABS,"
15 PRINT " AND STRING VARIABLES."
20 PRINT " ANSI STANDARD 6.2, 6.4, 9.4, 12.2, 12.4"
30 PRINT
40 PRINT "SECTION 6.1: SEMICOLON SEPARATOR WITH QUOTED STRINGS."
60 PRINT
70 PRINT " BEGIN TEST."
80 PRINT
90 PRINT " ... |
30 CLS
40 TW$=STRING$(32,CHR$(252)):PX=3:PY=3:TV=143
50 PRINT@160,CHR$(223);
60 PRINT@176,CHR$(128);
80 GOSUB 2000:GOSUB 3000
90 GOSUB 1200
1000 A$=INKEY$:IFA$=""THEN 1000
1048 OY = PY : OX = PX
1050 IF A$ = CHR$(10) THEN PY = PY + 1 : GOSUB 1100
1060 IF A$ = CHR$(94) THEN PY = PY - 1 : GOSUB 1100
1070 IF A$ = CHR$... |
atom=Li
contraction shell=S num_primitives=3 num_coefficients=1
3.0473270 0.0065550
0.6035790 -0.1404010
0.0691380 0.6237560
contraction shell=S num_primitives=1 num_coefficients=1
0.0265020 1.0000000
contraction shell=P num_primitives=3 num_coefficients=1
0.8371580 0.0435070
0.1719410 0.2296490
0.0520790 0.5629490
con... |
10 gosub370
!- 20 home [Apple]
!- 20 cls [BBC/ZX/TRS]
20 printchr$(147)
30 lets=30
40 print:print"morse tester"
50 print:print"what level ?"
60 print:print"(1=fast)"
70 print"(5=slow)"
80 inputp:letp=p*s
... |
10 PRINT TAB(26);"ACEY DUCEY CARD GAME"
20 PRINT TAB(15);"CREATIVE COMPUTING MORRISTOWN, NEW JERSEY"
21 PRINT
22 PRINT
30 PRINT"ACEY-DUCEY IS PLAYED IN THE FOLLOWING MANNER "
40 PRINT"THE DEALER (COMPUTER) DEALS TWO CARDS FACE UP"
50 PRINT"YOU HAVE AN OPTION TO BET OR NOT BET DEPENDING"
60 PRINT"ON WHETHER OR N... |
DIM fahr, celsius
DIM lower, upper, deta
lower = 0
upper = 300
deta = 20
fahr = lower
WHILE fahr <= upper
celsius = 5 * (fahr - 32) / 9
PRINT fahr; CHR$(9); INT(celsius * 10) / 10
fahr = fahr + deta
WEND
|
SUB MAIN
DIM ITEM(5) AS STRING
DIM R AS INTEGER
ITEM(1)="A"
ITEM(2)="B"
ITEM(3)="C"
ITEM(4)="D"
ITEM(5)="E"
R = SELECT("Select One - Not Cancellable", ITEM, FALSE)
PRINT R
R = SELECT("Select One - Cancellable", ITEM, TRUE)
PRINT R
PRINT "*** Finished ***"
END SUB
|
$CHECKING:OFF
SCREEN _NEWIMAGE(1280, 720, 32)
_DELAY .5
_SCREENMOVE _MIDDLE
DEFLNG A-Z
TYPE DataType
Word AS STRING * 25 'up to 25 letters in a word!
Value AS STRING * 26
END TYPE
REDIM Words(0 TO 30000) AS DataType
DIM Anagrams(0 TO 30000, 0 TO 10) AS LONG
DIM EndLine AS STRING, Endlength AS LONG
DIM t AS _... |
'BFASM.BAS -- Converts a BF program into an ASM source
'Combines +- and <> statements for a shorter program
'Standard I/O
DEFLNG A-Z
F$ = COMMAND$
IF F$ = "" THEN INPUT "Enter filename of BF source [.BF]: ", F$
F = INSTR(F$, "."): IF F = 0 THEN F$ = F$ + ".BF"
F = INSTR(F$, "."): FO$ = MID$(F$, 1, F) + "ASM"
PRINT "Wri... |
_TITLE "Siezure Machine"
SCREEN 0
WIDTH 128, 64
DO
FOR i = 1 TO 128
RANDOMIZE TIMER
tcolor = INT(RND * 30 + 1)
COLOR tcolor, 0
PRINT CHR$(219);
NEXT i
_DELAY .1
LOOP |
0 DIMK(255),A(7),O(7),D(7),T,P,A,B,C,D,F,K,X,Y,Z,M,E,J,R:M=16384:GOTO2000
1 RETURN
2 D=-1:K=K(PEEK(P-1)):ONKGOTO3,50,50,50,24,50,50,50,50,1,1:STOP
3 POKEP,B:P=P-1:POKEP,Y:SOUND40,1:B=143:POKEP,X:RETURN
5 POKEP,B:P=P-32+D:POKEP,X:B=143:GOSUB18:RETURN
6 POKEP,B:P=P+32+D:POKEP,X:B=143:GOSUB18:RETURN
7 POKEA(A),O(A):A(A)=A... |
10 PRINT "PROGRAM FILE 203: EFFECT OF ZONES AND MARGIN ON PRINT."
20 PRINT " ANSI STANDARD 12.4, 12.2"
30 PRINT
40 PRINT "THIS TEST IS CONCERNED WITH THE VARIOUS RULES GOVERNING THE"
50 PRINT "INTERACTION OF ZONE-WIDTH, MARGIN-WIDTH, COLUMNAR POSITION,"
60 PRINT "AND PRINT-SEPARATORS AS DESCRIBED IN THE STANDARD."
7... |
;winkel 1.0 ==0801==
4 rem leegmaken scherm
6 rem ================
8 x(2)=1000000:x(5)=x(2):x(8)=x(2)
10 print chr$(147)
14 rem laten neerdrukken van letters
16 rem =============================
20 read a,b
30 if a=0 then goto 60
40 poke a,b
45 for i=1 to 30:next i
50 goto 20
55... |
'This program created January 13 and 14, 2006 by Nathan Friend, age 14
'Press SHIFT + F5 to start program
DECLARE SUB presets ()
DECLARE SUB colorpick ()
DIM dots(49)
DIM SHARED c(24)
CLS
SCREEN 12
SLEEP 3
top1:
CLS
LOCATE 5, 2
INPUT "Would you like the circle to erase itself after it is done drawing? y/n... |
Operation =1
Option =0
Begin InputTables
Name ="tbl_VH_Intercept"
End
Begin OutputColumns
Expression ="tbl_VH_Intercept.Intercept_ID"
Expression ="tbl_VH_Intercept.Transect_ID"
Expression ="tbl_VH_Intercept.Point"
Expression ="tbl_VH_Intercept.Wood"
Expression ="tbl_VH_Intercept.WHeight"
Ex... |
Version =20
VersionRequired =20
Begin Report
LayoutForPrint = NotDefault
AllowDesignChanges = NotDefault
DefaultView =0
TabularFamily =1
DateGrouping =1
PictureAlignment =2
DatasheetGridlinesBehavior =3
GridX =24
GridY =24
Width =10395
DatasheetFontHeight =10
Left =735
... |
1 REM ..ROTATION..
10 CLEAR4
20 A=128;B=A*A;C=96
30 FOR X=0 TO A
40 S=X*X; %P=SQR(B-S); %I=-%P
60 DO %R=SQR(S+%I*%I)/A
80 %Q=(%R-1)*SIN(24*%R)
90 %Y=%I/3+%Q*C
95 FIF %I=-%P %M=%Y;GOTOb
100 FIF %Y>%M %M=%Y;GOTOa
105 FIF %Y>=%N GOTOc
110b%N=%Y
115a%Y=C+%Y
120 PLOT13,(A-X),%Y; PLOT13,(A+X),%Y
135c%I=%I+4; FUNTIL... |
10 OUT &HA0,7:OUT &HA1,8: A=INP(&HA2)
20 OUT &HA0,8:OUT &HA1,15:B=INP(&HA2)
30 OUT &HA0,6:OUT &HA1,26:C=INP(&HA2)
40 PRINT A;B;C
|
20 B=1000:D=1:Q=1:PRINT "Мы имеем";B;"монет":GOTO 110
30 I=I+1:PRINT I;"ВЗВЕШИВАНИЕ."
40 A=INT(B/3):PRINT "Разделим все оставшиеся монеты на 4 кучки по";A;",";A;",";A;"и";B-3*A-Q+D;"монет."
50 PRINT "Взвесим 2 кучки по";A;"монет."
60 PRINT "Если одна из них легче, то берем эту кучку монет и еще";B-3*A-Q+D;"монеты."... |
SCREEN 2
FOR m! = 10 TO 160 STEP 5
LINE (100, 100)-(m!, 150)
NEXT
|
1 %TITLE "Employee Master File Maintenance"
%SBTTL "PR_MAIN_DETAIL_EMP_QUERY_X"
%IDENT "V3.6a Calico"
FUNCTION LONG PR_MAIN_DETAIL_EMP_QUERY_X(CDD_WINDOW_CDD SMG_WINDOW, LONG MOPTION, &
LONG MLOOP, LONG MFLAG, STRING MVALUE)
!
! COPYRIGHT (C) 1987, 1988 BY
!
! Computer Management Center, Inc.
! Idaho Falls,... |
5 REM Taken from Usborne's 1982 book
6 REM "Computer Battlegames"
10 PRINT "TRAITOR'S CASTLE"
20 LET S=0
30 FOR G=1 TO 10
40 LET R$=""
50 LET T=INT(RND(1)*9+1)
60 FOR L=1 TO 9
70 IF L=T THEN LET R$=R$+"O"
80 IF L<>T THEN LET R$=R$+"."
90 NEXT L
100 PRINT R$,
110 LET I$=INKEY$(600)
130 IF VAL("0"+I$)=T THEN GOTO... |
a = 5
DO UNTIL a < 1
IF a >= 3 THEN
PRINT("a は3以上")
ELSEIF a = 2 THEN
PRINT("a は2")
ELSE
PRINT("Hello World")
ENDIF
a = a - 1
LOOP
END |
'********** GASGAUGE.BAS - subprogram displays a percent status indicator
'Copyright (c) 1992 Ethan Winer
DEFINT A-Z
DECLARE SUB GasGauge (Min, Max, Value, Wide, Colr)
SUB GasGauge (Min, Max, Value, Wide, Colr) STATIC
Row = CSRLIN 'retrieve the current cursor location
Column = POS(0) ... |
1 RANDOMIZE
5 PRINT CHR$(26):WIDTH 80
10 PRINT TAB(32);"ROULETTE":PRINT
20 PRINT TAB(15);"CREATIVE COMPUTING MORRISTOWN, NEW JERSEY"
30 PRINT:PRINT:PRINT
40 PRINT "ENTER THE CURRENT DATE (AS IN 'JANUARY 23, 1979') -";
50 INPUT D$,E$
1000 REM-ROULETTE
1010 REM-DAVID JOSLIN
1015 PRINT:PRINT
1020 PRINT "WELC... |
10 COLOR 15,4:SCREEN 4:SPRITE$(0)=STRING$(8,255)
30 PUT SPRITE 0,(200,100),15,0
40 ON SPRITE GOSUB 100
50 SPRITE ON
55 COLOR SPRITE$(0)=STRING$(8,&B00100001)
60 FOR X=0 TO 240:PUT SPRITE 1,(X,100),15,0:NEXT
90 GOTO 60
100 SCREEN 0:RETURN 10
|
CLS
SCREEN 12
INPUT "Number of points"; p
LET l = p 'number of points allowed
LET wi = 630 '620
LET hi = 470 '180
LET cx = wi / 2
LET cy = hi / 2
LET mx = wi / 100
LET my = hi / 100
DIM x(l, 2): DIM y(l, 2)
CLS 2
GOSUB 760
120 PRINT "Type 1 to Draw"
PRINT "Type 2 to View"
PRINT "Type 3 to Exit"
INPUT d
... |
'' Lemonade Stand converted to VT100 for Micromite
'' By Oldbitcollector and Mindrobots
'' Tested on Micromite Companion
'' Sept 15th, 2014
10 Dim W1(7),W2(7),W0$(7),WF(6),DF(7)
20 GoSub 1010
30 Randomize Timer
40 Rem set prices and max sales
50 COLOR 14,0:CLS:D=1000:PL=75 :PS=106:PC=98:MAX=100
60 F=14:B=0:S=0:L=0:C=0:... |
10 PRINT TAN(3.14159265 / 8)
|
1 %TITLE "Payroll Tax Register Report"
%SBTTL "PR_RPRT_TRN_TAX"
%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
... |
SUB MAIN
DIM STOP AS BOOLEAN
DIM A, R AS INTEGER
DIM TEMP AS DOUBLE
DIM ITEMS(2) AS STRING
ITEMS(1)="START"
ITEMS(2)="EXIT"
WHILE NOT STOP
R = SELECT("SELECT ACTION",ITEMS,FALSE)
IF R = 1 THEN
PRINT("WAIT...")
SLEEP 1000
TEMP = ROUND(RND(60)*6,2)
A = ALERT(STR$(TEMP),"DONE", "OK","","", TRUE)
... |
10 open2,2,0,chr$(8)+chr$(0)
15 rem input#2,a$:print"i:";a$:goto15
20 get#2,a$ : print a$;
30 get a$ : print a$; : if a$<>""then s$=s$+a$
40 if a$=chr$(13)then print#2,s$; : s$=""
50 goto 20 |
; pin 1 = Frequency change button
; pin 3 = Waveform change button
; pin 4 = LED
; b0 = waveform shape variable
; b1 = waveform frequency variable
; sine_pause = sine PAUSE variable
; sine_pause_modifier = sine PAUSE variable modIFer
; w3 = NSR PAUSE modIFier
; w4 = PVC pause modifier
; WARNING
; Each 16-b... |
1 %TITLE "Payroll W2 Register Report"
%SBTTL "PR_RPRT_W2REG"
%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
! t... |
10 cls
20 let x=10:let y=10
30 let a$=inkey$
40 if a$="" then goto 30
50 if a$="a" then let y=y-1
60 if a$="z" then let y=y+1
70 if a$="n" then let x=x-1
80 if a$="m" then let x=x+1
90 print tab(x,y);"*"
100 goto 30
|
1 %TITLE "Sales Analysis Broker Label Writer"
%SBTTL "SA_RPRT_BROKERLABEL"
%IDENT "V3.6a Calico"
!
! COPYRIGHT (C) 1991 BY
!
! Computer Management Center, Inc.
! Idaho Falls, Idaho.
!
! This software is furnished under a license and may be used and
! copied only in accordance with terms of such license and w... |
REM input This is a line of input
INPUT X$
REM input 123
INPUT "Integer", Y%
REM input 123.456
INPUT "Double", Z#
PRINT X$; Y%; Z#
REM input This is a line
LINE INPUT "Line: "; L$
PRINT L$
REM input This is another line
LINE INPUT ;"Line 2: "; L$
PRINT L$
REM input Last line
LINE INPUT L$
PRINT L$
REM output
?
... |
'
' MYCFG.BAS
' Llegeix tot el fitxer de configuraci¢
'
' Nota: Nom‚s serveix per el programador
'
' Tomeu Cap¢ Cap¢ 1995 (C)
'
'$INCLUDE: 'C:\FACT2\FONTS\STRUCTS.BI'
'$INCLUDE: 'CAMPS.BI'
DIM CFG AS CONFIG
DIM EMPR AS EMPRESA
OPEN "CONFIG.FAC" FOR RANDOM AS 1 LEN = LEN(CFG)
OPEN "EMPRESA.FAC" FOR RANDOM AS 2 LEN = L... |
1 'Example of TIME$ statement
10 TIME$ = "02:03:04"
20 PRINT TIME$(0)
30 DELAY 1
40 PRINT TIME$(0)
|
'client.bas 20.2.2011
'MUAGS / Markus Tolin
'--- DEFINATIONS ---
open "mesock32.dll" for dll as #me
GLOBAL connect
GLOBAL rec$
GLOBAL handle
GLOBAL text$
GLOBAL PlayerLocX
GLOBAL PlayerLocY
GLOBAL PlayerLocZ
GLOBAL cmd
GLOBAL dummy$
GLOBAL PORT
GLOBAL map$
GLOBAL maplist$
GLOBAL mapDir$
GLOBAL player... |
10 HOME
20 FOR CH=65+128 TO 69+128
30 FOR AD = 1024 TO 2047
40 POKE AD, CH
50 NEXT
60 NEXT
|
10 PRINT "PROGRAM FILE 51: ERROR - NEXT-STATEMENT WITHOUT A"
15 PRINT " MATCHING FOR-STATEMENT."
20 PRINT " ANSI STANDARD 11.2, 11.4"
30 PRINT
40 PRINT "SECTION 51.1: ERROR - NEXT-STATEMENT WITHOUT A"
50 PRINT " MATCHING FOR-STATEMENT."
60 PRINT
70 PRINT "THIS IS A TEST FOR A NON-STANDARD FEATURE OF MI... |
Version =20
VersionRequired =20
Begin Form
DividingLines = NotDefault
AllowDesignChanges = NotDefault
DefaultView =0
TabularCharSet =238
PictureAlignment =2
DatasheetGridlinesBehavior =3
GridX =24
GridY =24
Width =8820
DatasheetFontHeight =11
RecSrcDt = Begin
0x6019f... |
5 'from Lauwerier H., 1991. "Fractals Images of Chaos" Penguin 209p.
10 'Evolute Circle
20 'Name: UNWIND
30 SCREEN 12, 0, 0, 0: CLS : pi = 3.141593
40 WINDOW (-12, -9)-(12, 9)
45 COLOR 15: LOCATE 1, 1: PRINT "Evolute curve"
50 a = 1.2: 'radius of circle
60 COLOR 1: CIRCLE (0, 0), a: PSET (a, 0)
70 FOR n = 0 TO 100
75... |
1 %TITLE "Function to Enter a Date"
%SBTTL "ENTR_3DATE"
%IDENT "V3.6a Calico"
FUNCTION STRING ENTR_3DATE(SCOPE_STRUCT SCOPE, &
LONG XX_VDID, STRING OPT_CPOS, STRING OPT_PROMPT, &
STRING OPT_XDFLT, LONG OPT_FLAG, STRING OPT_XFORMAT, &
STRING OPT_DEFLT)
!
! COPYRIGHT (C) 1986 BY
! Computer Management Center... |
10 CLS
20 INPUT "Введи к-во студентов - ", ns
30 DIM s$(ns), oc(ns, 4), sr(ns)
40 PRINT "Введи результаты сессии:"
50 n = 0
60 FOR i = 1 TO ns
70 PRINT "Студент №"; i
80 INPUT "Ф.И.О.: ", s$(i)
90 FOR j = 1 TO 4
100 PRINT "Оценка по"; j; "экз.: ";
110 INPUT "", oc(i, j)
120 NEXT j
130 sr(i) = (oc(i, 1) + oc(i, 2) + oc(... |
30 INPUT "How many stars do you want: "; N
40 PRINT "*";
45 LET N = N - 1
50 IF N > 0 THEN GO TO 40
60 PRINT
130 PRINT "Goodbye "
140 STOP
|
DECLARE SUB DFUNC (X!(), DF!())
DECLARE SUB LINMIN (P!(), XI!(), N!, FRET!)
DECLARE FUNCTION FUNC2! (P!(), N!)
SUB DFPMIN (P(), N, FTOL, ITER, FRET)
ITMAX = 200
EPS = 1E-10
DIM HESSIN(N, N), XI(N), G(N), DG(N), HDG(N)
FP = FUNC2(P(), N)
CALL DFUNC(P(), G())
FOR I = 1 TO N
FOR J = 1 TO N
HESSIN(I, J) ... |
1 'Example of TROFF and TRON statements
10 TRON
20 IF A=0 THEN GOTO 40
30 B - 9
40 TROFF
50 C = 10
|
DECLARE SUB putsquare (num!, char$)
DECLARE SUB doturn ()
DECLARE SUB goturn ()
'Text Tic Tac Toe
'
'4/30/97 By: - Nick Kochakian -
'
'For people who can't get enough of it...
'
'This program is still buggy if you can fix some or all of them that would
'be great!
'
'If you have any comments, questions, or bug fixes ple... |
1 %TITLE "Equipment Ledger Close/Purge"
%SBTTL "EL_SPEC_PURGE"
%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
! the i... |
@ERASE
0 REM this is the base code for all the AIRcable OS products
0 REM we take the AIRcable SMD/Mini as our base device
0 REM let's reserve the first 30 lines for internal stuff
0 REM $1 is the version of the command line
1 0.7
0 REM defaults setting for mode
0 REM uncomment the one you want to use as... |
10 REM This is a test
15 DIM A(3)
20 DATA 10,20,30,40
25 FILES "output.txt"
30 ARR READ A
40 ARR WRITE #1;A
90 STOP
99 END
|
9 print "----------- XOR ----------"
10 print 0 xor 0
20 print 1 xor 0
30 print 0 xor 1
40 print 1 xor 1
50 print "-------- AND ----------"
60 print 0 and 0
70 print 1 and 0
80 print 0 and 1
90 print 1 and 1
100 print "---------- OR ---------"
110 print 0 or 0
120 print 1 or 0
130 print 0 or 1... |
SCREEN 12
a = 300
b = 200
x = 1
VIEW (0, 0)-(600, 400), 0
5 LINE (0, 0)-(600, 400), 0, BF
IF n = 1000 THEN
RANDOMIZE TIMER
g = INT(RND * 590) + 1
l = INT(RND * 390) + 1
END IF
LINE (g, l)-(g + 10, l + 10), 14, BF
IF n = 1000 THEN n = 0
n = n + 10
LINE (a - 10, b - 10)-(a + 10, b + 10), 2, B
LINE (a, ... |
100 dim c(50)
110 input s,nstop
120 for d = 1 to nstop
130 ia = -0.25*log(rnd(1))
140 a = a+ia
150 j = 0
160 j = j+1
170 if j = s+1 then k = k+1
180 if j = s+1 then 270
190 if a < c(j) then 160
200 x = -2.4*log(rnd(1))
205 sx = sx+x
210 c(j) = a+x
220 m = c(1)
230 for i = 2 to s
240 if c(i) < m then m = c(i)
250 next i... |
Attribute VB_Name = "Module1"
'Based upon software by Jan Axelson
'http://www.lvr.com/hidpage.htm
Option Explicit
Dim bAlertable As Long
Dim Capabilities As HIDP_CAPS
Dim DataString As String
Dim DetailData As Long
Dim DetailDataBuffer() As Byte
Dim DeviceAttributes As HIDD_ATTRIBUTES
Dim DevicePathName As String
Dim... |
10 CLS
20 OPEN "com1:9600,n,8,1,rs,cs,ds,cd,bin" AS 1
30 IF LOC(1) = 0 THEN GOTO 30
55 A$ = INPUT$(1,1)
60 A=ASC(A$)
65 A = A AND 127
70 PRINT A
120 GOTO 30
|
Version =20
VersionRequired =20
Begin Form
AllowFilters = NotDefault
PopUp = NotDefault
Modal = NotDefault
RecordSelectors = NotDefault
MaxButton = NotDefault
MinButton = NotDefault
AutoCenter = NotDefault
NavigationButtons = NotDefault
AllowDeletions = NotDefault
Di... |
1: REM ********************************************
2: REM t-Verteilungs-Simulation (unvollständig)
3: REM von Dietmar Schrausser (c)2014
4: REM ********************************************
5: CLS: PRINT „t-Verteilungssimulation“: Print „...“
10: CLEAR: DIM P(100)
20: FOR I=0 TO 100: P(I)=0: N... |
100 REM Program to demonstrate use of PSET & PRESET
110 REM in 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 FOR X=10 TO 300 'Draw moving line 291 times
160 PSET(X,10... |
5 for z = 54272 to 54296 : poke z,0 : next
10 m = 54272 : poke m + 24,15
30 poke m + 5,168: poke m + 6,169
40 poke m+12,88: poke m+13,89
50 poke m+19,88: poke m +20,89
60 read a,b,c,d,e,f,g
70 if a<0 then poke m + 24,0: end
80 poke m+1,a: poke m + 0,b
90 poke m + 8,c: poke m + 7,d
100 poke m+15,e: po... |
10 v=49152:poke 785,0:poke 786,192
20 read a:if a<256 then poke v,a:v=v+1:goto 20
30 print chr$(147);"floating point peek"
40 input "enter address (0 to quit)";a
50 if a=0 then end
60 if a<0 or a>65531 then print "invalid address":goto 40
70 print "address";a;"has value";usr(a)
80 goto 40
90 data 32,247,183,165,20,164,... |
Version =20
VersionRequired =20
Begin Form
RecordSelectors = NotDefault
AutoCenter = NotDefault
NavigationButtons = NotDefault
CloseButton = NotDefault
DividingLines = NotDefault
DefaultView =0
ViewsAllowed =1
TabularCharSet =186
PictureAlignment =2
DatasheetGridline... |
SUB MAIN
DIM ITEM(5) AS STRING
DIM SELECTED AS INTEGER
DIM R AS INTEGER
ITEM(1)="A"
ITEM(2)="B"
ITEM(3)="C"
ITEM(4)="D"
ITEM(5)="E"
SELECTED=-1
R = SELECTONE("OK Dialog", ITEM, SELECTED, "OK", "", "", FALSE)
PRINT R
PRINT SELECTED
R = SELECTONE("OK Dialog", ITEM, SELECTED, "OK", "", "", TRUE)
... |
1 errors = 0
2 l = 2 : if 1+4*4 != 17 then gosub 1000
3 l = 3 : if 4*4+1 != 17 then gosub 1000
4 l = 4 : if 4**3**2 != 262144 then gosub 1000
5 l = 5 : if (4**3)**2 != 4096 then gosub 1000
6 l = 6 : if 4**(3**2) != 262144 then gosub 1000
7 l = 7 : n = 0 : for i = 1 to 3 : for j = 1 to 3 : n = n + 1 ... |
1 width 80
2 goto 3 rem "start function
3 print tab(40);"XADREZ"
4 print "Legenda"
5 print "P - peao"
6 print "R - torre"
7 print "N - cavalo"
8 print "B - bispo"
9 print "K - rei"
10 print "Q - rainha"
11 print "Letras Maiusculas - pretas"
12 print "Letras Minusculas - brancas"
13 print " "
14 print " "
15 print " "
1... |
Attribute VB_Name = "globals"
Public g_sOGISFormat As String
Private Const Pi As Double = 3.1415926535979 'Pi constant, used in radians/degrees conversion
'Public Const Pi As Double = 3.14159265358979
Public GisUtils As New TatukGIS_XDK10.XGIS_Utils
Public ParamsUtils As New TatukGIS_XDK10.XGIS_ParamsUtils
Public min... |
10 COLOR 15,0,0:SCREEN 7,,,,,2
15 F$="SAMPLE.P7"
20 VDP(1)=VDP(1) AND &HBF
25 VDP(9)=VDP(9) OR &H20
30 BLOAD F$+"L",S,64128!
35 COLOR=RESTORE
40 FOR I%=0 TO 1:SET PAGE I%,I%
45 BLOAD F$+CHR$(48+I%),S
50 NEXT I%
55 VDP(10)=VDP(10) AND &H7F
60 VDP(1)=VDP(1) OR &H40
65 K$=INPUT$(1):SCREEN ,,,,,0
|
Operation =1
Option =0
Where ="(((dbo_ProjectHeader.DocketNum)>0) AND ((dbo_ProjectComponentHeader.ArtArrivedDa"
"te) Is Null) AND ((dbo_ProjectHeader.void)=False) AND ((dbo_ProjectHeader.invoic"
"enum) Is Null) AND ((dbo_ProjectHeader.ProjectStatusID)<=30) AND ((Nz([mhCreativ"
"e],0)+Nz([mhPrepress],0))>0... |
DIM SHARED IDECommentColor AS _UNSIGNED LONG, IDEMetaCommandColor AS _UNSIGNED LONG
DIM SHARED IDEQuoteColor AS _UNSIGNED LONG, IDETextColor AS _UNSIGNED LONG
DIM SHARED IDEBackgroundColor AS _UNSIGNED LONG
DIM SHARED IDE_AutoPosition AS _BYTE, IDE_TopPosition AS INTEGER, IDE_LeftPosition AS INTEGER
DIM SHARED IDE_Inde... |
12
····
VAR I
·FOR I=1 TO 31
»»»»IF !(I MOD 3) THEN
··PRINT "FIZZ"
··»»ENDIF
»»»»····IF !(I MOD 5) THEN
»»»»··PRINT "BUZZ"
··»»»»»»ENDIF
»»»»IF (I MOD 3) && (I MOD 5) THEN
······PRINT "FIZZBUZZ"
··»»ENDIF
»»»»·NEXT |
DECLARE SUB MonstGet (X!)
DECLARE SUB LvlCheck ()
DECLARE SUB CenterText (text$)
'$INCLUDE: 'typedef.bas'
COMMON SHARED RecStuff AS RecStuff
COMMON SHARED Monster AS Monster
DIM SHARED Monst(500) AS INTEGER
COMMON SHARED Monst() AS INTEGER, MonstFlag AS INTEGER, HighLvl AS INTEGER
IF COMMAND$ = "-P" THEN GOTO pack
main... |
1 A$="ΠΟΜΕΤ"
2 PRINT HEX$(PEEK(VARPTR(A$)+2)); HEX$(PEEK(VARPTR(A$)+1))
3 A$="ΞΑΜΕΤ"
4 PRINT HEX$(PEEK(VARPTR(A$)+2)); HEX$(PEEK(VARPTR(A$)+1))
5 MID$(A$,1,2)="ΠΟ"
6 PRINT HEX$(PEEK(VARPTR(A$)+2)); HEX$(PEEK(VARPTR(A$)+1))
|
Version =20
VersionRequired =20
Begin Form
RecordSelectors = NotDefault
AutoCenter = NotDefault
NavigationButtons = NotDefault
DividingLines = NotDefault
AllowDesignChanges = NotDefault
DefaultView =0
AllowUpdating =4
ScrollBars =0
PictureAlignment =2
DatasheetGridlinesBehavior ... |
5 mode 1
10 for x=0 to 1000
20 line 0,0,320,240
25 line 0, 240, 320,0
30 flip
40 next
|
100 COLOR 15,1,1
110 SCREEN 2,2,0
120 DEFINT A-Z
130 GOSUB 2000
199 CALL TURBO ON
200 DIM EX(4),EY(4),EV(4),EW(4)
210 FOR I=0 TO 3
220 EX(I)=EX(I)=I*16
230 EY(I)=-16
240 EV(I)=0:EW(I)=0
250 NEXT I
260 T=0:ES=0
270 X=50:Y=100
290 ON SPRITE GOSUB 800
300 ON STICK(0) GOTO 310,320,330,340,350,360,370,380
305 GOTO ... |
Version =20
VersionRequired =20
Begin Report
LayoutForPrint = NotDefault
DateGrouping =1
GridY =10
Width =10656
ItemSuffix =117
Left =705
Top =1335
ShortcutMenuBar ="Sports Admin-Print Popup"
Toolbar ="Sports Admin-Print"
RecSrcDt = Begin
0xd907e3cb8ce5e440
... |
DECLARE SUB MONSTER (x!, y!, z!, a!)
DECLARE SUB DELAY (dauer%)
DECLARE SUB EXPLOSION (xp!, yp!, rad!, col!)
DECLARE SUB kern (x!, y!)
DECLARE SUB NEPOMUK ()
DECLARE SUB TIMERS (level%, ZUSATZ!)
DECLARE SUB SCHLEUSE (x!, y!, z!)
DECLARE SUB TRESOR (x!, y!, z!)
DECLARE SUB EIS (x!, y!)
DECLARE SUB WASSER (a!, B!)
DECLAR... |
Version =20
VersionRequired =20
Begin Form
RecordSelectors = NotDefault
NavigationButtons = NotDefault
DividingLines = NotDefault
AllowDesignChanges = NotDefault
DefaultView =0
ScrollBars =2
PictureAlignment =2
DatasheetGridlinesBehavior =3
Cycle =1
GridX =24
GridY =24
W... |
'
' vim: ft=basic
'
option explicit
implements Iexample
public sub Iexample_aSub()
msgBox "bar says hello"
end sub
public function Iexample_aFunc(param as double)
Iexample_aFunc = param*5
end function
|
Check CF905390
Auto 8224
# Run-time Variables
Var a: Num = 0
# End Run-time Variables
10 REM ulaplus Test Program
15 PAPER 7: INK 0: CLS
20 OUT 48955,0
30 OUT 65339,0
40 PAUSE 1
50 LET a=IN 65339
60 IF a<>0 THEN PRINT "Ula plus is NOT FOUND!"
110 PRINT INK 2;"*Hello World"
115 PAUSE 50
120 OUT 4895... |
10 REM This is a test
20 DIM A(2)
30 ARR READ A
40 ARR PRINT A
50 STOP
90 DATA "First","Second","Last"
99 END
|
1 %TITLE "Sub Ledger Sub Account Class Report"
%SBTTL "SB_RPRT_CLASS"
%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 ... |
Attribute VB_Name = "IsotopeRatios"
'
' ****************************************************************************
'
' SQUID2 is a program for processing SHRIMP data
'
' Program author: Dr Ken Ludwig (Berkeley Geochronology Center)
'
' Supporters (members of the SQUID2 Development Group):
' - Geoscience... |
100 PRINT "DATA/READ/RESTORE TEST"
110 READ A, B, C
120 PRINT A
130 PRINT B
140 PRINT C
150 RESTORE
160 READ D, E, F
170 PRINT D
180 PRINT E
190 PRINT F
200 DATA 1,2
205 REM MORE DATA
210 DATA 3
|
$CONSOLE:ONLY
_DEST _CONSOLE
array$ = "text#hi#ffffff#none#C:\Windows\Fonts\times.ttf#30#30#30"
host = _OPENHOST("TCP/IP:7319")
IF host THEN
DIM connection&(10)
DO
' New Connections
connection& = _OPENCONNECTION(host)
IF connection& THEN
FOR loopnum = 1 TO 10
... |
1000 REM 7-26-76 4924 TAPE DUPLICATOR
1010 PRINT " ** TAPE DUPLICATOR (4924) **"
1020 INIT
1030 PRINT @37,0:13,255,255
1040 DATA 0,0,0
1050 DATA 0,0,0
1060 READ K1,K2,K3,K4,K5,K6
1070 DIM B$(1),C$(1),D$(45)
1080 C$=CHR(13)
1090 PRINT "
DO YOU WANT THE WHOLE TAPE DUPLICATED: ";
1100 INPUT B$
1... |
CLEAR , , 3000
JOY = 0
RANDOMIZE (TIMER)
ON KEY(1) GOSUB 801
ON KEY(2) GOSUB 802
ON KEY(3) GOSUB 803
ON KEY(4) GOSUB 804
ON KEY(5) GOSUB 805
ON KEY(6) GOSUB 806
ON KEY(7) GOSUB 807
KEY 15, CHR$(64) + CHR$(1)
ON KEY(15) GOSUB 808
SCREEN 7, 0, 0
CLS
'******CLOCK********
KH1 = 100: KH2 = 100: KX1 = 1500: KY... |
10 s=54272:x=-19:yy=21:del=-50
20 forl=stos+24:pokel,0:next
30 pokes+5,9:pokes+6,195
40 pokes+24,15
50 readhf,lf,dr:hf=hf+5
60 if hf<-200 then del=0:x=-19:goto50
70 if hf<-100 then x=x+1:goto 50
80 ifhf<0 then POKES,0:POKES+1,0:end
90 pokes+1,hf+x:pokes,lf
100 pokes+4,yy
110 fort=1todr+del:next
120 pokes+4,16:fort=1to5... |
' Copyright (c) 1991 Crescent Software
DEFINT I-N
DEFDBL A-H, O-Z
DECLARE SUB KEYCHECK ()
SUB PRTFFT1 (NN, X(), XSAVED(), ISIGN) STATIC
' Print FFT1 data subroutine
' Input
' NN = number of data points
' X() = vector of data points ( 2 * NN rows )
' XSAVED() = vector of saved dat... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.