home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
No Fragments Archive 10: Diskmags
/
nf_archive_10.iso
/
MAGS
/
STESTOS
/
STESTOS1.MSA
/
TEXT
/
BLIT2.DOC
< prev
next >
Wrap
Text File
|
2010-01-01
|
6KB
|
106 lines
!ressotS000555660777
FA0FA0FA0FA0FA0000001FA0
FA0FA0FA0FA0FA0000001FA0
FA0FA0FA0FA0FA0000001FA0
FA0FA0FA0FA0FA0002009FA0 ***** STOS AND THE STE ******
FA0FA0FA0FA0FA0000001FA0 **********************************************
FA0FA0FA0FA0FA0002009FA0 ** PART TWO **
FA0FA0FA0FA0FA0000001FA0 *********************
FA0FA0FA0FA0FA0000001FA0
FA0FA0FA0FA0FA0002009FA0 MORE ABOUT THE BLITTER
FA0FA0FA0FA0FA0000001FA0
FA0FA0FA0FA0FA0000001FA0
FA0FA0FA0FA0FA0000001FA0
FA0FA0FA0FA0FA0000001FA0 For the first part you will require:
FA0FA0FA0FA0FA0000001FA0 An STE or blitter equiped ST
FA0FA0FA0FA0FA0000001FA0 The BLITTER.EX*
FA0FA0FA0FA0FA0000001FA0
FA0FA0FA0FA0FA0000001FA0
FA0FA0FA0FA0FA0002009FA0 Many thanks for the people writting the Extentions, and in this
FA0FA0FA0FA0FA0002009FA0 case ASA Burrows.
FA0FA0FA0FA0FA0002009FA0
FA0FA0FA0FA0FA0000001FA0
FA0FA0FA0FA0FA0000001FA0 Appeal:
FA0FA0FA0FA0FA0000001FA0 Yes, I know ! Again, Yawhn !!
FA0FA0FA0FA0FA0000001FA0 Any source are not only welcome, but required. Franckly, if you
FA0FA0FA0FA0FA0000001FA0 own an STE and are reading this, you know you have
FA0FA0FA0FA0FA0000001FA0 a superior beast!
FA0FA0FA0FA0FA0000001FA0 So use it!!!!!!!!!!!!!!!!!!!!!!!!!!!!
FA0FA0FA0FA0FA0000001FA0 By the way, if anyone out there has some good
FA0FA0FA0FA0FA0000001FA0 Alien Attack wave generators, please send it in!
FA0FA0FA0FA0FA0000001FA0
FA0FA0FA0FA0FA0000001FA0
FA0FA0FA0FA0FA0000001FA0 *** Warning ** ****************************************************
FA0FA0FA0FA0FA0000001FA0 *All the stuff I mention is mostly trial and error, so I can't offer*
FA0FA0FA0FA0FA0000001FA0 *any guarantees. This tutorial might be harmfull to your machine, *
FA0FA0FA0FA0FA0000001FA0 *or peripherals, so be warned! *
FA0FA0FA0FA0FA0000001FA0 *ps: I never had any problems, but who knows. *
FA0FA0FA0FA0FA0000001FA0 *********************************************************************
FA0FA0FA0FA0FA0000001FA0
FA0FA0FA0FA0FA0000001FA0
FA0FA0FA0FA0FA0000001FA0 Hopefully you have enjoyed last months tutorial! Please don't swear
FA0FA0FA0FA0FA0000001FA0 if you managed to crash your STE more often than ever before. The
FA0FA0FA0FA0FA0000001FA0 Blitter commands are quite powerfull, but not fool proof.
FA0FA0FA0FA0FA0000001FA0
FA0FA0FA0FA0FA0000001FA0 The learning curve is pretty steep, and without a Hard Drive, I never
FA0FA0FA0FA0FA0000001FA0 would have been able to bear the constant reboots required to
FA0FA0FA0FA0FA0000001FA0 get the examples together.
FA0FA0FA0FA0FA0000001FA0
FA0FA0FA0FA0FA0000001FA0 Anyway, now we will have some fun and get a fast horizontal
FA0FA0FA0FA0FA0000001FA0 scrolling backgroung going.
FA0FA0FA0FA0FA0000001FA0
FA0FA0FA0FA0FA0000001FA0
FA0FA0FA0FA0FA0002009FA0 PART 2 of ******** THE BLITTER EXTENTION *********
FA0FA0FA0FA0FA0000001FA0
FA0FA0FA0FA0FA0000001FA0
FA0FA0FA0FA0FA0000001FA0 I will go step by step, on the main issues, but included on the disk
FA0FA0FA0FA0FA0000001FA0 are a couple of programs doing weird things.
FA0FA0FA0FA0FA0000001FA0
FA0FA0FA0FA0FA0000001FA0 We will also build a parallax scrolling stars background.
FA0FA0FA0FA0FA0000001FA0
FA0FA0FA0FA0FA0002009FA0 *****************************************************************
FA0FA0FA0FA0FA0002009FA0 A small word about screens: **** SIZE CONVENTIONS ****
FA0FA0FA0FA0FA0000001FA0
FA0FA0FA0FA0FA0000001FA0
FA0FA0FA0FA0FA0000001FA0 We work in low resolution 320*200 pixels in 16 colours
FA0FA0FA0FA0FA0000001FA0 In High res, each pixel is either on or off and represented by
FA0FA0FA0FA0FA0000001FA0 a single binary digit called "bit"
FA0FA0FA0FA0FA0000001FA0 In low res, each pixel requires 4 binary digits to get the proper
FA0FA0FA0FA0FA0000001FA0 address of the colour register to us
FA0FA0FA0FA0FA0000001FA0 0000 colour register 0
FA0FA0FA0FA0FA0000001FA0 ...
FA0FA0FA0FA0FA0000001FA0 1111 colour register 15
FA0FA0FA0FA0FA0000001FA0
FA0FA0FA0FA0FA0000001FA0 The palette is what we call the 16 colour registers
FA0FA0FA0FA0FA0000001FA0
FA0FA0FA0FA0FA0000001FA0 8 bit= 1 byte Why? Because !
FA0FA0FA0FA0FA0000001FA0
FA0FA0FA0FA0FA0000001FA0 So in low resolution we have 200 lines of 320 pixels
FA0FA0FA0FA0FA0000001FA0 1 pixel->4 bits
FA0FA0FA0FA0FA0000001FA0 320 ->1280 bites=160 bytes
FA0FA0FA0FA0FA0000001FA0
FA0FA0FA0FA0FA0000001FA0 1 word= 2 bytes Because!
FA0FA0FA0FA0FA0000001FA0
FA0FA0FA0FA0FA0000001FA0 320 ->80 words
FA0FA0FA0FA0FA0000001FA0
FA0FA0FA0FA0FA0000001FA0 So, we have 80 words of information per horizontal screen line.
FA0FA0FA0FA0FA0000001FA0
FA0FA0FA0FA0FA0000001FA0 Why do I bother telling you this? because last month
FA0FA0FA0FA0FA0000001FA0 we had to use "words" in our EXPERT blitting routine
FA0FA0FA0FA0FA0000001FA0 Flashback: ( BLIT X COUNT count
FA0FA0FA0FA0FA0000001FA0 BLIT Y COUNT count
FA0FA0FA0FA0FA0000001FA0 These 2 set the no. of words to be read on a line,
FA0FA0FA0FA0FA0000001FA0 and the number of lines. )
FA0FA0FA0FA0FA0000001FA0If we use
FA0FA0FA0FA0FA0000001FA0....
FA0FA0FA0FA0FA0000001FA0BLIT X COUNT 80
FA0FA0FA0FA0FA0000001FA0BLIT y COUNT 200
FA0FA0FA0FA0FA0000001FA0...
FA0FA0FA0FA0FA0000001FA0...
FA0FA0FA0FA0FA0000001FA0we should copy the entire screen, and this is exactly what happened.
FA0FA0FA0FA0FA0000001FA0
FA0FA0FA0FA0FA0002009FA0 *****************************************************************
FA0FA0FA0FA0FA0002009FA0 Another small word about screens: * BIT PLANES *
FA0FA0FA0FA0FA0000001FA0
FA0FA0FA0FA0FA0000001FA0