← Lisa BASIC-Plus 2.0 Language — manual with January 1984 release notes

Lisa BASIC-Plus 2.0 Language — manual with January 1984 release notes

From the originals

12 scans

Machine-transcribed text and image descriptions. Check the linked original for uncertain words or fine print.

These are transcribed pages from the documents, not the full publications. Open the original for the remaining pages.

Image 1

Lisa® BASIC-Plus 2.0 Language File Edit Search Type Style Print Find ... ⌘F Find Same ⌘S Find & Paste All ✓Separate Identifiers All Occurrences ✓Cases Need Not Agree Cases Must Agree -LOWER-MIS.TEXT B E G I N S O R T L O O P FOR X1% = 1% TO X%(11%) \ V3% = X%(36% + X1%) \ X2$ = SPACE$(V3%) \ W9% = V3% + 4% \ V4% = 509% / W9% \ W7% = 46% + (X1%-1%) * 7% \U7$ = SPACE$ (511%-V4%*W9%) \ FIELD #1%, W9% * (W4%-1%) AS X4$, W9% AS U$ FOR W4% = 1% TO V4% 1540 FOR W4% = 7% TO 1% STEP -1% \ W1% = X% (W7% + W4%) \ IF W1% THEN LSET X2$ = MID (V$, V2%(W1%), X%(129% + (W1% ! STEP THROUGH FIELD NUMBERS ! IF NOT ZERO THEN ADD APPROPRIATE 18000 ! ! ! 18020 GOTO 18 \ V2% = 18040 W7% = V0% - 385% + X%(13%) \ V2% = FNV%(W7%, 18040%) \ V1% = INSTR(1%, X$, 'N \ V2% = FNU%(6%, 18040%, W7%, \ V2% = FNU%(7%, 18040%, W7%, IF (V0%-385%) ! CALC ADDRESS OF VR ! GET VR BLOCK ! CHECK FOR AVAILABLE ! ERROR IF NONE ! ERROR IF OVER LIMIT

A white page with a rainbow Apple logo at top left, a large serif title above a screenshot of the Lisa BASIC-Plus code editor showing a Search menu open, and a beige mouse with a hand clicking it at the bottom.

Reading notes: Small code text in the left pane and the partially obscured menu items near the Search menu are uncertain at the edges. Reading order of the code screenshot is approximate because it spans two panes. Line 18040 and the lines after the menu overlay may be partially hidden by the menu.

Printed product names
Lisa · BASIC-Plus 2.0
Languages
English
PDF page 1

