Speed test request

7 posts / 0 new
Last post
obo
Offline
Last seen: 13 years 10 months ago
Joined: Mar 13 2007 - 17:11
Posts: 4
Speed test request

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

obo
Offline
Last seen: 13 years 10 months ago
Joined: Mar 13 2007 - 17:11
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
Last seen: 8 years 5 months ago
Joined: Feb 24 2007 - 04:06
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
Last seen: 13 years 10 months ago
Joined: Mar 13 2007 - 17:11
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
Last seen: 15 years 4 months ago
Joined: Mar 15 2004 - 09:47
Posts: 17
Re: Thanks

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!

Offline
Last seen: 3 years 8 months ago
Joined: Jun 22 2005 - 21:06
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
Last seen: 13 years 10 months ago
Joined: Mar 13 2007 - 17:11
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

Log in or register to post comments