Call-A.P.P.L.E. Magazine 1978-11/12
Total Page:16
File Type:pdf, Size:1020Kb
• • APPLE PUGETSOUND PROGRAM LIBRARY EXCHANGE NOVEMBER-DECEMBER 1978 $1.00 Vol. 1, No. 10 6708 39th Avenue S. W. Seattle, Washington 98136 (206) 932-6588 BYTES from the APPLE Val J. Golding, President (206) 932-6588 Software Stuff, etc., etc., etc., etc., etc., etc., etc., etc., etc., etc., etc., Michael Thyng, Secretary (206) 524-2744 Dick Hubert, Administrative Asst. (206) 255-7410 by Val J. Golding Darrell Aldrich, Program Editor (503) 581-8600 Ron Aldrich, Asst. Prgm. Editor (206) 782-7082 The BIG NEWS for this issue is APPLESOFT WORKSHOP is here! Bob Huelsdonk, Technical Consultant, Basic (206) 362-4910 The cost is S6.41 postpaid, and orders will be accepted, subiect to the Don Wdliams, Technical Consultant, Assembly (206) 242-6807 following conditions: This preliminary version w~1 be updated several Steve Paulson, Circulation (206) 242-2700 times over the next few months. Updates will be ava~able at $2.00 postpaid. This version is disk-dependent in that it requires disk for certilin routines, including Append. Every attempt has been made to debus it, but IN THIS ISSUE •••••••••••••••••• Page some may stiR remain. Please allow 30 days for delivery on this and the other new Library Paks. Bytes from the Apple. 1 LO-RES Color Assembly Routines ..................... 2 tibrary Paks 3 and 4 are expected to be available by the time you Checkbook Patches for Disk. 5 . "ad this. Pak 3 will contain Home E~ak 1, Musit;pak 1 and more games. Use of the Game Paddles . 5 Pak 4 wit contain a complete financial program, arnortzation, etc., along Write-Apple ................................... 7 with the usual compliment of games and demos. Price is $5.41 each, Applemash .........................•.......... 7 postpaid. & Now, the Further Adventurs of Mr. Ampersand . 8 Transient Voltage Protection ......................... 8 Elsewhere in the software world, Jim Hoyt of Apple Comouter has Minutes of the October Meeting . 8 asked us for permission to reprint Ron Aldrich's CONVERT in Contact! We Apple-Sharing. 10 need your programs and articles for Call-APPLE and the library. Don't be The Apple Widow .............................. 12 shy! PEEKS, POKE and CALLS ......................... 14 Apple Source ........ ; ..... ; ..... '. 15 We'vllimited ourselves to this one page this month. Even with 20 Binary Disk Program Identifying. 17 pages, we ran out of space. Don't miss Gene Jackson's Checkbook Resurecting the Dead (Programs). 18 modific:IIions for disk in this issue, or the feature of Lo-res cofor assembly LO-RES Graphics Screen Map ...................... 18 language routines . .." NOVEMBER MEETING DECEMBER MEETING 7:00 P.M. TUESDAY NOVEMBER 21, 1978 7:00 P.M. TUESDAY DECEMBER 19, 1978 Computadand 1500 South 336th Street Federal Way Empire Electronics 616 S.W. 152nd St. Seattle ,.-.- CALL -APPLE NOVEMBER-DECEMBER, 1978 PAGE 2 Oompute,LGftd™ ~ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * I I I WE'RE TIRED OF THE RAM RACE • • • * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 16K RAM CHIPS 4K RAM CHIPS N:-E":-C:-UPD416D N:-E":-C:-UPD414D CERAMIC CHIPS PLASTIC CHIPS 1 - 5 SET S $ 120 • 0 0 1 - 5 SET S $48.00 6 - 1 1 SET S $ 1 1 2 • 0 0 6 - 1 1 SETS $ 4 0 • 0 0 12- 2 4 SET S $ 1 0 4 • 0 0 1 2 - 2 4 SETS $32.00 2 5 - UPS E T S $ 96. 0 0 2 5 - U P SETS $ 24. 0 0 THESE CHIPS ARE IN STOCK AND READY FOR IMMEDIATE DELIVERY! COME AN' GET 'EM! FOR THOSE WHO CANNOT COME INTO OUR STORE SHIP. SCHEDULE "An + $.50 CENTS FOR EACH SET THEREAFTER FOR SHIPPING & INSURANCE. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * COME TO OUR STORE AND MEET OUR NEW STAFF! COME SEE THE NEW APPLE SOFTWARE,MORE NOW THAN EVER BEFORE. IN STOCK! ASK ABOUT OUR NEW EXTENDED MAINTENANCE WARRANTEE FOR YOUR APPLE II COMPUTER. o VISA/BAC o M/C Expiration date: ___ Add handling and shipping charges as per schedule. Shipped by UPS unless specified otherwise. Delivery is stock on most Card': _______________ items. No delay in shipment for payment by cashier's check, money frder or charge cards. Allow three weeks for personal Signature: ______________ checks to clear. Washington state residents ad f).4% sales tax. Availability, prices and specs may change without Name (Print): ___________-- notice. SHIPPING A. $2.00 C. 10.00 Address: SCHEDULE B. 4.00 D. 20.00· City: State: Zip: CcNnpute4Gftcl'M 1500 South 336th St .•. Parkway Center, Suite 12 • Federal Way, Washington 98003 Tacoma (206) 927-8585 • Seattle (206) 838~9363 Cf-LL --APf"L£ NUVEl"'"tBEH--DE(""'EMBER, 1978 PAGE 3 USE OF APPLE-II COLOR GRAPHICS These will generally be the same, and always so if the user sets the IN ASSEMBLY LANGUAGE COLOR bye via the SETCOLOR subroutine provided. Of the above variables only H2, V2, and MASK can be clobbered by the monitor. The APPLE-II color graphics hardware will display a 40H by 48V Writing a color graphics program in 6502 assembly language grid, each position of which may be anyone of 16 colors. The actual generally involves the following procedures. You should be familiar with screen data is stored in 1 K bytes of system memory, normally locations subroutine usage on the 6502. S400 to S7FF.(A dual page mode allows the user to alternatively display 1. Set the video mode and scrolling window (refer to the section on locations S800 to SBFF). Color displays are generated by executing APPLE-II text features) programs which modify the "screen memory." For example, storing 2 Clear the screen with a call to the CLRSCR (48-line clear) zeroes throughout locations S400 to S7FF will yield an all-black display sllbroutines If you are Iising the mixed text/graphics feature then call while storing S33 bytes throughout will yield an all-violet display. A CLRTOP number of subroutines are provided in ROM to facilitate useful 3. Set the color using the SETCOLR subroutine operations. 4. Call the PLOT, HLiNE. and VLlNE subroutines to plot points and The x-coordinates range from 0 (leftmost) to 39 (rightmost) and the dlaw lines The color setting is not affected by these subrolltines. y-coordinates from 0 (topmost) tn 47 (bottommost). If the user is in 5. Advanced proglammers may wish to study the provided subroutines the mixed graphics/text mode with 4 lines of text at the bottom of the and addressing schell1es When you supply x- and y-coordinate date! screen, then the greatest allowable y-coordinate is 39. to these subrolltines they generate BASE address, horizontal index, The screen memory is arranged such that each displayed horizontal dlld even (Idd III CI ,I, Infllilnation. You can write more efficient line occupies 40 consecutive locations. Additionally. even 'odd line pairs "IIIIi'dlll' If \111' ''['11''11 tillS IIlfllllllation dilectly share the same byte groups. For example, hoth lines 0 and 1 will have PlOTl ""llIlIlItlnp. (addIP" SF80E) their leftmost point stored in the same byte. at location S400; and theil PUIPOW TIl plot squale, in standard resolut'on mode with no Y rightmost point stored in the byte at location S427 The least significant 4 i. IlIifdinate chalHj8 from last call to PLOT. Faster thall PLOT bits correspond to the even line and the most significant 4 hits to the odd ,I,p, 1Il0,t lecently ,;pecified COLOR (see SETCOL) line. The relationship between y-coordinates and Illemory addresses is rlltlY X-Illoldinflte ill Y-Relj (0 to 39\ illustrated on the followin\j page. hit A-R'" ilidlheled Y-Reg alld carry u!lchanged The APPLE-II color graphics subroutines proVided in ROM use a Example IPloltlll1j two squale, - one at (3, 7) and one at (9, 7)) few page zero locations for variables and workspace You shorrld avoid LOY # S3 X-coordinate usmg these locations for your own III oyralll vanahles It is a good rule not to use page zero locations S20 to S4F for any pro\IICHllS since they are lOA # S7 Y-coordinate used by the monitor and you may wish to use the monitor (for example, to JSR PLOT Plot (3, 7) debug a program) without clobbering your own variables. If you write a program in assembly language tbat you wisb to call from BASIC with a lOY # S9 New X-coordinate CALL command, then avoid using page zero locations ':20 tn SFF for your ISR PlOTl CClIl PLOT1 for frist plot. variables. (continued on page 4) Color Graphics Parje Zero Variable Allocation SPECIAL NOTICE GBASL S26 This issue of Call -Apple, as ~ou .ay GRASH S27 have noted, is dated November-December, the reason for this beins our switch last issue H2 S2C to a bulk mailins rate. While we had anti S20 cipated some delay, it 1urned out be ins V2 considerablY .ore, and forced us to drop MASK S2E bacK on our publishins schedule, since it was no1 possible to pick it UP. This has COLOR S30 resulted in a number of chanses, notablY 1he next issue will be dated January. The GBASL and GBASH are used by the color yl aphics <;ubroutine\ a<; a ~on1hlY freouency will not be chansed. pointer to the first (leftmost) byte of the current plot line. The (GBASl), Y addressing mode of the 6502 is used to access any hyte of that line Deadline for the Wis-Wiz contest has COLOR is a mask byte specifying the colin for even lines in the 4 'ed<;t been exLended Lo January 15, 1979 and the significant bits (0 to 15) ilnd for odd line~ III the 4 most significant bits mystery program contesL to Februar~ 15th. CALL -AF"PLE NOVEMBER·-DECEMBER. 1978 PAGE 4 COLOR GRAPHICS (from page 3) HLiNE subroutine (address SF819) Example: /plot a square at coordinate (SA, S2Cll Purpose: To draw horizontal lines in standard resolution mode.