Intel i86W Manual page 194

Table of Contents

Advertisement

PROGRAMMING EXAMPLES
right_end:: II Handle boundary conditions
d.faddz
aZ,
iZ3,
aZ
II Interpolate 2 even Z values
nop
d.faddz
fst.d
d.form
nop
d.fzchks
nop
d.faddp
pst.d
d.faddp
nop
d.faddp
nop
aligned_end::
d.form
br
d.fzchks
nop
short_segment::
d.fnop
adds
d.fnop
bnc.t
d.fnop
fld.d
II
aZ,
iZl,
aZ
II Interpolate
2 odd Z values
newz,
8(ZBP)++
II Update Z buf from prior loop
rZmask, newz
II Mask 4 new Z values
f~,
aB,
newi,
aG,
aR,
II
f~,
f~
II Shift PM[7 .. 4] to PM[3 ..
~]
II
iB,
aB
II Interpolate 4 blue intensities
8(FBP)++
II Store pixels indicated by PM[3 ..
~]
iG,
aG
II Interpolate 4 green intensities
iR,
II
aR
II Interpolate
II
red intensities
II No special boundary conditions
f~,
newi
II Move 4 new pixels to 64-bit reg
wrap_up
II
oldz,
newz,
newz II Mark closer points in PM[7 .. 4]
II
II
8,
dX,
r~
II
Is right end in same set as left?
II
right-end
II
Branch taken if no.
II
l6(ZBP),
oldz
II
Fetch 4 old Z values
wrap_up:: II
fzchks
fst.d
fnop
pst.d
Store the un stored and leave dual mode.
f~,
f~,
f~
II
Shift PM[7 .. 4] to PM[3 ..
~]
newz,
8(ZBP)++
II Update Z buf from prior loop
newi,
8(FBP)++
II
Store pixels indicated by PM[3 .•
~]
Example 9-21. 3-D Rendering (2 of 2)
9-32

Advertisement

Table of Contents
loading

Table of Contents