'- Lisa r, BASIC-Plus 2.0 Language BEGIN SORT LOOP Need Not Agree FOR X1% = 1% TO X%(11%) V3% = X%(36% + X1%) '---- ........ - .. X2$ = SPACE$(V3%) W7" = 110" - 365lii + X"(ffi) \ V2" = FNI/!I( W7!I, 1804(11) \ Vi" = INSTR(l", X $, ' \ V2" = FNUll( 611. 18040!1, W7!I, \ V2" = FNUll( 7", 18040", W7!I, IF (VO~385lii) CA LC ADDRESS Of I<Il GET IIfl BLDCK CNECK FOR AVAI LABLE ERROR IF NONE 1540 ERROR IF OVER LIMIT \ W9% = V3% + 4% \ V4% = 509% I W9% \ W7% = 46% + (X1%-1%) • 7% \U7$ = SPACE$ (511%-V4%*W9%) \ FIELD 81%, W9% + (W4%-1%) AS X4$, W9% AS U$ FOR W4% = 1% TO V4% . - FOR W4% = 7% TO 1% STEP -1% \ W1% = X% (W7% + W4%) \ IF W1% THEN LSET X2$ = MID tV$, V2%(W1%), X%(129% + (W1% I STEP THROUGH FIELD NUMBERS . ! IF NOT ZERO THEN ADD APPROPRIATE

Reading notes: The supplied extracted text is program source code, not advertising copy; no headline, products, prices, or dates were identified. Transcript intentionally left empty per instructions because exact extracted text is preserved separately. OCR-like corruption is present throughout the supplied text (e.g., 'Lisa r', 'Need Not Agree', 'IIfl', 'Vi"'), so the exact content is uncertain.

Languages
English
PDF page 2

BASIC-Plus for the Usa

BASIC-Plus for the Usa Release 2.0 Notes What's In the BASlC-PlUS Release Notes? These notes deSCribe situations that were brOt.qlt to our attention after it was too late to dOCt.ment them In tile BASIC-PIUS rncruals. Insert tt.ese notes In tne baCI< of their respective rncnJals, so that you can refer to tnem as necessary. InCI~ In tJleSe notes are revised versions Of the WOIkSl1qJ user's GuIde Appendix B end the B4SlC-PJus user's GuIde Appendix E to repl~ the copies bOUld In your mcn.aals; take a moment now to make tile St.btltutlons. If you haVe a question or a problem that you can't find the a'lSwer to, eltner In Ute mcn.tals or In theSe notes, you shoUld call the Lisa TelephOne ~rt line, (800) 553-4000. J/nI8ry 1984

Reading notes: Headline reads 'BASIC-Plus for the Usa' in the extracted copy; 'Usa' may be an OCR error for 'USA' and the line may continue past the extracted text. The product name appears as 'BASlC-PlUS' and 'BASIC-PLUS' in the body, likely OCR variants of BASIC-PLUS; the distinct spellings are listed as printed. Date line 'J/nI8ry 1984' is garbled and probably reads 'January 1984'; it is listed exactly as extracted. Body contains character substitutions such as 'deSCribe', 'brOt.qlt', 'dOCt.ment', 'tile', 'tne', 'WOIkSl1qJ', 'GuIde', 'Lisa TelephOne' and '~rt', and the phone number '(800) 553-4000' should be checked against the original.

Printed product names
BASIC-Plus · BASIC-PLUS
Printed dates
J/nI8ry 1984
Languages
English
PDF page 4

WOrkstlJp Chapter 1

WOrkstlJp Chapter 1 WOrkstlOp Olapter 1 WOrkstlJp Chapter 1 TO Install tne Pasoal·ICllgU8ge tI'ld WOrkShOp software from tne set Of micro diskettes packaged In your ICllgU8ge rnc:nJal binder, refer to InstalllrYJ the Office system SOftware In ~Ix G, set Up Proceda'es,ln the LIsa 2 owner's QlJde If you plcrl to use the Office System, you rrust first Install Ule Office system 2.0 mIcro diskettes. You do not need to Install tile Office System SOftware If you Intend to do only ICllgU8ge deVelopment work. Before you Insert the micro diskettes, make sure you CCfl see the red tabS from the front of the micro diskettes. Start lnStalllng with steps 1, 2, crld 3 on page G31. Then follow tills ~ 4> Tum the Usa on by pressing the on-off bUtton once. After a feW secondS, you'l hear a 01101<.; Inmed1ately press the spaa!Dar. 5) The Usa goes tflrOUtIl a self-test. When a meru Of symbOls appears In tne ~r left-hcl'ld comer of tne screen, press 8'ld hOld doWn the ~le key While you type a 2 -- on the main keyboard, not on the runerlo keypad. 6> When the maln meR.I snown (J'I page G32 8R)ears, cliCk the mouse once on the Install Dox. 7> When the alert box with the message "TIle Usa Is Installlng s~ SOftware version 2.11' appears, cllCk Don't Erase. When the first mIcro diskette Is Installed, It Will eject. COI'ltll"lJ9 Installation by fOllowing the owner's Qdde Instrootlons frmI step 6, 1nse~ the remaining l~ diSkettes In Order. After SOOC8SSfUlly addlrYJ Pascal to a ProFile conta1n1ng the Office System, If the system Is merely allowed to retJoOt, the default Of the Environments windOW will cause the WOrkShOp Shell to start l4l. To cause the Initialization to pause at the Environments window In order to exsmlne or Cha'lge the default, press tile spCEe IJar after Ule macnlne self-test, wnUe the hOUrglass leon Is stowing. If you nave ).1st prlnted crlytnlng on a daIsy Wheel printer frcm the Office System, tI'ld you return to the WOrkShop uslrYJ the EnvIronments windOW, printing to logical deVIce "-printer" will be gamled tIltil the printer Is switched off and then on again.

Reading notes: Heading and running text contain frequent OCR-like character substitutions (e.g., 'WOrkstlJp', 'Olapter', 'ICllgU8ge'), so spellings are uncertain. Reading order is partly disrupted by repeated headers and interleaved text. Some numbered step text is garbled, including 'I'Ylnlng' and 'SOftware'.

Printed product names
Pascal · Office System · Office System 2.0 · Lisa 2 · Lisa · ProFile · Environments · Workshop Shell
Languages
English
PDF page 5

WOrkShOp Chapter 1 WOrkShOp Chapter 1 WOrkshOp Chapter 2 WOrkst'q) Chapter 2 WOrksrop Chapter 2 WOrksrop Chapter 2 WOrkShOp Chapter 3 WOrkshOp Chapter 3 .JtnJsr)' 1984 l1le print COII.ISOS Of the Editor always use the logical deVice --printer- set In the System Ma'lager. Choosing DaIsy Wheel Printer or Dot Matrix Printer from the Print merlJ dOeS not Cha'lge the system's configuration, bUt only adjusts the Editor to the lnteMed deVice. MY progrcm Intended to IU'l as a baCkQ1'CUld process ~eBacI<grolflCProcess) roost InclUde frequent ens jOOlclous calls to the Operating System procewre Yield_CPU. Hence, system utlllUes SI'lOUld never be IU'l In the baCkQ1'CUld. Also, a baCkgroull process ShOUld not haVe CIly Interaction wIth the console, a'ld It CCIYlOt pull events from the hardWare event (JJeUe. ' Oeslglate user flIes with the patn1crne "St-£LL." only If you want them to appear In the envIronments window as an alternaUve shell. You ccmot directly rencme a flle to a rane tnat Uiffers from the original only In the case Of the CharaCters, becaUSe the Internal representation of the names Is the sane. Instead, rename the fUe to a tet'T1X>rary name .. ana then Change that to the ncme you WCI'lt. If you t.mlCUlt the prefIx vol\.llle by ejecting the diskette, scavenging the VOll.lTle, or using the t...n'nCU\t conrnand, the bOOt vol\.llle automatically beOOneS the prefix voll.lTle. AsSl.lTle that a flle FOO.TEXT haS been dalilaged CIld no longer haS the Internal representation of a textflle. If the user enters the File Ma'lager CIld tries to copy the flle to -PRINTER., the system generates a bUS error Cfld enters the DebUgger. The OJtput Redirect fl.llCtion of the System Ma'lager dOes not correctly ha1dle screen output tnat uses GOTOXY, for example, screen output dOne by the File Mal9:J3r When l1stlng wildCard matches. 1llls results In redirected output to the printer being oveNrltten on one Une. USe --printer" Instead of --RS232-B- When redirecting output to the printer.

Reading notes: Heading and chapter OCR variants (e.g., WOrksrop, WOrkst'q)) are uncertain. Garbled characters such as 'ens jOOlclous' and 'CCIYlOt' in body text are uncertain. Reading order of OCR fragments is uncertain.

Printed dates
1984
Languages
English
PDF page 6

WOrkstlOp If you ChCIlge the raTle. Of a suspelided 'lie -- su:tl as the Chapter 3 Pascal COO1)l1er -- lWld at~t to manage the process from the System f'1af lager, the new name appears In the pattncme, bUt you rrust still use the oJdname to k1l1 the process. WOrkSflOp me Editor cna ~ the creatlon date Of a text ftle to tile Olapter 4 current date each time the rue Is modlf1ec1 WOrkshOp If the lnltla11zatlon Of the Editor falls ooe to leD< of diSk space Chapter 4 (error 3(9), Md space on the diSk Is then made free, the next atter11lt to start the Editor wlll also fall (error 304~ You roost enter the Process Ma'lager Of the System Ma'lager, KILL the Editor process, CIld then retry. WOrkshOp Tne lcrg.l8ge processors, Editor, CIld other ut1lltles of the Chapter 4 WOrkShOp e)(p8Ct as 1f1)Ut a staldard .TEXT me. lne Internal stJ'\.lJture of a text rue In a bIOCk-stJ'\.lJtured deVice Is deSCrlbed In the Lisa PasCal Reference MinIal: • Each page (two 512-byte blOCkS) contains some runber Of cor1l)lete lines Of text and Is pa1deCI with 0011 charaCters (ASCII 0) after the laSt Une as necessary to COfT1)lete the page. • Two 512-byte header blocks are also present at the beglmlng Of the f11e. These mayor may not contain Information. • A sequence Of spaces (ASCII 32 decimal, $20 hexadecimal) can be corTl)ressed Into a 2-byte COde rsnely, a OLE Ch8racter (ASCII 16 decimal, $10 hexadeCimal), followed by a byte contalnlngthe value 32 declmal plus the ruroer Of spaces represented. WOrkshOp The file ncme -P,opfR. TEXT" Is reserved for the default Olapter 4 statlonery tefT1>late Of the Editor CI1d snould not be used for other purposes. JinIBr}' 1984

