Post Reply 
New Saturn asm "add loop" benchmark for the HP48G
10-27-2023, 08:35 AM
Post: #8
RE: New Saturn asm "add loop" benchmark for the HP48G
(10-27-2023 08:19 AM)J-F Garnier Wrote:  I'm not sure this code will work correctly, after you incremented P to 7.

You are right ;-) but we'll normally not get there, 2^24 = 16*10^6, and the count was in the order of 4*10^6. But we can't know up front, so:

Code:
 A=0 W
 C=0 W
 P=5
 C=C+1 P
- A=A+1 A
 GONC -
 A=A+C W
 GONC -

Should be marginally faster than yours and Jonathan's.

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 - 10-27-2023 08:35 AM



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