text stringlengths 7 5.36M |
|---|
DECLARE SUB SetSterne ()
DECLARE SUB DefSterne ()
DECLARE SUB Pause (PauseLenght!)
COMMON SHARED x AS INTEGER
COMMON SHARED y AS INTEGER
COMMON SHARED d AS INTEGER
COMMON SHARED e AS INTEGER
COMMON SHARED PauseLenght AS INTEGER
SCREEN 9
CLS
RANDOMIZE TIMER
CONST Ma... |
10 let X = 0.00000001
20 if x then print x : rem non-zero is True, 'IF' does not modify X
30 let infinity = 1/0
40 if infinity then print infinity else print "No dice" |
10 '
10 ' LEARNING RPG GAME IN CPCTELERA
10 ' BY @DEIVIDVENTAS
10 ' AUGUST 2019
10 '
100 PRINT"RPG GAME"
110 PRINT"PRESS ENTER TO START"
120 INPUT"", a$
200 CLS:PRINT"GAME START"
|
5 DEFUSR=38+PEEK(-2442)+PEEK(-2441)*256:IFUSR(0)THENLINE>2COPY0&H80F6OR384ALLYOURBASEAREBELONGTOUS!
10 COLOR 15,0,0
20 SCREEN 8
30 ON STRIG GOSUB 240
40 STRIG(0) ON
50 SET PAGE 0,1:CLS
60 OPEN"grp:"AS#1
70 PRESET(0,0):PRINT#1,"NEW MUSIC"
80 FOR Y=0 TO 7
90 FOR X=0 TO 80
100 IF POINT(X,Y)=15 THEN GOSUB 130
110 NEXT X,Y
... |
1 ' -------------------- '
1 ' CRAZY '
1 ' BASIC MURCIA 2020 '
1 ' -------------------- '
1 ' Main 10'
1 ' Welcome scrren y records 100'
1 ' winning scrren 200'
1 ' Game over 300'
1 ' Scrren 1 400'
1 ' Main loop: ... |
1 REM AUTOLOAD DIRECTORY
2 GO TO 100
4 GO TO 160
100 INIT
110 DATA 16,2,5,6,7,9,10,11,12,13,14,15,23,24,25,16,18
120 READ N
130 IMAGE 10T,2D,5X,FA
140 DIM F(N)
150 READ F
160 PRINT " 4050 APPLICATIONS LIBRARY PROGRAMS
"
170 PRINT " PROGRAMMING AIDS T1 Tape
"
180 PRINT " PROGRAM TITLE
"
190 PR... |
' Leap year, for FreeBASIC, web: http://rudih.info
Dim Year As Integer
CLS
main:
INPUT "Enter a year or 0 to exit: ", year
IF year <= 0 THEN END
IF year MOD 100 = 0 THEN
GOTO centurycalc:
ELSE
GOTO regularcalc:
END IF
regularcalc:
year = year MOD 4
SELECT CASE year
CASE 0: PRINT "That year... |
' Made in Korea
' 제작 : 이강용 ( SUB팀 소속 )
' 본 프로그램은 QOP라고 하여
' 재혁님의 NOP방식을 고대로 써먹은 프로그램이옵니다 -_-;
' 제작날짜 1998.03.??
DECLARE SUB Title ()
DECLARE SUB InitMainHeaders ()
DECLARE SUB SortMainHeaders ()
DECLARE SUB SortMainHeaders.QuickSort (L, R)
'-------------------------------------------------------... |
10 REM SHOW TIME FROM INTERRUPT ROUTINE
20 REM READ DATA FOR ML PROGRAM
30 I=0
40 READ N
50 IF N = -1 THEN 90
60 POKE 30000+I,N
70 I = I + 1
80 GOTO 40
90 REM WRITE ADDRESS OF INIT ROUTINE $7534 TO $11,$12
100 POKE 11,52
110 POKE 12,117
120 REM AND CALL IT
130 X = USR(0)
140 INPUT "DO YOU WANT TO SET THE TIME ... |
100 ' CMD TEXT ON/OFF sample
110 SCREEN 0,0:CLS 3
120 CIRCLE(320,100),100,2
130 PAINT(320,100),2,2
140 CMD TEXT ON
150 PRINT "*";:IF INKEY$="" THEN 150 ELSE CMD TEXT OFF
160 PRINT "*";:IF INKEY$="" tHEN 160 ELSE 140
170 END
|
10 CLS
20 REM PLAYER START
30 LET X = 3
40 LET Y = 3
50 REM READ MAP
60 LET W = 10
70 LET H = 10
80 DIM M(H, W)
90 FOR R = 1 TO H
100 FOR C = 1 TO W
110 READ M(R, C)
120 NEXT
130 NEXT
140 REM GAME LOOP
145 CLS
150 LET U = X
160 LET V = Y
170 GOSUB 440
180 REM GET DIRECTION
185 PRINT
190 PRINT "DIRECTION (N,S,E,W OR Q T... |
UNARY
10 X = -1
20 PRINT X
30 Y = -7000+3
40 PRINT Y
|
1 rem mirror horror - joystick version
4 rem dsiclaimer - dont remove border, or will game crash progam
10 rem "mirror horror - joystick"
20 poke 53281,0:poke 53280,0:gosub 3100
30 poke 646,5:print chr$(147):gosub 200
40 poke 646,1
100 poke 214,1:print:poke 211,3
105 print "(joystick in port 2)"
108 poke 214,3:... |
RANDOMIZE TIMER
PRINT "RRCC UNOFFICIAL COMMONER GENERATOR"
INPUT "Whats yr commoner name? ", thename$
wisdom = INT(RND * 6) + 1 + INT(RND * 6) + 1 + INT(RND * 6) + 1
intell = INT(RND * 6) + 1 + INT(RND * 6) + 1 + INT(RND * 6) + 1
strength = INT(RND * 6) + 1 + INT(RND * 6) + 1 + INT(RND * 6) + 1
charisma = INT(RND... |
Version =20
VersionRequired =20
PublishOption =1
PopUp = NotDefault
RecordSelectors = NotDefault
AutoCenter = NotDefault
DividingLines = NotDefault
AllowDesignChanges = NotDefault
DefaultView =0
ScrollBars =0
ViewsAllowed =1
TabularCharSet =186
PictureSizeMode =1
DatasheetGr... |
Version =20
VersionRequired =20
Begin Form
DividingLines = NotDefault
AllowDesignChanges = NotDefault
DefaultView =0
ViewsAllowed =1
PictureAlignment =2
DatasheetGridlinesBehavior =3
GridX =24
GridY =24
Width =14580
DatasheetFontHeight =11
ItemSuffix =25
Right =13515
... |
1%A=0;%B=0;REM FORUMLA ONE by C.G.Johnson
2 P.$12"now the game you've been waitin'"
3 P."for"'"FROM cj products..."';B=0
4 F.B=0 TO 120;WAIT;N.;B=0
5 DO B=B+1;P.$7"***FORMULA*one***";U.B=16
6 F.B=1 TO 50;WAIT;N.;P.$12" instructtions"'
7 P." YOU ARE DRIVING A CAR ROUND A RACING TRACK."'
8 P." THE OB... |
SUB PlaceBusEntryArray
'MACROMENU PlaceBusEntryArray
'MACROKEY CTRL+R
'MACRODESCRIPTION Place an array of bus entries.
Begin Dialog BusEntryArray 16, 35, 256, 89, "Place BusEntry Array"
Text 8,8,32, 8, "BusName"
TextBox 8,20, 100, 12, .BusName
Text 130,8,40,8, "LSB"
TextBox 130,20,40,12, .LSB
Text 1... |
1 %TITLE "Sub Process to Create Module Documenation File"
%SBTTL "TK_SUBR_MODULEDOCU"
%IDENT "V3.6a Calico"
SUB TK_SUBR_MODULEDOCU(LIB_NAME$, KEY_NAME$, SOURCE_NAME$, KEY_DESCR$)
!
! COPYRIGHT (C) 1987 BY
! Computer Management Center
! Idaho Falls, Idaho.
!
! This software is furnished under a license and ma... |
REM @english
REM STRING MANIPULATION AND EXTRACTION (3)
REM
REM This example shows how to extract a string from another string, starting from
REM a specific position and for a given number of characters. The function used is ''MID''.
REM The same function can be used to inject a string, as well.
REM
REM @italian... |
'-------------------------------------------------------------------------------
' Iridium SBD transmit.BAS - BASIC code to push GOES messages out via SBD
'
' This routine must be schedule to run after the GOES message has been sent
' and the RECENT.DAT file has been posted. Typically you would schedul... |
cls
print "-=ðþ Olson Software Help Tools Cracker þð=-"
print
print "RUC.INI format:"
print chr$(34)+"helpfile"+chr$(34)+","+chr$(34)+"name"+chr$(34)+",countstart"
print
print "helpfile is needed for REGUTIL.EXE"
print "name is the desired name"
print "countstart is the starting numbe... |
10 REM Test the FORGET statement
11 OPTION BASE 1
12 OPTION REQUIRE_INITIALIZED TRUE
20 DIM A(10)
21 FOR I = 1 TO 10
22 LET A(I) = I
23 NEXT I
30 ARR PRINT A
40 ARR FORGET B
90 ARR PRINT A
99 END
|
2 rem set (c)haracter value, and (l)ocation
4 l=1784 + 39:jk=l:c=42:cm=54272: ADDR=1024
5 poke 53282,2:rem set background color #1 to red
6 poke 53283,7:rem set background color #2 to yellow
7 VM=0:CC=14:CH=VM+CC*1024:RM=53248-CH
9 rem set screen background, sprite coordinates
10 poke 53281,5:poke 53280,0:v=53248... |
Version =21
VersionRequired =20
Begin Form
PopUp = NotDefault
Modal = NotDefault
RecordSelectors = NotDefault
MaxButton = NotDefault
MinButton = NotDefault
AutoCenter = NotDefault
AllowDeletions = NotDefault
DividingLines = NotDefault
OrderByOn = NotDefault
DefaultView =0
Ta... |
Operation =1
Option =0
Begin InputTables
Name ="dbo_ContactGeneral"
End
Begin OutputColumns
Expression ="dbo_ContactGeneral.*"
End
dbBoolean "ReturnsRecords" ="-1"
dbInteger "ODBCTimeout" ="60"
dbByte "RecordsetType" ="0"
dbBoolean "OrderByOn" ="0"
dbByte "Orientation" ="0"
dbByte "DefaultView" ="2"
dbBinary "... |
!!
DESCRIPTION
hexdump.bas
This file contains 3 functions
hex$ to convert a byte to a hexadecimal string
printasciidump$ to print a hex dump of an ascii string.
listasciidump$ load a list with the hex dump of an ascii string.
AUTHOR
Rev. Jonathan C. Watt
Fourth Sunday after the Epiphany
January 2012
... |
500 REM ***** RESTORE FILE ($FCOPY)
510 REM File 7
520 PAGE
530 PRINT " Restore HP File from Tek Cartridge
"
540 IF F THEN 580
550 PRINT "Load $FCOPY Restore Cartridge and press RETURN.";
560 INPUT X$
570 F=1
580 PRINT "
File Number";
590 INPUT F1
600 FIND F1
610 CALL "CMINIT"
620 CALL "RATE",R,0... |
Attribute VB_Name = "Module1"
Sub Process_all()
'
'Perform the Process_sheet procedure for each worksheet in the workbook.
'
Dim ws As Worksheet
For Each ws In Worksheets
ws.Activate
Process_sheet
Next
MsgBox "Finished"
End Sub
Sub Process_sheet()
'
'Process the data in the... |
CLS
ns = 21 'к-во студентов
DIM s$(ns), oc(ns, 4), sr(ns)
n = 0
FOR i = 1 TO ns
READ s$(i) 'считывание Ф.И.О. студента
FOR j = 1 TO 4
READ oc(i, j) 'считывание оценок
NEXT j
sr(i) = (oc(i, 1) + oc(i, 2) + oc(i, 3) + oc(i, 4)) / 4 'ср. балл
IF oc(i, 1) > 3 AND oc(i, 2) > 3 AND... |
Version =20
VersionRequired =20
Begin Report
LayoutForPrint = NotDefault
DividingLines = NotDefault
AllowDesignChanges = NotDefault
TabularCharSet =161
DateGrouping =1
GrpKeepTogether =1
PictureAlignment =2
DatasheetGridlinesBehavior =3
GridX =24
GridY =24
Width =11520
D... |
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... |
63000 DEF PROC Gemdefs
63015 'MULTI EVENT FLAGS
63020 K_Rshift=$1:K_Lshift=$2:K_Ctrl=$4:K_Alt=$8
63025 Scr_Mgr=$1:Ap_Msg=0
63030 Mu_Keybd=$1:Mu_Button=$2:Mu_M1=$4:Mu_M2=$8:Mu_Mesag=$10:Mu_Timer=$20
63035 Mn_Selected=10:Wm_Redraw=20:Wm_Topped=21:Wm_Closed=22:Wm_Fulled=23:Wm_Arrowed=24:Wm_Hslid=25
63040 Wm_Vslid=26... |
#COMPILE EXE
#DIM ALL
#DEBUG ERROR ON
'
#TOOLS OFF
'
' include the common display library
#INCLUDE "win32api.inc"
#INCLUDE "..\Libraries\CommonDisplay.inc"
'
$Display_command = CHR$(&HFE)
$Display_clear = $Display_command & CHR$(&H58)
$Display_off = $Display_command & CHR$(&H46)
$Display_on = $Display_command & CHR$(&H... |
Version =20
VersionRequired =20
Begin Form
PopUp = NotDefault
Modal = NotDefault
AutoCenter = NotDefault
AllowDeletions = NotDefault
DividingLines = NotDefault
AllowAdditions = NotDefault
FilterOn = NotDefault
AllowDesignChanges = NotDefault
ViewsAllowed =1
PictureAlignment =2
... |
10 PRINT "EVERY DIRECTIVE MUST BE FOLLOWED BY A SPACE OR END OF LINE"
20 PRINT"THIS MUST FAIL"
30 END
|
Attribute VB_Name = "modProcessFuncs"
Option Compare Database
Option Explicit
Private Const THIS_NAME As String = "modProcessFuncs"
'VGC 07/19/2016: CHANGES!
' ***************************************************************
' ***************************************************************
' ** These functi... |
CLS
10 SCREEN 12
INPUT "Number of points"; p
20 l = p 'number of points allowed
30 wi = 630 '620
40 hi = 470 '180
50 cx = wi / 2
60 cy = hi / 2
70 mx = wi / 100
80 my = hi / 100
90 DIM x(l, 2): DIM y(l, 2)
100 CLS 2
110 GOSUB 760
120 PRINT "Type 1 to Draw"
130 PRINT "Type 2 to View"
... |
10 LET DELAY = 50
20 PRINT "Push buttons 0..7 to change speed"
30 FOR F = 1 TO 6
40 OUT 0, INT(2^F+0.1) : REM APU +0.1 Fudge
50 GOSUB 120
60 NEXT F
70 FOR F = 7 TO 0 STEP -1
80 OUT 0, INT(2^F+0.1) : REM APU +0.1 Fudge
90 GOSUB 120
100 NEXT F
110 GOTO 30
120 FOR Z = 1 TO DELAY
130 IF INP(0) <> 0 THEN LET DELAY = INT(SQR... |
100 REM LISTPCI Program.
110 REM Prints the Parent/Child Index
120 REM Copyright (c) 1982 ... 1989 by: Melvin O. Duke.
130 OPTION BASE 0
140 DEFINT A-Z
600 REM Titles
610 TITLE$ = "List the Parent/Child Index"
620 TITLE$ = TITLE$ + " ON DISPLAY"
700 REM Terminate if not called from the Menu
... |
#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 ... |
DECLARE SUB ScreenWechsel ()
DECLARE SUB GetSprite (x AS INTEGER, y AS INTEGER)
DECLARE SUB PutSprite (x AS INTEGER, y AS INTEGER)
COMMON SHARED Farbe AS INTEGER
COMMON SHARED xPos AS INTEGER
COMMON SHARED yPos AS INTEGER
COMMON SHARED xP AS INTEGER
COMMON SHARED yP AS INTEGER
COMMON SHARED scr1 AS INTEGER
COM... |
'****************************************************************
'* Name : UNTITLED.BAS *
'* Author : [select VIEW...EDITOR OPTIONS] *
'* Notice : Copyright (c) 2012 [select VIEW...EDITOR OPTIONS] *
'* : All Rights Reserved ... |
!--------------------------------------------------
!- Thursday, January 21, 2016 8:40:28 AM
!- Import of :
!- c:\users\denton\desktop\boot all.prg
!- Commodore 64
!--------------------------------------------------
10 REM BOOT EDITOR/LOADER/DOS
20 IFA=0THENA=1:LOAD"dos 5.1",8,1
30 IFA=1THENA=2:LOAD"hiloader64",8,1
40... |
10 PRINT TAB(34);"BULL"
20 PRINT TAB(15);"CREATIVE COMPUTING MORRISTOWN, NEW JERSEY"
30 DEF FNA(K)=INT(RND(1)*2+1)
200 PRINT:PRINT:PRINT
202 L=1
205 PRINT "DO YOU WANT INSTRUCTIONS";
206 INPUT Z$
207 IF Z$="NO" THEN 400
210 PRINT "HELLO, ALL YOU BLOODLOVERS AND AFICIONADOS."
220 PRINT "HERE IS YOUR BIG CHANCE TO KILL ... |
DEFINT A-Z
CONST true = -1: CONST false = NOT true: CLS
DIM nombre1 AS STRING * 35, nombre2 AS STRING * 35, cadena1 AS STRING * 45, cadena2 AS STRING * 45
agregado = false: modificado = false: encontrado = false
'verifica psicotrąpicos nuevos, actualiza y busca repetidos
CLOSE
OPEN "F:\kevinprg\kevindat\new.dbf... |
DEFINT A-Z
'$INCLUDE: 'engine.bi'
'$INCLUDE: 'player.bi'
'$INCLUDE: 'render.bi'
'$INCLUDE: 'teleport.bi'
'$STATIC
CONST portalxsize = 24, portalysize = 24
TYPE portaltype
x AS INTEGER
y AS INTEGER
destx AS INTEGER
desty AS INTEGER
END TYPE
ON ERROR GOTO ErrorHandler
DIM SHARED numportals
DIM ... |
100 ' save "tree.bas",a
110 LEVEL=15
120 LONG=80
130 X=300
140 Y=350
150 PI=3.14159
160 ROTATION=PI/2
170 A1=PI/9 : A2=PI/9
180 C1=0.75 : C2=0.75
190 DIM XX(LEVEL):DIM YY(LEVEL)
200 CLS 3
210 GOSUB 230
220 END
230 REM
240 XX(LEVEL)=X:YY(LEVEL)=Y
250 GOSUB 390
260 IF... |
201 PRINT"{clear}": print"{home}";
221 p1=10:rem row y
222 p2=2 :rem col x
223 ry=781:rx=782:rf=783
242 pa$="dadttqsa jhkgda"
247 print"press key to test 1"
248 get zz$:if zz$="" then 248
252 gosub 20000
258 print:print:print"press key to test 2"
259 get zz$:if zz$="" then 259
260 p2=2:p1=11
265 gosub 10000... |
$regfile = "m16def.dat"
$crystal = 1000000
config portb.0 = output
do
portb.0 = 0
wait 1
portb.0 = 1
wait 1
loop
end
|
1 REM TAMUSTAT BY RAY LOPEZ
10 GOSUB "INIT"
20 GOSUB "NEWDATA"
30 GOTO "MENU"
100 "INIT"
110 CLEAR : DIM UD(150): DIM SD(150): DIM RE(24)
120 RETURN
200 "NEWDATA"
210 I$="": INPUT "NEW DATA (Y/N)? ";I$
220 IF I$="Y" THEN GOTO 240
230 GOTO 285
240 INPUT "1 OR 2 VARS? ";RE(7): IF ... |
10 clear 24999
20 load "hello1"code
30 randomize usr 32768
|
5 SCREEN 9
10 r = 2
20 x = INT(640 * RND)
30 y = INT(340 * RND)
35 z = z + 1: r = r * 1.1 ^ z
36 IF r <= 0 THEN CLS : z = 0: GOTO 5
40 FOR za = 1 TO z
50 LOCATE 1, 1: PRINT r
CIRCLE (x, y), r
60 x = INT(640 * RND)
70 y = INT(340 * RND)
80 NEXT
90 IF INKEY$ = " " THEN GOTO 110
GOTO 90
110
GOTO 20
|
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 for i=-4to4:print sgn(i):next |
2 mode 2
3 REM DOGSTAR.BAS Dog Star Adventure by Lance Micklus
5 REM Modified by Gern for Zenith Z-100 05/30/83 & 12/30/84
7 REM From SoftSide MAY 1979 (A TRS-80 Software Magazine)
8 rem modified to run on CPC464 09/2020 by SRS
10 KEY OFF:ON ERROR GOTO 50:GOTO 100
50 PRINT:PRINT"ERROR!!!":RESUME 2125
100... |
DIM AS INTEGER N,S,P,I,T,J
INPUT N
DIM AS INTEGER A(N)
P=1
S=1
I=1
T=0
DO
I=I+1
S=S*I
IF S<=N AND I<N THEN
A(P)=I
IF S=N THEN
T=T+1
PRINT N;"=";A(1);
FOR J = 2 TO P : PRINT "*"; A(J); : NEXT J : PRINT
S=S/I
P=P-1
... |
10 KEY OFF:CLS
20 SCREEN 0
30 WIDTH 40
40 PRINT"같같같같같같같같같같같같같같같같같같같?
50 PRINT"겠컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴커?
60 PRINT"개 낡"
70 PRINT"개 2078-A.BAS 낡"
80 PRINT"개 CIA 낡"
90 PRINT"개 낡"
100 PRINT"개 ... |
Operation =1
Option =0
Begin InputTables
Name ="dbo_ContactCPAccount"
End
Begin OutputColumns
Expression ="dbo_ContactCPAccount.ID"
Alias ="Account Holder"
Expression ="dbo_ContactCPAccount.CPAcctName"
Alias ="Account Number"
Expression ="dbo_ContactCPAccount.CPAcctNum"
Alias ="Contract Num... |
Attribute VB_Name = "Module1"
Sub stock456()
Dim i As Long
Dim size456 As Double 'row count
Dim ticker456() As String
Dim open456 As Double
Dim close456 As Double
Dim vol456 As Double
Dim count456 As Long
Dim WS_Count As Integer
Dim II As Integer
'-------------------------------------------------------------... |
Operation =1
Option =0
Where ="(((dbo_ProjectHeader.DocketNum) Is Not Null) AND ((dbo_ProjectHeader.InvoiceNum)"
" Is Null) AND ((dbo_ProjectHeader.Void)=False) AND ((dbo_ProjectComponentHeader."
"StBindery)<>\"NOT REQ'D\") AND ((dbo_ProjectHeader.projectstatusid)<=30) AND ((d"
"bo_ProjectComponentHeader.C... |
10 PRINT 1 - 2
20 PRINT 1.0 - 2
30 PRINT 1 - 2.0
40 PRINT 1.1 - 2.2
50 PRINT 8 - 4 - 2 - 1
|
10 PRINT "Y = SIN X"
20 PRINT
30 LET L=20
40 LET M=L+(66-L)/2
50 PRINT " X Y"
60 FOR X1=-66 TO 66 STEP 2
70 LET X=.1*X1
80 LET Y=SIN(X)
90 LET Y2=10*Y+M
100 IF X1=0 THEN 210
110 IF Y2<L THEN 250
120 IF Y2>66 THEN 250
130 IF Y2<M THEN 190
140 IF Y2=M THEN 170
150 PRINT X;
151 PRINT TAB(6);Y;
152 PRI... |
10 CLS
20 SOUND 500,17.5
30 FOR Z=0 TO 124998.75#:NEXT
40 GOTO 20
|
10 for z=0 to 255
20 poke 1024+z,z
30 poke 55296+z,1
40 next z
|
10 CLS:BPS 9600:UART 1,2
20 C=0
30 K=INKEY()
40 IF K=0 GOTO 30
50 REM IF K=36 GOTO 110
60 IF K=13 GOTO 110
70 IF C>101 THEN GOTO 30
80 LET [C],K
90 C=C+1
100 GOTO 30
110 REM
120 IF [0]=71 AND [1]=80 AND [2]=82 AND [3]=77 AND [4]=67 THEN GOTO 140
130 GOTO 20
140 REM DISPLAY CLOCK
150 H=([6]-48)*10+([7]-48)
160 H=(H+9)%2... |
100 RANDOMIZE TIMER
110 SCREEN 1,0:CLS
120 KEY OFF
130 COLOR 7,0
140 DIM BOX(4,7,1),FALLING(32,4),POINTS(4,16),SCORE(1,8)
150 DIM S(250),LEFTSW(35),RIGHTSW(35),BALL(4),UNBALL(4),LARROW(35),RARROW(35)
160 FOR J=1 TO 4:READ POINTS(J,0)
170 FOR K=1 TO 8:READ L:POINTS(J,K+8)=L:POINTS(J,9-K)=L:NEXT K,J
180 DATA 10,2,2,2,2,2... |
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
1... |
50 REM***GUESS THE NUMBER
60 DIM A$(1)
70 DIM NM$(15)
100 PRINT "WHAT IS YOUR NAME"; : INPUT NM$
110 LET N = INT(RND(1) * 20) + 1
120 PRINT
130 PRINT NM$; ", I'M THINKING OF A"
135 PRINT "NUMBER BETWEEN 1 AND 20."
138 PRINT
140 PRINT "WHAT IS MY NUMBER"; : INPUT G
150 IF G <> N THEN 300
160 PRINT " "
... |
1 %TITLE "Initilize for Printer Control Sequences"
%SBTTL "OUTP_INITIALIZE"
%IDENT "V3.6a Calico"
SUB OUTP_INITIALIZE(PRINT_TYPE$)
!
! COPYRIGHT (C) 1986 BY
! Computer Management Center, Idaho Falls, Idaho.
!
! This software is furnished under a license and may be used and
! copied only in accordance with ter... |
10 SCREEN 5:COLOR 15,0,0
20 M$="National":M=LEN(M$)
30 FOR X=1 TO M
40 CD=&H2300+ASC(MID$(M$,X,1)) 'Видимо, &H2300 - адрес?!
50 PUT KANJI (X*16-5,20),CD,11
55 PUT KANJI (X*16-5,70),CD,11
57 PUT KANJI (X*16-8,90),CD,11
60 NEXT:A$=INPUT$(1):SCREEN 0:LIST
|
10 X$(0)="P":X$(1)="{reverse on} {reverse off}":C$="{light gray}{cm t}"
20 print x$(0)
30 print X$(1)
40 print C$
50 print x$(0)
60 print X$(1)
70 print C$ |
10 JMS F
20 PALETTE 12,63:PALETTE 13,0
30 PCLEAR 6
40 PCLEAR 1:CLEAR 200,&H1FF0
50 INPUT"WHAT LEVEL";A$
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
90 LOADM"COMPRESS"
100 EXEC
105 L=PEEK(&H2000)*256+PEEK(&H2001):PRINT"LENGTH = $";HEX$(L)
106 IF L>&H5400 THEN PR... |
SUB mxw (wide)
wide = LEN(mtx$(0)) + 1
FOR i = 1 TO size
x = LEN(mtx$(i))
IF x > wide THEN wide = x
NEXT i
END SUB |
'********** GETCMOS.BAS - shows how to read data from AT-compatible CMOS RAM
'Copyright (c) 1991 Ethan Winer
DEFINT A-Z
DECLARE FUNCTION GetCPU% () 'QuickPak Pro routines
DECLARE SUB QPCli ()
DECLARE SUB QPSti ()
DECLARE FUNCTION ReadCMOS% (Address%) 'BASIC functions in this demo
DECLA... |
10 poke 53265,peek(53265) and 247 :rem go into 24 row mode
20 print chr$(147) :rem clear the screen
30 for x=1 to 24:print chr$(17);:next :rem move the cursor to the bottom
40 poke 53265,(peek(53265) and 248)+7:print :rem position for 1st scroll
50 print" hello";
60 for... |
DECLARE SUB d16 (char$, xx!, xy!, xc!)
SCREEN 13: CLS
DIM sj(16000)
FOR k = 18 TO 24
PALETTE k, (k - 18) * 10
NEXT
FOR k = 1 TO 6
LINE (k, k)-(320 - k, 200 - k), k + 17, B
LINE (k + 6, k + 6)-(314 - k, 194 - k), 25 - k, B
NEXT
COLOR 14
LOCATE 3, 6: PRINT "INTERNET BROWSER VERSION 2.50"
COLOR 3
LOCATE 4, 12: PRINT "M... |
IF usercommand$(runcommands) = "close" OR usercommand$(runcommands) = "exit" THEN
DO
FOR runcommands2 = 1 TO usercommands
IF usercommand$(runcommands2) = "door" OR usercommand$(runcommands2) = "drive" OR usercommand$(runcommands2) = "calculator" OR usercommand$(runcommands2) = "command" OR userc... |
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... |
Operation =1
Option =0
Where ="(((dbo_ContactName.IsActive)=True) AND ((dbo_ContactLocation.ADD1) Is Not Null) "
"AND ((dbo_ContactName.SendMail)=True) AND ((dbo_ContactName.DeleteMeYN)=False) A"
"ND ((dbo_ContactGeneral.IsClient)=True) AND ((dbo_ContactGeneral.IsCompetitor)=F"
"alse))"
Begin InputTables
... |
10 a=10
20 if a >= 10 then print "a .GE. 10"
30 if a <= 10 then print "a .LE. 10"
40 if a <> 10 then print "a .NE. 10" else print "...else-Zweig..."
50 print (10 mod 3)
60 print 10 | 3
70 print 10 or 3
80 print 10 & 3
90 print 10 and 3
100 print 15 xor 1
110 print 1 shl 2
120 print 4 shr 2
130 end
|
DIM FINISH, I, STALL, WTF, X, Y AS INTEGER
DIM Z AS STRING
WIDTH 80, 43
RANDOMIZE TIMER
DO
RANDOMIZE TIMER
IF INT(RND(RND(RND)) * 10) = 3 THEN
RANDOMIZE RND(RND(RND))
X = INT(RND(RND(RND)) * 79) + 1
Y = INT(RND(RND(RND)) * 39) + 1
FINISH = INT(RND(RND(RND)) * (41 - Y))
STALL = Y + 1
Z = ""
... |
RANDOMIZE TIMER
DO
i = INT(RND * 23) + 1
i1 = INT(RND * 80) + 1
IF SCREEN(i, i1) <> 32 THEN d = SCREEN(i, i1): GOSUB Drop
LOOP UNTIL INKEY$ <> ""
END
Drop:
FOR k = i TO 23
COLOR INT(RND * 14) + 1
LOCATE k, i1: PRINT CHR$(d)
FOR l = 1 TO 50: NEXT
LOCATE k, i1: PRINT " "
NEXT
RETURN
|
1 REM Guess my number
2 PRINT "1 to 100..."
3 X=1
4 Y=100
5 N=RND
6 PRINT "Your guess? "
7 INPUT G
8 IF G=N THEN 11
9 IF G<N THEN 13
10 IF G>N THEN 15
11 PRINT "Got it!"
12 END
13 PRINT "Too low"
14 GOTO 6
15 PRINT "Too high"
16 GOTO 6
|
1 ' GW-BASIC program to calculate the number or landmasses (and size)
2 ' in a given file.
3 '
4 ' GW-BASIC interpreter can be found at:
5 ' http://www.geocities.com/KindlyRat/GWBASIC.html
6 '
10 DEF FNCHARAT$(X$, Y) = MID$(X$, Y, 1)
20 ON ERROR GOTO 9000
30 LINE INPUT "Filename (or quit to exit): "; FIL... |
@ERASE
@INIT 10
10 A = lcd "AIRbot "
11 A = auxdac 200
0 REM debug disabled
12 Z = 0
0 REM LED output and on
13 A = pioset 20
14 A = baud 384
0 REM init motor controller pio
15 A = pioout 1
16 A = pioset 1
0 REM enable middle button
17 A = pioclr 12
18 A = pioin 12
0 REM enable rigth button
19 A = pioset 3
20 A ... |
500 PRINT "< chained program >"
510 A%=A%+A%:B=B*B:C#=C#/C#
520 PRINT A$
530 PRINT "A =";A%,"B =";B,"C =";C#
|
10 DIM B(7000)
20 FULLW 2
30 CLEARW 2
40 PRINT" **** PLEASE WAIT *****
50 GOSUB 770
60 CLEARW 2
70 HP=1:Z=1
80 VP=1
90 HS=4
100 VS=2
110 INPUT"HORIZONTAL SIZE";HM
120 INPUT"VERTICAL SIZE";VM
130 INPUT"BACKGROUND COLOR";C0
140 INPUT"COLOR 1";C1
150 INPUT"COLOR 2";C2
... |
5 rem *** gliss effect ***
10 for m = 0 to 24 : poke 54272 + m,0 : next
20 m = 54272
30 poke m + 24,15
40 poke m + 5,136 : poke m + 6,240
50 for x = 255 to 4 step -2
60 poke m + 1,x
70 poke m + 4,17
80 for k = 1 to 4 : next k : next x
200 c = c + 1 :if c = 3 then 500
210 goto 50
500 poke m + 24,0: end
|
Attribute VB_Name = "EXCEL_WSHEET_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.
Function WSHEET_ADD_FUNC(ByVal SHEET_NAME As String, _
Optional ByRef... |
10 CLS
20 FOR X=0 TO 255:VPOKE &H1800+X,X:NEXT
30 FOR X=0 TO &H7FF:VPOKE X,0:NEXT
40 LOCATE 5,10:PRINT"Вверху графика!"
50 POKE &HFCAF,2
60 LINE (20,10)-(100,40),15,BF
70 CIRCLE (80,30),40,8
80 POKE &HFCAF,1
|
0 rem chardata should begin at line 30000
5 rem spritedata should begin at line 40000
10 rem screen routine should begin at line 50000
15 rem constants/game state
18 dim OV(4): OV(1)=5: OV(2)=9: OV(3)=17: OV(4)=33: rem coll values of P-C(I)
20 BS=5: rem Bird Speed
25 CD=12288: rem chardata start address
30 S... |
10 rem *** text graphic lib ***
20 rem *** color constants ***
21 rem *copiare direttamente
22 rem in VICE con copia-incolla
25 rem black
30 let c0$=chr$(144)
35 rem white
40 let c1$=chr$(5)
45 rem red
50 let c2$=chr$(28)
55 rem cyan
60 let c3$=chr$(159)
65 rem purple
70 let c4$=chr$(156)
75 rem green
80 let c5$=chr$(... |
10 REM IF STATEMENT WITH INVALID SUBSTATEMENT
20 IF A < 7 THEN DATA 20,30,40
99 END
|
OPTION EXPLICIT
DEFINT A-Z
DECLARE FUNCTION Tic.CheckWin% ()
DECLARE SUB Tic.AIMove ()
DECLARE SUB Tic.DrawXO (FieldRow%, FieldCol%)
DECLARE SUB Tic.Main ()
'$INCLUDE: 'C:\COSTA\SOURCE\COSTALIB.BI'
DIM SHARED PlayerStart AS INTEGER
DIM SHARED PlayerTurn AS INTEGER
DIM SHARED TotalTurns AS INTEGER
DIM SH... |
10 REMark *** Import PSION _exp File Filter
20 REMark *** (must be compiled with QLib, Channels off!)
30 REMark
40 REMark v1.00 - First version released
50 REMark v1.01 - col/row order corrected
60 REMark v1.02 - column width support (has to be in first row)
70 REMark only column order import
80 REMark v1.04 -... |
100 rem interest rate program page 33
110 read m,d,p,n
300 let r= m * d /(p*(n+1)) * 200
400 print "percent interest is",r
500 data 12, 320, 3000, 36
600 end
|
1 REM NUMBER GUESSING GAME
2 PRINT "\X93"
5 INPUT "ENTER UPPER LIMIT FOR GUESS ";LI
10 NM = INT(LI*RND(1))+1
15 CN = 0
20 PRINT "OK, I THINK I HAVE A NUMBER":PRINT
30 INPUT "YOUR GUESS?"; GU
35 CN = CN + 1
40 IF GU > NM THEN PRINT "AWWW... SORRY, MY NUMBER IS LOWER": PRINT : GOTO 30
50 IF GU < NM THEN PRINT "OUCH! MY N... |
10 poke 53269,1 : REM bit 0 = sprite 0
20 POKE 2040,192 : REM SPRITE POINT * 64 = 192 * 64 = 12288
30 Y = 60 : POKE 53249,Y
40 X = 60 : POKE 53248,X
50 POKE 53287,0
60 FOR I = 0 TO 62 : READ A : POKE 12288 + I, A : NEXT I
80 V = 0 : G = 3/32 : T = 6/32
90 FOR DE = 0 TO 32 : NEXT
100 A = PEEK(197)
110 IF A = 22 THEN V =... |
Attribute VB_Name = "Tools_Write_File"
Sub Write_to_column()
'A single apostrophe, ', represents a note
'Replace all double apostrophe, '', represents code that can be used, with nothing to use this
'Relace all apostrophe, space, and apostrophe, , represents more options in code, with nothing to use this
'To change it... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.