Post Reply 
New Saturn asm "add loop" benchmark for the HP48G
11-04-2023, 03:37 PM
Post: #19
RE: New Saturn asm "add loop" benchmark for the HP48G
(11-02-2023 05:45 PM)Jonathan Busby Wrote:  Well, I changed the inner add loop to :

Code:
l1      C=C+1   A
        GOC     l2
        C=C+1   A
        GOC     l2
        C=C+1   A
        GOC     l2
        C=C+1   A
        GOC     l2
        C=C+1   A
        GONC    l1
l2      C=C+1   P
        GONC    l1

and I got a *HUGE* speedup. Now the count is :

6429914

Big Grin

Something weird is going on...

Regards,

Jonathan

This speedup, at least, is to be expected? GOC and GONC have different execution times when they jump or not. Taking from the cycles.pdf in your other post, it's either 11 or 30 cycles (I wonder why you divide those by 2 btw?), so the original loop times 5 was 5*49=245 cycles, and the unrolled one 4*30+49 = 169. The ratio of 169/245 matches 4383185/6429914, well, almost.

Cheers, Werner

41CV†,42S,48GX,49G,DM42,DM41X,17BII,15CE,DM15L,12C,16CE
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: New Saturn asm "add loop" benchmark for the HP48G - Werner - 11-04-2023 03:37 PM



User(s) browsing this thread: 1 Guest(s)