sz81 - a portable z81 based emulator using SDL

Emulator and emulator development specific topics
User avatar
Thunor
Posts: 42
Joined: Sun Oct 11, 2009 11:37 am
Location: Anglia
Contact:

Re: sz81 - a portable z81 based emulator using SDL

Post by Thunor »

XavSnap and Gilles have created a Win32 build based upon the latest source release :)

For the moment I've created a zip package which includes the executable, data and docs, but I believe there's a possibility of an installer later on.

Currently (from the results of my tests) changes to the runtime options are not being saved to the configuration file, but XavSnap is aware of this and is resolving it. Other than that it is fully functional.

http://sz81.sourceforge.net/#downloads

Regards,
Thunor
User avatar
XavSnap
Posts: 965
Joined: Sat May 10, 2008 4:23 pm

Re: sz81 - a portable z81 based emulator using SDL

Post by XavSnap »

Hi all,

A new release is ready...

But, is it possible to launch the Tree4th.rom (Forth bios rom @0000)
with sZ81?
We had to force the vertical refresh to 60hz ?
The video display seem to hang on the default setup!
Xav.
Xavier
User avatar
XavSnap
Posts: 965
Joined: Sat May 10, 2008 4:23 pm

Re: sz81 - a portable z81 based emulator using SDL

Post by XavSnap »

Hi all,
A new release is ready...

But, is it possible to launch the Tree4th.rom (Forth bios rom @0000)
with sZ81?
We had to force the vertical refresh to 60hz ?
The video display seem to hang on the default setup!
The sZ81 for Windows release "6" is ready!
download:http://zx81.ordi5.free.fr/sZ81_WIN32
The Forth Rom can be launched...
But, the NTSC synchro is not coded!
Just type in "sz81.exe -f" to launch the "tree4th.rom" rom.
(2,5 lines are hidden at the top of the screen!)
(>> or launch the VBscrip in the winsetup directory to create "Program files" short-cut!)

Thunor ? need help.
We can't boot the screen frame refresh up to 50hz!
But... is it the Zx81 screen refresh or the SDL screen refresh ? ! ? ! ? !
Probably the Sdl frame rate !!!
Have a look to my codes...
I can't compile it on AmigaOS!... you had to test it.
Have Fun.
Xav.
Xavier
User avatar
bobs
Posts: 280
Joined: Thu Aug 27, 2009 10:49 pm
Location: Derbyshire, UK
Contact:

Re: sz81 - a portable z81 based emulator using SDL

Post by bobs »

Really chuffed to see my game Virus as one of your screenshots. :)

I admit I haven't tried the emulator yet, but was wondering if it had an debugging support? EightyOne is somewhat unstable with regard to setting breakpoints, single-stepping through code, noting t-states etc. Is sz81 going to be extended at all in that direction?
User avatar
XavSnap
Posts: 965
Joined: Sat May 10, 2008 4:23 pm

Re: sz81 - a portable z81 based emulator using SDL

Post by XavSnap »

Hi Thunor,
I had create a PDF file using the "ReadMe" text file.
http://zx81.ordi5.free.fr/sZ81_WIN32/sZ81.pdf

I had to update the W32 compiler section.

You can rebuild it with "OOO" (Open-Office.org):
http://zx81.ordi5.free.fr/sZ81_WIN32/PD ... ce.org.zip
Hi Bobs,
I admit I haven't tried the emulator yet, but was wondering if it had an debugging support?
I compiled the Res , as is !
I had to resolve most of Path or bad issus errors, due to compilator's tags errors.
But, codes steel open... we will change most of ZX81 engine errors in last.
EightyOne is somewhat unstable with regard to setting breakpoints, single-stepping through code, noting t-states etc.
We had to test it !
sZ81(win32) is a young emulator (< 2 weeks !).
The NTsc seel corrupt, and i tryed to change codes, but it a new projct to me.
Is sz81 going to be extended at all in that direction?
sZ81 is not an EO, VB81, Ts1000...
It must be a complementary emulator !
Eo generalist, XuR toolkit, sZ81 sound+gamming !
We can work on the main Zx81 engine, but it steel releable as is.

Thunor is the main contact ( sZ81 web-master/ source manager)
-> SDL-Zx81 engine.

Chris Young (Amiga OS)

XavSnap Win32 debugging /manager. ( W32 res)
-> all win32 messages box ("about" window !!!)
:D

Have Fun...
Xav.
Xavier
User avatar
Forthretro.new.fr
Posts: 32
Joined: Thu Nov 19, 2009 9:34 pm

Re: sz81 - a portable z81 based emulator using SDL

Post by Forthretro.new.fr »

XavSnap wrote:Hi all,

A new release is ready...

