pito:
The C64 has an 6510 inside. So we need to enhance the emulator somehow
Try to run this on the DUE, how long does it take..5 REM TRIGONOMETRIC FUNCTIONS TEST 0..89 DEGREE
10 PH = 3.141592653/2.0
15 REM DEFINE ARCSIN AND ARCCOS
20 DEF FN ASN(X) = ATN(X/SQR(1.0-XX))
30 DEF FN ACS(X) = PH-ATN(X/SQR(1.0-XX))
35 REM TR, TD - TO RAD, TO DEG
40 TR = 3.141592653 / 180.0
50 TD = 180.0 / 3.141592653
55 REM INPUT IN DEGREE (1..89)
60 FOR D = 0 TO 89
70 T = SIN(TRD)
72 T = COS(TRT)
74 T = TAN(TRT)
76 T = TDATN(T)
80 T = TDFN ACS(T)
90 T = TDFN ASN(T)
100 PRINT D; "="; T; " DELTA="; T-D
110 NEXT D
120 END
I'll try.
The general way of measuring speed on a CBM is this.
FOR I=0 TO 1000:NEXT
That takes exactly 1 second on a 1MHZ 6502 in CBM Basic.
Make one I=1 to 10000 and clock it.
That will tell you the factor against the original.