
Edited by sometimes99er, Thu Mar 10, 2011 8:19 AM.
Posted Tue Mar 8, 2011 3:51 PM

Edited by sometimes99er, Thu Mar 10, 2011 8:19 AM.
Posted Wed Mar 9, 2011 12:11 AM
Posted Wed Mar 9, 2011 1:15 AM
retroclouds, on Wed Mar 9, 2011 12:11 AM, said:
Posted Wed Mar 9, 2011 4:05 AM

Edited by sometimes99er, Wed Mar 9, 2011 4:10 AM.
Posted Wed Mar 9, 2011 5:02 AM
Posted Wed Mar 9, 2011 9:27 AM
Posted Wed Mar 9, 2011 9:33 AM
Posted Wed Mar 9, 2011 9:43 AM
Posted Thu Mar 10, 2011 2:09 AM
For X=0 to 255 Y=Sin(X) Plot(X,Y) Next XAnd the second one was like
For N=2 to 47 For X=0 to 255 Y=Sin(X)/N-N-N Plot(X,Y) Next X Next NIt might be an optical illusion, but it looks as if the plotting slows down. Now the divisor becomes bigger and bigger, and chances becomes greater that the divisor is greater than the dividend, which should cause a special condition in the CPU and lower clock cycles with the DIV instruction from 98-130 to only 19. If that was true, it should start drawing faster as it approaches the top.
For N=2 to 47 For X=0 to 255 Y=Sin(X)/2-N-N Plot(X,Y) Next X Next NFor the division I'll use the SRA instruction instead of DIV.

Posted Thu Mar 10, 2011 6:12 AM
Posted Thu Mar 10, 2011 7:12 AM
retroclouds, on Thu Mar 10, 2011 6:12 AM, said:
Posted Thu Mar 10, 2011 7:47 AM
Edited by BigO, Thu Mar 10, 2011 7:49 AM.
Posted Thu Mar 10, 2011 8:25 AM

Edited by sometimes99er, Thu Mar 10, 2011 8:30 AM.
Posted Thu Mar 10, 2011 3:46 PM
Posted Fri Mar 11, 2011 1:05 AM
Tursi, on Thu Mar 10, 2011 3:46 PM, said:
Edited by sometimes99er, Fri Mar 11, 2011 2:09 AM.
Posted Fri Mar 11, 2011 2:33 AM


Posted Fri Mar 11, 2011 8:55 PM
sometimes99er, on Fri Mar 11, 2011 1:05 AM, said:
void op_div()
{
// DIVide: DIV src, dst
// Dest, a 2 word number, is divided by src. The result is stored as two words at the dst:
// the first is the whole number result, the second is the remainder
Word x1,x2;
unsigned __int32 x3;
FormatIX;
x2=ROMWORD(S);
post_inc(SRC);
D=WP+(D<<1);
x3=ROMWORD(D);
if (x2>x3) // x2 can not be zero because they're unsigned
{
x3=(x3<<16)|ROMWORD(D+2);
x1=(Word)(x3/x2);
WRWORD(D,x1);
x1=(Word)(x3%x2);
WRWORD(D+2,x1);
reset_OV;
nCycleCount+=92; // This is not accurate. (Up to 124 "depends on the partial quotient after each clock cycle during execution")
}
else
{
set_OV; // division wasn't possible - change nothing
nCycleCount+=16;
}
Posted Sat Mar 12, 2011 3:40 AM

Edited by sometimes99er, Sat Mar 12, 2011 3:57 AM.
Posted Sat Mar 12, 2011 9:13 AM
Posted Sat Mar 12, 2011 11:10 PM
Opry99er, on Sat Mar 12, 2011 9:13 AM, said:
Posted Mon Mar 14, 2011 2:53 AM

Plot( Sin(X+N), Sin(X) )
Next N
Edited by sometimes99er, Mon Mar 14, 2011 2:55 AM.
Posted Mon Mar 14, 2011 10:22 AM
Posted Mon Mar 14, 2011 1:15 PM
Posted Tue Mar 15, 2011 6:41 AM

0 members, 0 guests, 0 anonymous users