Author Topic: Code to test emulator  (Read 1241 times)

0 Members and 1 Guest are viewing this topic.

Offline Manu

  • CPC464
  • **
  • Posts: 38
    • Manuel Sagra
  • Liked: 44
  • Likes Given: 8
Code to test emulator
« on: 14:30, 07 February 13 »
Hi,

As some of you may know, I'm coding a new emulator in Java. Right now, some things work (BASIC, some parts of some games,...), but there's still A LOT to do (sound, disk & tape emulation, managing more memory than 64KB,...) and to fix.

Testing the emulator with games is fun... but tedious at the same time, because when one of them does weird things, it's not obvious to know what's wrong in my code.

It would be GREAT to have a collection os code snippets to test things such as:
  • Interrupts (I've used this one but I'd like to have some more examples)
  • Exact cycle counting (routines that rely on this)
  • CRTC tricks
  • Gate Array quirks
  • ...
Do you know where to find these kind of code? I know about the programming category in the Wiki, but it'd be great to have more examples. Is there a good book about this?

BTW, I tested the Z80 core against ZEXALL and it fails some of the later tests, but it's painful running it again and again 8)

Thanks!

Offline Devilmarkus

  • Vivid source of indefiniteness
  • 6128 Plus
  • ******
  • Posts: 4.035
  • Country: de
  • WebCPC / JavaCPC developer
    • index.php?action=treasury
    • CPC-Live website
  • Liked: 1014
  • Likes Given: 926
When you put your ear on a hot stove, you can smell how stupid you are ...

Amstrad CPC games in your webbrowser

JavaCPC Desktop Full Release

Offline Manu

  • CPC464
  • **
  • Posts: 38
    • Manuel Sagra
  • Liked: 44
  • Likes Given: 8
Re: Code to test emulator
« Reply #2 on: 22:37, 07 February 13 »
Thanks Markus  ;)

Grimware is full of great documentation for the Gate Array and the CRTC. Kevin page is a mine, and I also know the Shinra Team.

Offline TFM

  • Visit the mysteries of the CPC at www.futureos.de
  • Supporter
  • 6128 Plus
  • *
  • Posts: 9.899
  • Country: aq
  • Space Chicken for FutureOS is free!
    • index.php?action=treasury
    • FutureOS - The revolution on CPC!
  • Liked: 1976
  • Likes Given: 4650
Re: Code to test emulator
« Reply #3 on: 00:28, 08 February 13 »
You can give Symbos and FutureOS a try. If they run then your emulation is well.
 
TFM of FutureSoft
Also visit the CPC and Plus users favorite OS: FutureOS - The Revolution on CPC6128 and 6128Plus

Offline Manu

  • CPC464
  • **
  • Posts: 38
    • Manuel Sagra
  • Liked: 44
  • Likes Given: 8
Re: Code to test emulator
« Reply #4 on: 09:40, 08 February 13 »
Sure, I want to try them, but I think I should fix a lot of bugs before  ;)