61 |
xor 3,3,3 |
xor 3,3,3 |
62 |
.loop: |
.loop: |
63 |
# CTR is the loop2 counter |
# CTR is the loop2 counter |
64 |
li 7,15 |
li 4,15 |
65 |
mtspr 9,7 |
mtctr 4 |
66 |
# r6 is coeff pointer for this line |
# r6 is coeff pointer for this line |
67 |
mr 6,9 |
mr 6,9 |
68 |
.loop2: |
.loop2: |
69 |
# coeffs is a matrix of 16 bits cells |
# coeffs is a matrix of 16 bits cells |
70 |
lha 4,2(6) |
lwz 4,2(6) |
71 |
lha 5,4(6) |
lwz 5,6(6) |
|
or 4,5,4 |
|
|
lha 5,6(6) |
|
|
or 4,5,4 |
|
|
lha 5,8(6) |
|
72 |
# or. updates CR0 |
# or. updates CR0 |
73 |
or. 4,5,4 |
or. 4,5,4 |
74 |
# testing bit 2 (is zero) of CR0 |
# testing bit 2 (is zero) of CR0 |
76 |
addi 6,6,8 |
addi 6,6,8 |
77 |
bdnz .loop2 |
bdnz .loop2 |
78 |
# latest line coeffs |
# latest line coeffs |
79 |
lha 4,2(6) |
lwz 4,2(6) |
80 |
lha 5,4(6) |
lhz 5,6(6) |
|
or 4,5,4 |
|
|
lha 5,6(6) |
|
81 |
# or. updates CR0 |
# or. updates CR0 |
82 |
or. 4,5,4 |
or. 4,5,4 |
83 |
# testing bit 2 (is zero) of CR0 |
# testing bit 2 (is zero) of CR0 |