PC-BASIC Documentation

2y ago
80 Views
12 Downloads
1.70 MB
302 Pages
Last View : 1d ago
Last Download : 3m ago
Upload by : Adele Mcdaniel
Transcription

PC-BASICdocumentationVersion 2.0.3

1. PC-BASIC 2.0.3A free, cross-platform emulator for the GW-BASIC family of interpreters.PC-BASIC is a free, cross-platform interpreter for GW-BASIC, Advanced BASIC (BASICA),PCjr Cartridge Basic and Tandy 1000 GWBASIC. It interprets these BASIC dialects with ahigh degree of accuracy, aiming for bug-for-bug compatibility. PC-BASIC emulates the mostcommon video and audio hardware on which these BASICs used to run. PC-BASIC runsplain-text, tokenised and protected .BAS files. It implements floating-point arithmetic in theMicrosoft Binary Format (MBF) and can therefore read and write binary data files created byGW-BASIC.This is the documentation for PC-BASIC 2.0.3, last updated 2020-09-26 19:20:46.It consists of the following documents: 2Quick Start Guide, the essentials needed to get startedUser's Guide, in-depth guide to using the emulatorConfiguration Guide, settings and optionsLanguage Guide, overview of the BASIC language by topicLanguage Reference, comprehensive reference to BASICTechnical Reference, file formats and internalsDeveloper's Guide, using PC-BASIC as a Python modulePC-BASIC

Table of ContentsPC-BASIC 2.0.3 . 2Quick Start Guide. 14Installation. 15BASIC survival kit . 16Program location. 17External resources . 18User's guide . 19The working environment . 20Special keys. 21Keyboard shortcuts . 24Alternative keys . 25Clipboard operations. 25Emulator control keys . 25Compatibility . 26Programs and files . 27Accessing your drives . 29Compatible BASIC files . 30Packages . 31Cassette tapes . 31Security . 32Connecting to peripherals . 33Printing. 33Serial and parallel ports . 33Changing the interface. 34Emulation targets . 35Codepages . 36Fonts . 40Table of Contents3

Redirecting I/O . 41Command-line interface. 41Text-based interface . 42Configuration guide. 43Changing settings . 44Synopsis . 46Positional arguments . 47Options . 48Examples . 59Language guide . 61Working with programs . 62Control flow . 63Arrays and variables . 66Type conversion . 67String operations. 68Text and the screen . 69The printer . 70Keyboard input. 71Function-key macros . 72Calculations and maths . 73Mathematical functions . 73Random numbers . 73Devices and files. 74File operations . 74Devices . 74Graphics . 77Sound . 78Joystick and pen . 79Disks and DOS . 80Serial communications. 814PC-BASIC

Event handling . 82Error handling . 83User-defined functions . 84Date and time . 85Including data in a program . 86Memory and machine ports . 87Features not yet implemented . 88Unsupported features . 89Language reference. 90Metasyntax . 91Definitions . 92Literals . 93Variables . 95Types and sigils . 95Arrays. 96Conversions . 96Operators . 97Order of precedence . 97Mathematical operators . 98Relational operators. 99Bitwise operators . 99String operators . 100Functions . 102ABS .102ASC .102ATN .103CDBL .103CHR .103CINT .104COS .104Table of Contents5

CSNG .104CSRLIN.105CVI .105CVS .105CVD .106DATE ENVIRON .107EOF .107ERDEV .108ERDEV .108ERL .108ERR .108EXP .109EXTERR.109FIX .110FN6(function) . 106. 110FRE .111HEX .111INKEY .111INP .112INPUT .113INSTR .114INT .114IOCTL .115LEFT .115LEN .116LOC .117LOF .118LOG .119LPOS .119PC-BASIC

MID (function) . 120MKD .120MKI .120MKS .121OCT .121PEEK .122PEN(function). 123PLAY(function) . 124PMAP .125POINT(current coordinate) . 126POINT(pixel attribute) . 127POS .127RIGHT .128RND .129SCREEN(function). 130SGN .130SIN .131SPACE .131SQR .132STICK .132STR .133STRIG(function) . 133STRING .134TAN .134TIME (function) . 135TIMER(function) . 135USR .135VAL .136VARPTR.136VARPTR .137Table of Contents7

