11.07.2015 Views

Chapter 54

Chapter 54

Chapter 54

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

movcoff-coff+4Cdi+coff+roffl.ecx:save the result in dest matrix:point to next col in xform2 & destroff-roff+l6ENDMel se : ! USE386;point to next col inxform2 & destmovmovmovpushdi.[bp].SourceXformZsi.[bpl.SourceXformlbx.[bpl.DestXformbp:DI points to xform2 matrix:SI points to xforml matrix:BX points to dest xform matrix:preserve stack frame pointerroff-0coff-0REPT 3REPT 3pushpushpushpushpushcalladdmovmovbxword ptr Csi+roff+2]word ptr [si+roff]word ptr [di+coff+2]word ptr [di+coff]- FixedMulsp.8cx,ax :set running totalbp.dx;row offset:once for each row;column offset;once for each of the first 3 columns,: assuming 0 as the bottom entry (no: translation):remember dest vector pointer:column 0 entry on this row times row 0: entry in column:clear parameters from stackpushpushpushpushpushcalladdPOPaddadccxword ptr [si+roff+4+Z]word ptr [si+roff+4]word ptr [di+coff+l6+2]word ptr [di+coff+l6]- FixedMulsp.8cxcx.axbp. dx:preserve low word of running total:column 1 entry on this row times row 1; entry in column:clear parameters from stack:restore low word of running total;running total for this rowpushpushpushpushpushcalladdPOPaddadccxword ptr [si+roff+8+21word ptr [si+roff+8]word ptr [di+coff+32+2]word ptr [di+coff+32]JixedMulsp.8cxcx.axbp.dx:preserve low word of running total:column 1 entry on this row times row 1: entry in column:clear parameters from stack;restore low word of running total;running total for this rowPOPmovmovbxCbx+coff+roff].cx[bx+coff+roff+21,bp;restore DestXForm pointer;save the result in dest matrix3-D Shading 1 02 1

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!