Reading notes: Heavy OCR-style character substitutions (e.g., 'WOrkstlOp', 'Olapter', 'lne') make several words uncertain. Reading order across columns and chapter labels is ambiguous. Error codes 309 and 304 are partially garbled and may be misread.

Printed product names
Editor
Languages
English
PDF page 7

Chapter 4

WOIkstlOp Chapter 4 WOIkstKJp Chapter 4 WOrkShOp Chapter 4 WOJ1(stq) Chapter 4 Atter\l)tlng to enter or paste more thCrl aJout 1000 CharaCters Into one line causes a bus error. If you nave a Debugger, type <g> to recover Cnl exit tile WOrkShOp Shell before nmlng tile EdItor again, OtlleNlse no meRJS appear .., you roost use f'I'o1l Cnl OSQUIT. A tJ1ple-ollOk wIll not select tile last line In a fUe U'lless U'lat line ends with a carriage retum. If you are wor1dng on n&ly files - or a feW large files -- CI'ld the Editor becaTles Sluggisn., save cn:I put away tile files. Then either exit the WOrkShOp Shell CI'ld lU'lthe W011<ShOp Shell agal~ or use the OeleteResident corrmnl Of the Manage Process Stmystem Of the System Menger to ~rarUy delete the Editor fran tile llst of resident processes. When USing the Tear Off Statlonery corrrnarId, type In the volt.me name If It differs from your bOOt volt.me. WOJ1(ShOp cursor reslC1le mlght be left on the screen In the Editor and tile Chapters 4 Tnnfer progran, especially after CIl error message has and 10 appeared. WOlkShOp The ranes of files created by tile Editor CIld TnrlSfer will be Chapters 4 eta.gad to be all ~r case, regarUless of IVfI they are typed WId 10 In. WOrkShop Chapter 7 W011<snop Chapter 7 WOIkstKJp Olapter 7 .JJn/sr)' 1984 If rrultiple errors occur ClJrlng a llnk, ClJe an to attempt to l1nk regular U'l1ts with Intrinsic U'l1ts, the Linker will terminate after reportlng only the first error. When the Linker detects the error of ~lloate entry rsnes -- for exafl1)le after It reads the sane file twice -- the error message may be difficult to Interpret becaUSe It Is formatted lroorrecUy. If CIl Intrinsic U'llt Is linked bUt not needed (I.e. no U'l1ts In Its library file are used), the Linker generates error 24: U'l8xpected blOCk type In IU file.

