B.Color RepresentationC.2-D AnimationB.Windows Bitmap FilesVideo LabsLab #7 – Text-based graphicsA.Positioning the cursor- Irvine library functions - Clear screen (Clrscr)- DOS function 7- Get char from keyboard w/o echo- BIOS function 2- Set cursor at given positionB.Character Attributes- BIOS function 9- write char with attribute at current positionC.Pseudo random Numbers and a Delay - Irvine library functions-Crlf (carriage return/line feed)-Randomize (reseed # generator)-Random_range- Rdtsc instruction-Pentium instruction-returns time-stamp counter 64-bit counter >5800 years before overflow for 100MHz clk- Delay procedure -delays # of milliseconds specified in cx.-must set CLK_FRQ=your PC frequencyLab #8 – Bit-Mapped GraphicsA.Basic Graphic Modes/PC (VGA)- BIOS 10h,function 0Fh-read current mode- BIOS 10h,function 0-set new video mode- BIOS 10h,function 0Ch-write character at given positionB.Color Representation- Parallel I/O to port addressesC.2-D Animation- Appearance of movement done by changing palette (much less CPU intensive than copying blocks of data in memory)Lab #9 – More Bit-Mapped GraphicsA.Using the mouse to draw horizontal line- BIOS 33h,function 3-get mouse position-get button status- BIOS 33h, function 2-hide mouse- BIOS 33h,function 1-turn mouse on- BIOS 10h,function 13h-set video mode to 320x200x256B.Windows Bitmap Files- Irvine procedure ShowBMP-ifile must be specified directory names must be <=8-use masm hline2 masm bitmap link hline2+bitmapC.Rubber-banding Selection
View Full Document