Statements. 138AUTO .138BEEP .139BEEP(switch). 139BLOAD .139BSAVE .140CALLand CALLS . 140CHAIN .141CHDIR .142CIRCLE.143CLEAR .144CLOSE .145CLS .146COLOR(text mode) . 147COLOR (SCREEN 1) .151COLOR (SCREEN 3—9).152COM .154COMMON.155CONT .156DATA .157DATE (statement) . 158DEF FN.DEFINT, DEFDBL, DEFSNG, DEFSTR8159. 160DEF SEG .160DEF USR .161DELETE.161DIM .162DRAW .163EDIT .165ELSE .165PC-BASIC

END .165ENVIRON .166ERASE .166ERROR .167FIELD .168FILES .169FOR .170GET(files) . 171GET(communications) . 172GET(graphics). 173GOSUB .174GOTO .175IF. 176INPUT(console) . 177INPUT(files) . 178IOCTL .179KEY(macro list) . 179KEY(macro definition) . 180KEY(event switch). 181KEY(event definition) . 182KILL .183LCOPY .184LET .184LINE .185LINE INPUT(console). 186LINE INPUT(files). 187LIST .188LLIST .189LOAD .190LOCATE.191Table of Contents9

LOCK .

1. PC-BASIC 2.0.3. A free, cross-platform emulator for the GW-BASIC family of interpreters. PC-BASIC is a free, cross-platform interpreter for GW-BASIC, Advanced BASIC (BASICA), PCjr Cartridge Basic and Tandy 1000 GWBASIC. It interprets these BASIC dialects with a high degree of accuracy, aiming for bug-for-

Related Documents:

While traditional documentation cannot survive the demands of modern development , abandoning documentation altogether equally unviable. An ongoing, automated processes folds modern documentation into the DevOps framework and prevents documentation from becoming a bottleneck to rapid releases. Just as traditional documentation slipstreamed into

59 TV Oranje Basic Light Basic Basic 23.5 12187 H 29900 2/3 60 Schlager TV Basic Light Basic Basic 00.0 0 H 0 61 INPLUS Basic Light Basic Basic 19.2 11229 V 22000 2/3 TV VLAANDEREN is een merk gebruikt onder licentie door Canal Luxembourg S. à r.l. Maatschappelijke zetel: Rue Albert Borschette 4, L-1246 Luxembourg

The technical documentation for Boeing aircraft model. CSTA/CAMI Workshop #3: Technical Documentation 5 The volumes of documentation make it easy to understand how documentation problems . align company task cards with the aircraft maintenance manual (Rankin, 2008).

Excellent documentation supports excellent care. 4 Documentation Tip Card: General Documentation Tips Dep ar tm e n t o f V et e r a n s Af f a i rs , Al ed a E . L u tz V AMC Cl i n ic a l Do c um e nt a t io n Imp ro v em e n t P r o g ra m Acute vs. Chronic. It’s important to document conditions as Acute or Chronic, or even an

Clinical Documentation Improvement Clinical Documentation Improvement www.aapc.com 1 Introduction Clinical documentation improvement is a prevailing topic in the health care industry. Clinical documentation is the catalyst for coding, billing, and auditing, and is the con-duit for (and provides evidence of) the quality and conti-

terminology in coding (ICD-9-CM) And CPT also Lack of sufficient documentation or no documentation to support the healthcare claim/charges Documentation and charges did not meet medical necessity Documentation that is conflicting, contrasting, or ambiguous Documentation is nonspecific Reimbursements systems are “CODE .

v Cisco IP Phone Models 7960 and 7940 User Guide 78-10182-05 CONTENTS Preface ix About this Guide ix Related Documentation ix Obtaining Documentation ix World Wide Web x Documentation CD-ROM x Ordering Documentation x Documentation Feedback x Obtaining Technical Assistance xi Cisco.com xi Technical Assistance Center xi Contacting T

Young integral Z t 0 y sdx s; x;y 2C ([0;1]) Recall theRiemann-Stieltjes integral: Z 1 0 y sdx s B lim jPj!0 X [s;t]2P y s ( x t{z x s}) Cx s;t () Pa finite partition of [0;1] Th