Reading notes: Repeated OCR-garbled chapter headers (e.g., WOIkstlOp, WOrkShOp) with inconsistent characters. Possible OCR errors in body text such as 'Stmystem' and 'Menger'. Reading order of running headers and body text is uncertain.

Printed product names
WorkShop · Editor · Linker · Debugger · OSQUIT · Manage Process · System Menger · Intrinsic
Languages
English
PDF page 8

WOrkSl'lOp Chapter 8 WOrkShOp Chapter 9 WOrkShOp Chapter 9 WOrksrop Olapter 10 WOrkShOp Olapter 10 WOrkShOp Chapter 10 WOrkShOp Chapter 10 For tne DebUgger, >PR Z .15 print to SLOTZCHANZ, not SLOTZCHMIL Upper cn:I lower ·are reversed In the mcn.aal. 1lle exec ftle preprocessor dOeS not haVe· an easy way to Input sll'WJle spaces, even tJ'OJI1l tnese are """,ired to respoi Id to some WOrkShOp messages: WhIle waltlng for a space 111lUt, the rest of the exec rue Is constITleCI withOUt effect. Either set l4l your exec rues so they dOn't require space Inputs, or eliminate all speas except the ooe you want em use the ro-space optlon In the preprocessor. In an exec ftle, an att.en1)t to pass a literal ~. to a program stDl as CCDESIZE will rot work. DIsplay Of error n essage 647 wtllle you are using the TlCIlSfer utility probably Indicates tnat after a tlmeout theprognm haS ,allld. to receive tile appropriate hCnlSnake from tile host. If you type any key dUrlng "PlaybaCk from What file- In tile Tnnfer prognm, the playbaCk will abOrt. If you use the Tnnfer prog.t3Tl to make contact with a hOSt COf'f1JUter, and you exit the ProgJ8Tl withOUt logging off e>eplloltiy, the connectlon will not be automatloally tennlnated. This Is usually a convenleroe, bUt ml~t not meet user expectatlons. When the WOrkShOp snen Is lnltlallZed, all serial ports are confl{JJl9d by default as If they were printers (e.g., 9600 baUd, OTR twIdStlaI<e, automatlo linefeecJ InserUon), Whether or not tney are llsted as soon by Preferences •. If you ~Uy use cn:I tnen exit the TranSfer program, the printer configuration Is restored automatloally for eN.. Y tnose ports l1sted In Preferences as printers; others will retain the properties set by tne TlCIlSfer prognm The EdItor will not reconfl~ ports that nave been Char M]8d by PortCooflg.

