THIS MONTH IN ER SKIDMARKS MANCHESTER UNITED: THE DOUBLE Reviewed! A I 0 0 0 0 3 1 2 A S P S 1 1 LEN Revie I YOB LOSE ft A% - SUPER STREET FIGHTER 2 Previewed! 1 1 e 13 April. For a few weeks. iaIa v
ler code, even when reasonably 0 Vs well a documented, well known fact is rarely that assem- easy to understand unless you have a good idea of what the code is supposed to be doing in tie first place. Needless to say, this makes - ',luage coders look far more difficult than a- ne Db of making an <strong>Amiga</strong> display 'smooth y ;croll' and since it seemed to me this would or :e an area many of you would be interested f e in, I've chosen to devote some time to pust ta this subject. In fact, over the next two instalments I'll hl no modifying and extending the 680x0 e l code provided last month in order to pro- ty duce a demo that vertically smooth scrolls an ra Intuition screen. Before explaining how this ir type of smooth scrolling is actually done, ce however, let me kill off one false trail. k. Those of you who have the <strong>Amiga</strong>'s graphics s A library documentation may have seen ut that there is a library routine called ScrolIVPort() sy that can be used to produce display ep scrolling effects. The plain truth is that d i while, in theory, this routine could conceivably bc be used to produce smooth scrolls, y a the results obtained by using this function al are lust not good enough. The autodocs themselves mention that sc the ScrolIVPort() function is slow and can sa produce visible 'hashing' of the display, So, if es ScrolIVPort() can't be used, is there an alternative me course ot action available to us? The bi answer here is very definitely yes, but in ln order to appreciate it it's necessary to be clear y p in your mind how <strong>Amiga</strong> displays are generated. Io ai All displays are created by allocating blocks n of memory called 'bitplanes,' in which -t each 'bit' represents a pixel position on i the display. Normal displays will contain a s number of separate bitplanes and by taking t the appropriate pixel bit from each bitplane, the <strong>Amiga</strong>'s display hard- h ware is able to generate a colour register number. e F Values stored in each colour register 177Z 7 1 , • P 9 r r , ri .- -• r F 9 F9 PI r4 F9 P9 , 17 1 1 7 4 7 4 ; r 7 r . ii.14 •7717 + , . P 7. .7 T7 . 14 17 41 4 7 . 4 17 1I! L. L11 : - T 747 7 4 1 1'.117-T417 ; 17 TT17717 -T• . i.i.i 1 • WWIP1 • • - 1717 • gr; • 171;17 • , • 17 TrT•174117 . . . 7 117 . Te • , 17 + . 1 17417 1 7 . 71+ ; ..1 . 1 1. I. I. L 1 i I. 141: i I! i ill,Ahll! 1, J t L . 6 J 1, I. 1. .1 - J t t 1, 14 7 1P F . 7 - • • F1 P 77 . 1 P 9 P P P P P 4 iT r .i. 1i 1+4..4 l; q T • . . l1 41 +411 . . 7 4. j.. . 3 7 P P . 4 7 1 7. • • .• P + i P P P P P 9 P P 4 , P 4i P P P P P F 9 P 1 F P F - 7 P I ; ; 7 . Li . V . P 441+++ 14444++++++++++444++ . P P? ? P 1 • • • • • - I 9 P 7 4. 1iP P P F I1; 1 ; P 4 l r i V . I, ill. P ++++ 4• eq17 P P P , • • l P P P i, . P + P 9 P + 4+++++++++++++++++++++4444+++++J I 11:47 . r t r • P9 e r r , P r y • r r o • I r p • r p r r r r y r • • F P P P P P • • 4P • P • • • I • • • • • • • - • • • • • • . 4417 g1 ± . 1 ! 71 tP P P I P ; P . 1494++ 1 1 P P P 17 rt:71777 , s ; ? P P 9 : 117,7 1P . 1 I P P 9 A1 7' T 17 1 z L 1 P 9 P ' q7.T;T;T; 47T; Z t : . 9 t++++ 4l 1 4 + 4 4 4 4 4 4 + P P a- 1t r 7 a a? i . f , t LJL L L a al & JAI ! i ; dT 7 I+ Iilli . e • • • - • • , . ill i i 1 1 . 1 p 4 &17 r. diai IT-17;177 •, 7 , L . 7 AALAILILLILLEILLILILILL: • -•11-1111.1.: A L L L I S A : - 1 1 1 1 : - 1 1 1 1 A11747 ; 4i 7 • 1 : L1a. ir d , T+ 7 r 41, r J t e - . 1 r1 1 - 1 1 1 : * 7. 7 ; • + 1At 177:11:7 i s it + t • 1774,717 MI 7 1 • . 4- did a ; . a7 + +++4 11;g7TT • g7 17,17 : r ! 1 7x AZT;Taia; l . + + l r d,a; . 7 7171717-177;47-T-7;q547.7171117WW177.177111;711174171717171711747117177;g74;;E; l 1 nothing but an old otp. 05moothq! ,*;„6, determine the actual colours seen on the screen, and it's because a screen's colour register number range depends on the number of bitplanes being used that the colours available with different screen types varies. A one bitplane screen can only have two colours (corresponding to any single bit in the bitplane, being either a 0 or a 1). two bitplane screens can have four colours (each bit from each bitplane is combined to produce one of four values 00, 01, 10, or 11) and so on. MEMORY Although display bitplanes have to be stored in chip memory (because they need to be accessible to the custom chips) they do not have fixed positions as such. In fact, when a screen is opened the bitplanes will be allocated in any convenient area of chip memory available. Needless to say this means the graphics system needs to have some way of identifying the position of these bitplanes and the structure used is called a BitMap_ This structure can be found in the graphics/06 include file and you'll notice from the description below that it contains space for Smooth I S one of the 177051' LISP& ttirk5 1317 d501fing 58111111 fimiga (oder ran learn about th15 month Paul thiErdd 5tdrt5 Pllfildinifig how it 1.5 Some simple smooth scroll rputinos in pction <strong>Amiga</strong> <strong>Computing</strong> MAY 1995 TUTORIAL Part 10 done u5kg a55embN language up to eight bitplane pointers: STUCTUIE DitAR.D VOID bo_ D yte sPe rtoo VOID DTI bo_ Fie gs etvE be _ le pth VOID blue d PERT De _ PLa ne o, Doe the OitpLeoes LABEL bo_ SU EOF ;R iote rs Co Because the BilMap's bitplane pointers define the memory locations used to produce the display that appears on your monitor, you might expect that, by arranging for a display's bitplane pointers to be increased by an amount which corresponds to the pixel-width of the screen, it would be possible to shift the display memory downwards by one line. Similarly, by decreasing those pointers by the same amount the display might be expected to shift upwards one line. Although very close to the truth, this doesn't work because a part of the story is still missing. While the BitMap structure certainly defines the initial display memory being used, the <strong>Amiga</strong>'s graphics coprocessor (the 'Copper') which handles the display generation doesn't actually collect its bitplane information from this source Instead it uses copies of the bitplane pointers that have been embedded into a sehes of instructions called a 'copper list'. Once Intuition has opened a screen and generated these copper instructions, the bitplane pointers held in the BitMap struc• hire's are essentially redundant as far as the display generation process is concerned. The important bitplane pointer 91
- Page 1 and 2:
May 1995 41k Images w 500 Ham image
- Page 3 and 4:
IND! El5IRECT - A 24 Pn colar print
- Page 5 and 6:
O Images'. 500 Ham images 500 24-bi
- Page 7 and 8:
YO 19 r•z I 99 1r O LIM 'P • 14
- Page 9 and 10:
Punters left licking their wounds a
- Page 11 and 12:
Art, darling For those that have a
- Page 13 and 14:
_c It PRICES It I, Pit 19 19 19 19
- Page 15 and 16:
ogn, han tong Ice. lry, cks on .1 t
- Page 17 and 18:
FTP ider, click s ?.ans find riu I
- Page 19 and 20:
VIDEO PRODUCTS BROADCASTER ELITE Th
- Page 21 and 22:
either a CDTV, CO32 or an Amiga equ
- Page 23 and 24:
your s will when chilop we them nes
- Page 25 and 26:
It co co Pc s EP A in Al209 Insider
- Page 27 and 28:
good th all d. A incluacts keep on
- Page 29 and 30:
t athan our m !odor set t four o E3
- Page 31 and 32:
I 'ion sence gine - sence • .anel
- Page 33 and 34:
ke, a it the hout matic it the riOu
- Page 35 and 36:
that cost cutting is a key element
- Page 37 and 38:
connec- ?, usuaIN ace can ns usingi
- Page 39 and 40: CD ROM PRICE MATCH WE WILL DO OUR B
- Page 41 and 42: d, and m before, lia and .ded in, s
- Page 43 and 44: t and ial to stant Final - SOM , pa
- Page 45 and 46: 'So tie 3 Jes furrpot auallabilitg
- Page 47 and 48: a 1200 pow - 'eading veri )1 them e
- Page 49 and 50: SPECIALISING IN THE PROMOTION OF DT
- Page 51 and 52: feels to s are a ?s: The tan Fur In
- Page 53 and 54: and Or lust s also board people is,
- Page 55 and 56: JOAO! , VklW pipe wad nom obj in ng
- Page 57 and 58: 1 CD ROMS CO - MULTIMEDIA TOOLKIT 2
- Page 59 and 60: You're undeletable 3 I used to own
- Page 61 and 62: iefl ecl r. you good game gham olve
- Page 63 and 64: One ot M r nice thing. a bout U M i
- Page 65 and 66: tras - owser ment. it the 5Kb. 11JI
- Page 67 and 68: you I the files, nt to you files /0
- Page 69 and 70: MACS MACI MRC2 MAC3 KOS The CrossMa
- Page 71 and 72: PP SS the ster the laity s it? th a
- Page 73 and 74: tics see ions ered iated the ouse s
- Page 75 and 76: Tel. 0116 234 0682 or Fax. 0116 236
- Page 77 and 78: guide for our Amiga! The worry free
- Page 79 and 80: fthough there's been a number of vi
- Page 81 and 82: •eall • 4119 =EA num, am.. Lin
- Page 83 and 84: 1 the that BS B when Jitor. and thi
- Page 85 and 86: ist I — ta ta or if le, 30 ur th
- Page 87 and 88: COMMODORE VIC 20 (plus) emulator +
- Page 89: minet is the Amiga-specific side to
- Page 93 and 94: an ciisrom am the set rop lget thty
- Page 95 and 96: OF YOUR AMIGA WITH MEM RI' UPERA El
- Page 97 and 98: 1if to th • ISE e all know that 3
- Page 99 and 100: !ss .ye Ye he he )er of ed he 1 IY
- Page 101 and 102: pace. There are many predefined tea
- Page 103 and 104: ARE OF , „ roncinE 5 DEBEIN1 A M
- Page 105 and 106: Name: Electra Nation: Denmark Speci
- Page 107 and 108: Ole nature of the game should still
- Page 109 and 110: ly ls Jig 31 -a tig al - e Jt :le,
- Page 111 and 112: Cox: Ccorrirroocior _ A I I V / A G
- Page 113 and 114: EE I MULTIMEDIA cp±p c FOR ANY AMI
- Page 115 and 116: miga platformers have always been r
- Page 117 and 118: Okay, la st again know. it wa sn't
- Page 119 and 120: 1 3.5" DISKS 'IT V (Dept 32 Staffor
- Page 121 and 122: eads of sweat roll down your body,
- Page 123 and 124: A number of tribe s ge t together,
- Page 125 and 126: Another useful feature will be the
- Page 127 and 128: System Medical 1 2 9 Frank Nord tak
- Page 129 and 130: fijjqjng II of you, I hope, have so
- Page 132 and 133: 132 DISK OFFER 1 1 1 0 A f Address
- Page 134 and 135: 1 • ,%Pf .. §ent eci i n a s s o
- Page 136 and 137: allionew p mag of t h e t o p t e l
- Page 138 and 139: '1111 only one magazine can fill th
- Page 140 and 141:
1 40 '17EEDTPD 129 CATHERINE WAY IL
- Page 142 and 143:
142 Link Two Amiga Computers Held L
- Page 144 and 145:
144 AMIGA REPAIRS FIXED PRICE ONLY
- Page 146 and 147:
CSI 2.5'13.5" HD] Our high quality
- Page 148:
\ NICE ONE SQUIRREL! tt !sLiba."; .