Download apple!computer user group newsletter
Transcript
'. Inl'app'I.8 - - - - - - - - - - - - - - - - - - - - - - . "_'1 U~" Bit Twiddling Continued from page 16 345 REM POKE ALL 256, GET RESULTS W/PEEK 350 FOR IN= 0 TO 255 345 REM POKE BYTE INTO ASSEM. ROUTINE 360 POKE 897, IN 365 REM PASS CONTROL TO ASSEM. ROUTINE 370 CALL 896 375 REM GET RESULT WITH A PEEK 380 OUT= PEEK( 912) 390 REM PUT GOSUB 420 HERE TO SEE VALUES 400 NEXT IN 410 END 420 PRINT IN, OUT : RETURN Execute with RUN 350 The hi-res picture itself isn't reversed, just the individual bytes comprising the display. A little experimentation reveals that geometric figures and hi-res letters (if each is a single byte) work the best. Notice in the accompanying examples that the words are still read left to right but that the individual letters are reversed. As I originally wrote the' program (in Applesoft) , i t created the proper output in approx 40 seconds for all 256 possible input values. With the substitution of this short assembly program for the ''working'' part of the routine, the time is down to about 3 seconds. The following uses the hi-res screen and alters its display simply to illustrate the speed at which all 1024 bytes of hi-res display can be changed using .our look-up table. 425 430 435 440 445 450 460 470 480 490 500 510 520 530 540 550 560 REM 'HI-RES BYTER' :USES LOOKUP & CONVERT HGR REM USE YOUR PIC IN PLACE OF 'MY.PIC' PRINT CHR$ (4) "BLOAD MY. PIC, A$2000" REM CREATES ROUTINE FROM $391-$3B8 POKE 913, 169: POKE 914, 0 POKE 915, 133: POKE 916, 6 POKE 917,168 POKE 918, 169: POKE 919, 32 POKE 920, 133: POKE 921, 7 POKE 922, 170 POKE 923, 134: POKE 924, 8 POKE 925, 177: POKE 926,6 POKE 927, 132: POKE 928,9 POKE 929, 133: POKE 930, 10 POKE 931, 32: POKE 932, 130:POKE 933,3 934. 164: POKE 935, 9 GOTO 17 YEAR-ROUND >PERSONAL FINANCIAL MANAGEMENT TT III PERSONAL INCOME, EXPENSE, A.~D TAX ADJUSTMENTS (ACTUAL & PROJECTED) III III PERSONAL NET WORTHI3AlANCE SHEET (ACTUAL & PROJECTED) III III INVESTMENT PORTFOLIO TRACKING & REPRICING III III ESTATE AND RETIREMENT PlANNING. III III PERSONAL FINANCIAL UTILITIES III III MINNESOTA TAX WORKSHEET III III FEDERAL TAX WORKSHEET III Requires APPLE 11+, lie with 48K, 1 or 2 disk drives, 132 column printer or compatible system. Complete with two system diskettes and a user manual. , $50.00 TEN DAY MONEY-BACK GUARANTEE SEND YOUR ORDER TO: POST Software Inc., 1779 E.Arlington Ave., st. PaUl, MN 55119 0(612) 772-2515 o SHIP MY ORDER C.OD, VIA U'p'S, NAME o ENCLOSED IS MY CHECK PLUS 6% SALES ADDRESS TAX AND $2 SHIPPING. CHECK ENCLOSED FOR $ TELEPHONE -16- ---- _