Reading notes: OCR noise and reversed letters throughout (e.g., 'WOrksrop', 'SLOTZCHANZ', 'Tnnfer') Reading order of headers and body text uncertain

Printed product names
WOrkShOp · TlCIlSfer · Preferences · PortCooflg
Languages
English
PDF page 9

WOrkShOp Chapter 10 To terminate recordlng to a f1le opened by Ule TnrlSfer progrcm dUrIng ~rd to-, open the control meru and again select ~ecord to-. Tnls terminates recordlng and closes Ule file. Note that, U'lllke the Ealtor, TnrlSfer dOeS not artomatlcally lnsen a carrlage return at the end Of the file. If you use this recordlng to capture text soon as a source prognm, and tile lqJ8ge processor (SOOh as BASIC-PIUS) expects to see a carrlage return at the end Of the rue, at~tlng to lU'l the raw recon1ed text mlIIlt C&ISe the system to hCrlg. WOrkstlOp Tne rnarl.I8l states that the defa4t tBldshake In the TriIlSfer Olapter 10 progrcm Is XorvxOff. The correct default Is ~. WorkShOp Because most progJal~ do not allow you to eject a alSI< In Chapter 11 Whlle they are nmlng, plCl'l anead In large ~tlons, SUCh as mass· tnrlSfers, to allow a pause for Chcrlglng alSkS. WOrkShOp ASCII Characters In the rwege hex 20 thl'OUf1l hex 7E are Appen:Ilx B St4)pOrted for screen alsplay, for prlntlng til a dot maU1x printer, and for printing on a daisy Wheel printer with the fOllowing print Wheels: • GoUllc, 15 pitch • Prestige Elite, 12 pitch • COUrIer, 10 pitch • BoldfacelExecut1ve, PS. Prlntlng ~n Chn'acters to' a daisy Wheel printer Is not ~rted for the three print Wheels with Modem type styles. Tne Character set In the ~x SI'O.Ild ShoW the fUll Lisa CharaCter set. All Of the aadltlonal Characters cal be alsplayed on the screen. selected st.flSets cen be prlnted on dot matrlx and dalsy Wheel prlnters. A new page 8-1 Is attacned; take a moment now to make the stbstltutlon.

Reading notes: Heavy OCR-style character substitutions (e.g., 'WOrkShOp', 'Ule', 'Tnls') in the source text make several words uncertain. Reading order is jumbled, with running headers ('WorkShop', 'Chapter 10/11') interleaved with body text.

Printed product names
Prestige Elite · Courier · Lisa
Languages
English
PDF page 10

Appendix C

