mirror of
https://git.sr.ht/~rabbits/uxn
synced 2025-01-07 08:01:17 +00:00
Saturate multiplication in mandelbrot.
This commit is contained in:
parent
20d6ab3cb4
commit
b5669a52be
1 changed files with 5 additions and 3 deletions
|
@ -101,7 +101,9 @@ JMP2r
|
||||||
ADD2 ( asign ahi-bhi* r21"* )
|
ADD2 ( asign ahi-bhi* r21"* )
|
||||||
( The result we want is bits 27-12 due to the fixed point representation we use. )
|
( The result we want is bits 27-12 due to the fixed point representation we use. )
|
||||||
#04 SFT2 SWP2 #40 SFT2 ADD2
|
#04 SFT2 SWP2 #40 SFT2 ADD2
|
||||||
STHr #01 EQU JMP JMP2r
|
( saturate to +/-7.fff )
|
||||||
DUP2k EOR2 SWP2 SUB2
|
#7fff GTH2k JMP SWP2 NIP2
|
||||||
|
STHr #01 NEQ ,&result-positive JCN
|
||||||
|
DUP2k EOR2 SWP2 SUB2
|
||||||
|
&result-positive
|
||||||
JMP2r
|
JMP2r
|
||||||
|
|
Loading…
Reference in a new issue