But, is it possible to launch the Tree4th.rom (Forth bios rom @0000)
with sZ81?
We had to force the vertical refresh to 60hz ?
The video display seem to hang on the default setup!
Xav.
Hello Xav,

You told me, yesterday, you were looking for the Doc of Tree4th .

but, do you know that you actually HAVE the doc ?

Tree4th ROM is the EPROM David Husband was selling in the 80's under the name of ZX81-FORTH ROM.

Your doc (Jens sent it to you 2 years ago) is avaible at

http://zx81.ordi5.free.fr/dominique/dow ... h-h4th.pdf

Salut ;)
Dominique
User avatar
Thunor
Posts: 42
Joined: Sun Oct 11, 2009 11:37 am
Location: Anglia
Contact:

Re: sz81 - a portable z81 based emulator using SDL

Post by Thunor »

bobs wrote:Really chuffed to see my game Virus as one of your screenshots. :)

I admit I haven't tried the emulator yet, but was wondering if it had an debugging support? EightyOne is somewhat unstable with regard to setting breakpoints, single-stepping through code, noting t-states etc. Is sz81 going to be extended at all in that direction?
Hi bobs

I haven't really planned anything past a save-state system and a few more options since the project then will include all the features I'd intended to implement, but I may add some others (I think that a debugger would be too much work though). I could really do with a decent screen designer with cut and paste which saves as assembly; I may add that to my list.

@XavSnap: It's great that you are having fun making an enhanced Win32 port, but unfortunately I don't use Windows and so I can't test it ;) I can tell you that the emulator struct in sdl.h contains a variable speed which is set to 50 in sdl_engine.c (search for emulator.speed), and scrn_freq -- 2 by default -- works like a frameskip and so it'll be half the emulation speed unless you set it to 1 with "-r 1" on the command-line; I think that's what you meant.

I don't know if you're going to continue to port my source package releases or you have your own plans (the latter I think), but what you're adding to your Win32 build conflicts with what I'm doing and so you're going to have quite a task integrating your local modifications if you intend to do this (I'm assuming you're not using version control software on your computer).
User avatar
XavSnap
Posts: 965
Joined: Sat May 10, 2008 4:23 pm

Re: sz81 - a portable z81 based emulator using SDL

Post by XavSnap »

hi,
"H-Forth" and "Tree" forth seem to be in Ntsc video format!
... it's the same rom.
Only the promt message had been changed.
Xavier
User avatar
XavSnap
Posts: 965
Joined: Sat May 10, 2008 4:23 pm

Re: sz81 - a portable z81 based emulator using SDL

Post by XavSnap »

Hi,
The sZ81 for Windows release "9" is ready!
(Z81 file format supported)

Have Fun.
Xavier
User avatar
Thunor
Posts: 42
Joined: Sun Oct 11, 2009 11:37 am
Location: Anglia
Contact:

Re: sz81 - a portable z81 based emulator using SDL

Post by Thunor »

Version 2.1.7 released

ChangeLog
  • Added forced (non-LOAD) program loading via a load file dialog
  • Added a save state system for saving and loading sz81 save states
  • Moved command-line emulation options to GUI runtime options
  • Added support for 1 to 4, 16, 32, 48 and 56K RAM (UDG now works)
  • Added the ability to save screenshots via PrtScn (SDLK_PRINT)
  • Added support for o, 80, p and 81 program file types
  • Added autoloading of ZX80 program files in addition to the ZX81
  • Added sequential filenaming for ZX80, printer and screenshot files
  • Added a ZX80 BASIC xxxx REM SAVE "progname" filenaming hack
  • Added an emulator pause feature via Pause (SDLK_PAUSE)
  • Added mouse wheel support, used within the load file dialog
  • Added a machine code PipePanic game and a machine code template
  • Added the GNU GPL'd Open80 and Open81 source code and ROMs
  • Added Win32 support via the _WIN32 preprocessor macro
  • Applied several graphical and usability tweaks
  • Fixed a couple of bugs
Image Image
Image Image

Porting to Other Platforms
This project requires SDL only, runs centred within any resolution, can be scaled-up up to 3x, can be operated entirely with a keyboard, mouse or joystick, ships with *nix, AmigaOS4 and Win32 source code support by default and should port easily to many different platforms and devices.

For XavSnap and anyone considering compiling this on Win32: I've used the "_WIN32" preprocessor macro in several places (search for "_WIN32" throughout the project and you'll also find my notes) and the code that I've included should create a "local" directory structure within the start-up folder for the save states, screenshots and ZX printer output . The load file dialog should go back as far as root but it's up to you to add code to deal with drive specifiers. Alternatively you can use the __amigaos4__ code as a guide to integrating native OS file dialogs instead. In its default state though, if you can compile it then it should work. Happy hacking :)

Screenshots | Downloads | Project Page

Regards,
Thunor
Post Reply