Post Reply 
New Saturn asm "add loop" benchmark for the HP48G
11-06-2023, 04:30 PM
Post: #27
RE: New Saturn asm "add loop" benchmark for the HP48G
(11-06-2023 12:10 PM)Gjermund Skailand Wrote:  Maybe you will find correct cycle count here:
https://www.hpcalc.org/hp48/docs/programming/cycles.zip

This document contain quarter cycles, compiled by Mika Heiskanen
From the title of the document it is for the 48GX model.

br
Gjermund

Yes, I know about Mika's cycle count doc Smile The problem is that -- I think -- the cycle counts only take into account the number of NSTR cycles taken up by the Saturn bus and the internal execution time taken up by the CPU disregarding the time taken up by the memory controllers. The same goes for SASM.DOC .

If we use Mika's cycle counts, we have :
  • C=C+1 A 4.75 cycles
  • GONC ( branch taken ) 8 cycles

This means ( at least at even addresses ) that, according to Mika's counts, Werner's inner add loop takes 12.75 cycles which means :

(3900000*60)/12.75 ~ 18352941

which is obviously wrong.

Also, with SASM.DOC :
  • C=C+1 A 7 cycles
  • GONC ( branch taken ) 10 cycles

which is a total of 17 cycles, and therefore we have :

(3900000*60)/17 ~ 13764705

which is also obviously wrong.

AFAIK, there are no completely accurate cycle counts that take into account the memory controllers, the Saturn bus and the CPU execution time.

Regards,

Jonathan

Aeternitas modo est. Longa non est, paene nil.
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 - Jonathan Busby - 11-06-2023 04:30 PM



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