Speed test request

6 replies [Last post]
obo
Offline
Joined: Mar 13 2007
Posts: 4

I've written an Apple 1 emulator for a Z80-based home computer, and I'm trying to work out roughly how the speed compares to the original (or replica) machine. From what I can tell pom1 doesn't attempt a cycle-accurate CPU emulation, so I'm not sure I can use timings from it.

My current test is a crude empty loop in BASIC, so it's not tied to the terminal speed:

10 FOR X=1 TO 1000
20 NEXT X

Could someone with a replica device please give that code a try and let me know how long it takes? If it's around 1 second (like pom1 seems to be), please increase the loop limit to 10000. The loop of 1000 takes 10 seconds in my emulator on a 6MHz Z80B (though memory contention eats into that somewhat).

Cheers,

Si

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
obo
Offline
Joined: Mar 13 2007
Posts: 4
Screenshots

Here are some animated screenshots showing it in action: http://simonowen.com/sam/apple1emu/

I can't add the download until I've heard back from Ken Wessen with permission to include his combined ROM image. I can probably add the source code before that, once I've given it a bit of a tidy Smile

SchwindS's picture
Offline
Joined: Feb 24 2007
Posts: 44
Tested with A-ONE Replica

Hello,
I have testet the BASIC program on my A-ONE Apple 1 Replica Computer.
(A Part Kit by Franz Achatz)

The count to 1000 will take no longer than just 1 second.
I increase the Program up to 10000 an it take 12 seconds to count.

SchwindS

obo
Offline
Joined: Mar 13 2007
Posts: 4
Thanks

Thanks for running the test Smile

It seems that interactive stuff should run at close to full speed, limited by the terminal speed. Non-interactive code is limited by the 6502 emulation and runs around 1/8th speed, which matches my original estimates.

Offline
Joined: Mar 15 2004
Posts: 17
Re: Thanks

obo wrote:

It seems that interactive stuff should run at close to full speed, limited by the terminal speed. Non-interactive code is limited by the 6502 emulation and runs around 1/8th speed, which matches my original estimates.

Exactly as my emulator does, result is closely similar.
Congratulation to working emulator!

__________________

Jiri T. Dolezal, M.D.
Prague, Czech Republic, Europe

Offline
Joined: Jun 23 2005
Posts: 48
You should have heard from me

You should have heard from me now, but in case my email was missed (as is all too common in these days of spam) feel free to include Krusader with your emulator. The more users the better as far as I'm concerned. Smile

Ken

p.s. I like the animated screenshots!

obo
Offline
Joined: Mar 13 2007
Posts: 4
Emulator now available

Thanks Ken - I was waiting until I'd updated my site with binary+source before replying, which I've just done now Smile

I've limited the animations to 16.66fps as Internet Explorer can't play anything much faster, and I wanted to keep them compatible. The running emulator is smoother and faster than it looks from the shots too.

Si