WOrksnop Appendix C If you wiSh to to posItion the cursor at coorOlnates (x,y) on the screen, use the two-Character sequence <ESC>- (I-EX 18-31), declmal 27-61) followed by Ule screen's y coordinate cnl then Ule screen's x coordinate -- note the Order of the St4lPlled artJITBlts. The nrge fOr the screen's y-axis Is from ASCII decimal 32 «SPACE> on tne keyDoard), representing a screen COOrdinate Of 0, thrOUr1l ASCII deClmal 63 (1 on the keyboard), representing a screen coon:J1nateOf 31. The rwge for the screen's x..;,ax1s Is fnm ASCII declmal 32 «SPACE> on the keyDoard), represenUng a screen coordlnate Of 0, t.tlrOU;1l ASCII decimal 119 (w on the keytlOanj), represenUng a screen coordlnate Of 87. If you ~ly coornlnates outside tnese la'lgeS, a bUS error may result. Refer to the revised Appendix 8, St4)plled with theSe release notes, for a corT'C3lete Chart of CflaI'CI)ter 8CJ.Ilvalents. For exafC)le" In ~IC, either Of the two statements below would place the cursor at posltlon x-o, y-L or PRINT Cl-RS(27); Cl-RS(61); CI-R~3); CI-R~2);

Reading notes: Heavy OCR-style character substitutions (e.g., 'WOrksnop', 'St4lPlled', 'CflaI'CI)ter') make several words uncertain. Some decimal values in the cursor-positioning passage (e.g., 'ASCII decimal 63', 'decimal 61') appear garbled or inconsistent with the stated ranges.

Languages
English
PDF page 11 · PDF page 3

The image is an entirely blank white page with no artwork, layout elements, or markings visible.

PDF page 12

BASIC-Plus The System error variable ERR Is reset to zero after retum1ng Chapter 3 to tile OOII.uaud line. If you Wa"It to preserve tne value of this error return, use ~ ERROR processing, and store tile value In a'lOtner variable. BASIC-Plus Olapter 3 BASIC-Plus Olapter3 ReruTmering sometimes results In a ftle beQlmlng with BTEfwP being left on tile disk. l(JlOre or delete the BTE~ file. When you use ~le period to termlnate your program, the 001111 ald Is sometimes lrolUded In tile 1f1,)Ut strecm Of the next Une,. giving U1)redlOtable results. Also, If you are redirecting your output to a dOt-matrtx prtnter, the cnaracter generated will tum on wide print. To restore normal print wlcM, tum Off the printer cn2 tum It baCk on again. BASIC-Plus BASIC-PIUS attefT1)ts to IU'l a progran even after detecung Olapter 3 syntax error(s~ BASIC-Plus If BASIC-Plus Is processing a single operaUon with a lOng Chapter 3 COfl1)UtaUon tlme (for eXClJ1)le, a"I INV statement), tile Lisa m1~t not respor Id (J,dCl<ly to ~le period. BASIC-PlUS Whlle line runber zero Is a legal runber, rerunberlng starts at Chapter 3 tile first line wltJl a ruooer greater tIWl zero. BASIC-Plus me mcnJal states tnat tile. smallest representable runber Is Chapter 4 :!: 4.9E-324. The smallest representable runber Is really :!: 4.94D66E-324. All otller representable rurIlers are Integral rrulUples of tnat rumer. BASIC-Plus Chapters BASIC-Plus Chapters A WhOle ......mer cal be printed out to a maxlrrun of 12 places before IJ)lng to sclentlf1cnotatlon. You can use the fOllowlng to teJmlnate irpJt, In aadltlon to a:t Apple L! FF . (ASCII 12 deClmal, $DC hex) CLEM ESC (ASCII 27 deCImaL $1B hex) Apple J LF (ASCII 10 decimal, $OA hex) BASIC-Plus BASIC-Plus ctoesn1t append Sly fUrther CharaOters fOllowing 8 Chapter S line termlnator Char~ter at the end of a PRINT or ~ statement. .J/ntJ8Iy 1984

Reading notes: Several words contain OCR-like character substitutions (e.g., 'tile', 'retum1ng', 'BTE~', 'dOt-matrtx', 'Ju' or 'lU'l'), so exact spelling is uncertain. Reading order is jumbled across repeated running headers ('BASIC-Plus', 'Chapter 3') and fragmented lines.

Printed product names
BASIC-Plus
Printed dates
1984
Languages
English