2 ; Ullrich von Bassewitz, 2009-11-05
4 ; Helper function for functions using sine/cosine: Multiply two values, one
5 ; being an 8.8 fixed point one, and return the rounded and scaled result.
10 .import popax, imul16x16r32
12 .include "zeropage.inc"
15 ;----------------------------------------------------------------------------
33 cmp #$80 ; Frac(x) >= 0.5?
35 ldy sreg+1 ; Check sign