00000000: 00 80 5E 55 3A 48 41 43 4B 45 52 0D 0D 0D 20 20 |..^U:HACKER... |
00000010: 20 20 20 20 20 C7 C5 D4 D4 C9 CE C7 20 C9 D4 20 | ....... .. |
00000020: D3 D4 D2 C1 C9 C7 C8 D4 20 31 32 38 0D 20 20 20 |........ 128. |
00000030: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 42 59 | BY|
00000040: 0D 20 20 20 20 20 20 20 20 20 20 20 20 20 20 C9 |. .|
00000050: 41 4E 20 C1 44 41 4D 0D 0D C3 CF CD CD CF C4 CF |AN .DAM.........|
00000060: D2 C5 20 CD C1 C7 C1 DA C9 CE C5 0D CA 55 4C 59 |.. ..........ULY|
00000070: 20 31 39 38 37 0D 0D 2A 2A 2A 2A 2A 2A 2A 2A 2A | 1987..*********|
00000080: 2A 2A 2A 2A 2A 2A 2A 2A 2A 2A 2A 2A 2A 2A 2A 2A |****************|
00000090: 2A 2A 2A 2A 2A 2A 2A 2A 2A 2A 2A 2A 0D CE CF D4 |************....|
000000A0: C5 3A 20 C2 45 43 41 55 53 45 20 54 48 49 53 20 |.: .ECAUSE THIS |
000000B0: 50 52 4F 47 52 41 4D 20 49 53 20 57 52 49 54 54 |PROGRAM IS WRITT|
000000C0: 45 4E 0D 46 4F 52 20 54 48 45 20 C3 2D 31 32 38 |EN.FOR THE .-128|
000000D0: 2C 20 49 54 20 43 41 4E 4E 4F 54 20 42 45 20 52 |, IT CANNOT BE R|
000000E0: 55 4E 20 4C 49 4B 45 0D 4F 54 48 45 52 20 50 52 |UN LIKE.OTHER PR|
000000F0: 4F 47 52 41 4D 53 20 4F 4E 20 CC CF C1 C4 D3 D4 |OGRAMS ON ......|
00000100: C1 D2 2E 20 20 D4 4F 20 52 55 4E 0D 54 48 45 20 |... .O RUN.THE |
00000110: 50 52 4F 47 52 41 4D 2C 20 50 52 45 53 53 20 D2 |PROGRAM, PRESS .|
00000120: C5 D3 C5 D4 20 4F 4E 20 54 48 45 20 31 32 38 2E |.... ON THE 128.|
00000130: 0D D4 48 49 53 20 50 55 54 53 20 59 4F 55 52 20 |..HIS PUTS YOUR |
00000140: 43 4F 4D 50 55 54 45 52 20 49 4E 54 4F 20 31 32 |COMPUTER INTO 12|
00000150: 38 20 4D 4F 44 45 0D 41 4E 44 20 44 49 53 50 4C |8 MODE.AND DISPL|
00000160: 41 59 53 20 41 20 4D 45 4E 55 20 4F 46 20 41 4C |AYS A MENU OF AL|
00000170: 4C 20 31 32 38 0D 50 52 4F 47 52 41 4D 53 20 4F |L 128.PROGRAMS O|
00000180: 4E 20 D3 49 44 45 20 33 20 4F 46 20 54 48 45 20 |N .IDE 3 OF THE |
00000190: CC CF C1 C4 D3 D4 C1 D2 0D 44 49 53 4B 2E 20 20 |.........DISK. |
000001A0: C3 48 4F 4F 53 45 20 54 48 45 20 50 52 4F 47 52 |.HOOSE THE PROGR|
000001B0: 41 4D 20 59 4F 55 20 57 41 4E 54 20 54 4F 0D 52 |AM YOU WANT TO.R|
000001C0: 55 4E 20 46 52 4F 4D 20 54 48 49 53 20 4D 45 4E |UN FROM THIS MEN|
000001D0: 55 2E 0D 0D C9 46 20 59 4F 55 20 41 52 45 20 41 |U....F YOU ARE A|
000001E0: 4C 52 45 41 44 59 20 49 4E 20 31 32 38 20 4D 4F |LREADY IN 128 MO|
000001F0: 44 45 2C 20 44 4F 0D 4E 4F 54 20 50 52 45 53 53 |DE, DO.NOT PRESS|
00000200: 20 D2 C5 D3 C5 D4 2E 20 20 D0 52 45 53 53 20 54 | ...... .RESS T|
00000210: 48 45 20 D3 D0 C1 C3 C5 C2 C1 D2 0D 54 4F 20 52 |HE .........TO R|
00000220: 45 54 55 52 4E 20 54 4F 20 54 48 45 20 31 32 38 |ETURN TO THE 128|
00000230: 20 4D 45 4E 55 2E 0D 2A 2A 2A 2A 2A 2A 2A 2A 2A | MENU..*********|
00000240: 2A 2A 2A 2A 2A 2A 2A 2A 2A 2A 2A 2A 2A 2A 2A 2A |****************|
00000250: 2A 2A 2A 2A 2A 2A 2A 2A 2A 2A 2A 2A 0D 0D 20 20 |************.. |
00000260: CF 4E 20 4D 4F 53 54 20 43 4F 4D 50 55 54 45 52 |.N MOST COMPUTER|
00000270: 53 2C 20 49 4E 43 4C 55 44 49 4E 47 20 54 48 45 |S, INCLUDING THE|
00000280: 0D C3 2D 31 32 38 2C 20 50 49 58 45 4C 53 20 41 |..-128, PIXELS A|
00000290: 52 45 4E 27 54 20 51 55 49 54 45 20 53 51 55 41 |REN'T QUITE SQUA|
000002A0: 52 45 2E 0D C2 45 43 41 55 53 45 20 4F 46 20 54 |RE...ECAUSE OF T|
000002B0: 48 49 53 2C 20 53 43 52 45 45 4E 20 49 4D 41 47 |HIS, SCREEN IMAG|
000002C0: 45 53 20 41 52 45 0D 55 53 55 41 4C 4C 59 20 44 |ES ARE.USUALLY D|
000002D0: 49 53 54 4F 52 54 45 44 2E 20 20 D3 51 55 41 52 |ISTORTED. .QUAR|
000002E0: 45 53 20 41 52 45 0D 53 45 4C 44 4F 4D 20 53 51 |ES ARE.SELDOM SQ|
000002F0: 55 41 52 45 3B 20 43 49 52 43 4C 45 53 20 41 52 |UARE; CIRCLES AR|
00000300: 45 20 48 41 52 44 4C 59 0D 45 56 45 52 20 50 45 |E HARDLY.EVER PE|
00000310: 52 46 45 43 54 4C 59 20 52 4F 55 4E 44 2E 20 20 |RFECTLY ROUND. |
00000320: CF 4E 20 54 48 45 20 31 32 38 2C 0D 53 48 41 50 |.N THE 128,.SHAP|
00000330: 45 53 20 41 52 45 20 55 53 55 41 4C 4C 59 20 34 |ES ARE USUALLY 4|
00000340: 30 25 20 54 41 4C 4C 45 52 20 54 48 41 4E 0D 54 |0% TALLER THAN.T|
00000350: 48 45 59 20 41 52 45 20 57 49 44 45 2C 20 42 55 |HEY ARE WIDE, BU|
00000360: 54 20 54 48 45 20 41 4D 4F 55 4E 54 20 4F 46 0D |T THE AMOUNT OF.|
00000370: 44 49 53 54 4F 52 54 49 4F 4E 20 56 41 52 49 45 |DISTORTION VARIE|
00000380: 53 20 57 49 54 48 20 45 56 45 52 59 0D 43 4F 4D |S WITH EVERY.COM|
00000390: 50 55 54 45 52 2F 4D 4F 4E 49 54 4F 52 20 43 4F |PUTER/MONITOR CO|
000003A0: 4D 42 49 4E 41 54 49 4F 4E 2E 0D 0D 20 20 C6 4F |MBINATION... .O|
000003B0: 52 54 55 4E 41 54 45 4C 59 20 46 4F 52 20 C3 2D |RTUNATELY FOR .-|
000003C0: 31 32 38 20 4F 57 4E 45 52 53 2C 20 54 48 45 0D |128 OWNERS, THE.|
000003D0: 31 32 38 27 53 20 D3 C3 C1 CC C5 20 43 4F 4D 4D |128'S ..... COMM|
000003E0: 41 4E 44 20 43 41 4E 20 43 4F 52 52 45 43 54 0D |AND CAN CORRECT.|
000003F0: 44 49 53 54 4F 52 54 49 4F 4E 2E 20 20 D5 53 49 |DISTORTION. .SI|
00000400: 4E 47 20 54 48 45 20 43 4F 4D 4D 41 4E 44 0D 0D |NG THE COMMAND..|
00000410: 20 20 20 20 20 20 20 20 20 20 20 D3 C3 C1 CC C5 | .....|
00000420: 20 31 2C D8 2C D9 0D 0D 54 48 45 20 55 53 45 52 | 1,.,...THE USER|
00000430: 20 53 50 45 43 49 46 49 45 53 20 54 48 45 20 D8 | SPECIFIES THE .|
00000440: 20 41 4E 44 20 D9 0D 43 4F 4F 52 44 49 4E 41 54 | AND ..COORDINAT|
00000450: 45 53 20 54 4F 20 41 44 4A 55 53 54 20 53 43 52 |ES TO ADJUST SCR|
00000460: 45 45 4E 0D 50 52 4F 50 4F 52 54 49 4F 4E 53 2E |EEN.PROPORTIONS.|
00000470: 20 20 C8 4F 57 20 44 4F 20 59 4F 55 20 46 49 4E | .OW DO YOU FIN|
00000480: 44 20 54 48 45 0D 52 49 47 48 54 20 43 4F 4F 52 |D THE.RIGHT COOR|
00000490: 44 49 4E 41 54 45 53 3F 20 20 C2 59 20 54 52 49 |DINATES? .Y TRI|
000004A0: 41 4C 20 41 4E 44 0D 45 52 52 4F 52 2E 0D 0D 20 |AL AND.ERROR... |
000004B0: 20 D4 48 41 54 27 53 20 57 48 45 52 45 20 C9 41 | .HAT'S WHERE .A|
000004C0: 4E 20 C1 44 41 4D 27 53 20 50 52 4F 47 52 41 4D |N .DAM'S PROGRAM|
000004D0: 0D 43 4F 4D 45 53 20 49 4E 2E 20 20 C9 54 20 44 |.COMES IN. .T D|
000004E0: 52 41 57 53 20 41 20 54 45 53 54 20 50 41 54 54 |RAWS A TEST PATT|
000004F0: 45 52 4E 20 4F 46 0D 53 51 55 41 52 45 53 20 41 |ERN OF.SQUARES A|
00000500: 4E 44 20 43 49 52 43 4C 45 53 20 4F 4E 20 54 48 |ND CIRCLES ON TH|
00000510: 45 20 53 43 52 45 45 4E 2E 0D C2 59 20 50 52 45 |E SCREEN...Y PRE|
00000520: 53 53 49 4E 47 20 54 48 45 20 22 2B 22 20 41 4E |SSING THE "+" AN|
00000530: 44 20 22 2D 22 20 4B 45 59 53 2C 20 59 4F 55 0D |D "-" KEYS, YOU.|
00000540: 43 41 4E 20 4D 41 4B 45 20 54 48 45 20 50 41 54 |CAN MAKE THE PAT|
00000550: 54 45 52 4E 53 20 42 45 43 4F 4D 45 20 54 41 4C |TERNS BECOME TAL|
00000560: 4C 45 52 0D 4F 52 20 53 48 4F 52 54 45 52 2E 20 |LER.OR SHORTER. |
00000570: 20 D7 49 54 48 20 41 20 46 4C 45 58 49 42 4C 45 | .ITH A FLEXIBLE|
00000580: 20 52 55 4C 45 52 20 54 4F 0D 4D 45 41 53 55 52 | RULER TO.MEASUR|
00000590: 45 20 54 48 45 20 53 48 41 50 45 53 20 41 4E 44 |E THE SHAPES AND|
000005A0: 20 41 20 4C 49 54 54 4C 45 0D 45 58 50 45 52 49 | A LITTLE.EXPERI|
000005B0: 4D 45 4E 54 41 54 49 4F 4E 2C 20 59 4F 55 20 43 |MENTATION, YOU C|
000005C0: 41 4E 20 41 44 4A 55 53 54 20 54 48 45 0D 53 43 |AN ADJUST THE.SC|
000005D0: 41 4C 45 20 54 4F 20 43 4F 52 52 45 43 54 20 54 |ALE TO CORRECT T|
000005E0: 48 45 20 44 49 53 54 4F 52 54 49 4F 4E 2E 20 D7 |HE DISTORTION. .|
000005F0: 48 45 4E 0D 54 48 45 20 54 45 53 54 20 50 41 54 |HEN.THE TEST PAT|
00000600: 54 45 52 4E 53 20 4C 4F 4F 4B 20 52 49 47 48 54 |TERNS LOOK RIGHT|
00000610: 2C 20 50 52 45 53 53 0D 22 D1 22 20 54 4F 20 44 |, PRESS."." TO D|
00000620: 49 53 50 4C 41 59 20 54 48 45 20 D3 C3 C1 CC C5 |ISPLAY THE .....|
00000630: 20 43 4F 4D 4D 41 4E 44 20 59 4F 55 0D 53 48 4F | COMMAND YOU.SHO|
00000640: 55 4C 44 20 55 53 45 2E 0D 0D 20 20 D4 4F 20 43 |ULD USE... .O C|
00000650: 4F 52 52 45 43 54 20 53 43 52 45 45 4E 20 44 49 |ORRECT SCREEN DI|
00000660: 53 54 4F 52 54 49 4F 4E 20 57 48 45 4E 0D 59 4F |STORTION WHEN.YO|
00000670: 55 20 57 52 49 54 45 20 41 20 47 52 41 50 48 49 |U WRITE A GRAPHI|
00000680: 43 53 20 50 52 4F 47 52 41 4D 2C 20 43 4C 45 41 |CS PROGRAM, CLEA|
00000690: 52 0D 54 48 45 20 47 52 41 50 48 49 43 53 20 53 |R.THE GRAPHICS S|
000006A0: 43 52 45 45 4E 20 57 49 54 48 20 41 20 C7 D2 C1 |CREEN WITH A ...|
000006B0: D0 C8 C9 C3 0D 31 2C 31 20 53 54 41 54 45 4D 45 |.....1,1 STATEME|
000006C0: 4E 54 2C 20 54 48 45 4E 20 49 4E 43 4C 55 44 45 |NT, THEN INCLUDE|
000006D0: 20 59 4F 55 52 0D 50 45 52 53 4F 4E 41 4C 20 D3 | YOUR.PERSONAL .|
000006E0: C3 C1 CC C5 20 43 4F 4D 4D 41 4E 44 2E 20 20 C1 |.... COMMAND. .|
000006F0: 4E 59 20 50 41 54 54 45 52 4E 0D 50 4C 4F 54 54 |NY PATTERN.PLOTT|
00000700: 45 44 20 53 48 4F 55 4C 44 20 48 41 56 45 20 50 |ED SHOULD HAVE P|
00000710: 52 4F 50 45 52 0D 50 52 4F 50 4F 52 54 49 4F 4E |ROPER.PROPORTION|
00000720: 53 2E 0D 0D 0D C4 C9 D3 CB 20 C6 C9 CC C5 D3 20 |S........ ..... |
00000730: D4 C8 C9 D3 20 D0 D2 CF C7 D2 C1 CD 20 D5 D3 C5 |.... ....... ...|
00000740: D3 3A 0D 0D C7 C5 D4 20 D3 D4 D2 C1 C9 C7 C8 D4 |.:..... ........|
00000750: 2E 31 32 38 20 20 20 D4 2E C7 C5 D4 20 D3 D4 D2 |.128 ..... ...|
00000760: C1 C9 C7 C8 D4 2E 31 0D 0D 20 20 20 20 20 20 20 |......1.. |
00000770: 20 2A 2A 2A 2A 20 C5 4E 44 20 CF 46 20 D4 45 58 | **** .ND .F .EX|
00000780: 54 20 2A 2A 2A 2A 0D |T ****. |
..^U:HACKER... GETTING IT STRAIGHT
128. BY. I
AN ADAM..COMMODORE MAGAZINE.JULY 1987..*
************************************.NOT
E: BECAUSE THIS PROGRAM IS WRITTEN.FOR T
HE C-128, IT CANNOT BE RUN LIKE.OTHER PR
OGRAMS ON LOADSTAR. TO RUN.THE PROGRAM,
PRESS RESET ON THE 128..THIS PUTS YOUR
COMPUTER INTO 128 MODE.AND DISPLAYS A ME
NU OF ALL 128.PROGRAMS ON SIDE 3 OF THE
LOADSTAR.DISK. CHOOSE THE PROGRAM YOU W
ANT TO.RUN FROM THIS MENU...IF YOU ARE A
LREADY IN 128 MODE, DO.NOT PRESS RESET.
PRESS THE SPACEBAR.TO RETURN TO THE 128
MENU..*********************************
****.. ON MOST COMPUTERS, INCLUDING THE
.C-128, PIXELS AREN'T QUITE SQUARE..BECA
USE OF THIS, SCREEN IMAGES ARE.USUALLY D
ISTORTED. SQUARES ARE.SELDOM SQUARE; CI
RCLES ARE HARDLY.EVER PERFECTLY ROUND.
ON THE 128,.SHAPES ARE USUALLY 40% TALLE
R THAN.THEY ARE WIDE, BUT THE AMOUNT OF.
DISTORTION VARIES WITH EVERY.COMPUTER/MO
NITOR COMBINATION... FORTUNATELY FOR C-
128 OWNERS, THE.128'S SCALE COMMAND CAN
CORRECT.DISTORTION. USING THE COMMAND..
SCALE 1,X,Y..THE USER SPECIFI
ES THE X AND Y.COORDINATES TO ADJUST SCR
EEN.PROPORTIONS. HOW DO YOU FIND THE.RI
GHT COORDINATES? BY TRIAL AND.ERROR...
THAT'S WHERE IAN ADAM'S PROGRAM.COMES I
N. IT DRAWS A TEST PATTERN OF.SQUARES A
ND CIRCLES ON THE SCREEN..BY PRESSING TH
E "+" AND "-" KEYS, YOU.CAN MAKE THE PAT
TERNS BECOME TALLER.OR SHORTER. WITH A
FLEXIBLE RULER TO.MEASURE THE SHAPES AND
A LITTLE.EXPERIMENTATION, YOU CAN ADJUS
T THE.SCALE TO CORRECT THE DISTORTION. W
HEN.THE TEST PATTERNS LOOK RIGHT, PRESS.
"Q" TO DISPLAY THE SCALE COMMAND YOU.SHO
ULD USE... TO CORRECT SCREEN DISTORTION
WHEN.YOU WRITE A GRAPHICS PROGRAM, CLEA
R.THE GRAPHICS SCREEN WITH A GRAPHIC.1,1
STATEMENT, THEN INCLUDE YOUR.PERSONAL S
CALE COMMAND. ANY PATTERN.PLOTTED SHOUL
D HAVE PROPER.PROPORTIONS....DISK FILES
THIS PROGRAM USES:..GET STRAIGHT.128 T
.GET STRAIGHT.1.. **** END OF TEX
T ****.
×
C64 Image
> CLICK IMAGE PREVIEW FOR FULL MODAL