New ZEsarUX beta - RC2

Emulator and emulator development specific topics
User avatar
chernandezba
Posts: 209
Joined: Tue Mar 11, 2014 4:30 pm

New ZEsarUX beta - RC2

Post by chernandezba »

Hi

I have uploaded a new ZEsarUX beta version on the usual url
https://sourceforge.net/projects/zesaru ... _versions/

This version is RC2, so stable version is coming soon ;)

Changes since the last beta:

Added Specdrum emulation
Added RZX playback support
Added Multiface One, 128 and Three emulation
Added hardware debug port to output ascii characters or numbers directly on host console
Added two unused ports from the ZXI pool for some internal ZEsarUX features. See docs/zesarux_zxi_registers.txt
Added Hotswap from 128k to +2A, and +2A to 128k
Added drawn piano for AY Piano menu setting (on all video drivers except text drivers)
Added setting to disable beeper
Added setting to load source code in remote protocol to debug programs viewing the source code
Improved a bit QL keyboard emulation (F1 and F2 handled on menu)
Fixed reading from paging port on 128k and +2 machines: in this case, the same value read from the idle bus port is sent to the paging port
Fixed setting timings changing from Pentagon to non Pentagon machine
Fixed bug mapping real joystick buttons and axes with same number
Updated Z88 OZ V4.7


Cheers
Cesar
----

ZEsarUX
ZX Second-Emulator And Released for UniX
https://github.com/chernandezba/zesarux
User avatar
marste
Posts: 271
Joined: Sun Aug 10, 2014 9:58 pm
Location: Italy
Contact:

Re: New ZEsarUX beta - RC2

Post by marste »

No version for Linux?
User avatar
marste
Posts: 271
Joined: Sun Aug 10, 2014 9:58 pm
Location: Italy
Contact:

Re: New ZEsarUX beta - RC2

Post by marste »

PS: don't know if you already know, but seems that for some reason ZEsarUX doesn't reproduce correctly the ZX80 "autostart" trick of Martin "nocash":

Code: Select all

ZX80 Data Field
The data field is loaded to address 4000h, and it contains the whole system area, the basic program, and VARS area. Video memory is NOT included in ZX80 files.
The system area should contain proper data. The entry at 400Ah defines the end address (used to calculate the file length). Memory at 4028h and up may be misused for whatever purpose.
Normally, ZX80 files cannot be autostarted - except via "nocash LD H,L trick":
;nocash LD H,L trick for autostarting ZX80 files, 9/2009 by martin korth
4000h 8 x 00h ;System area: Zerofilled stuff
4008h 402Ch ;System area: Pointer to VARS
400Ah nn3Dh ;System area: Pointer to End of file
400Ch 1Ch x 00h ;System area: Zerofilled stuff
4028h 00h,01h,65h,76h ;BASIC program: Line 0001, LD H,L opcode, NEWLINE
402Ch 80h ;VARS area: End code
402Dh 13h x 00h ;Unused/padding (for entryoint 4040h)
4040h ... ;Machine code (entrypoint at 4040h)
xxxxh (xx3Dh-$) x 00h ;Unused/padding (for end address xx3Dh)
xx3Dh ;End of file (must be at xx3Dh)
After loading, the BASIC line is LISTed on the screen. The ZX80 BIOS doesn't replace invalid tokens in range of 40h..7Fh by question marks, so Token 65h is written as-is to VRAM (ie. as LD H,L opcode). The file must end at xx3Dh, so the first character line starts at xx40h, which is (normally) excecuted 8 times via JP HL from inside of the IRQ handler. After first execution, the LD H,L opcode changes HL=xx40h to HL=4040h, so the next IRQ jumps to the autostart entryoint at 4040h. That is still done with IRQs enabled, so the first opcode at 4040h should be a DI.
Note: Emulators that do not handle opcodes in VRAM should reproduce autostart as "IF [402Ah]=7665h THEN JP 4040h" after loading the file (that, preferably with registers and memory initialized as on real hardware). 
Becky
Posts: 21
Joined: Tue Aug 25, 2015 9:41 pm

Re: New ZEsarUX beta - RC2

Post by Becky »

marste wrote: Sun Mar 26, 2017 1:11 pm No version for Linux?
I run the windows version of ZEsarUX on Linux using WINE. If you're not aware of this project the URL is www.winehq.org

Becky.

[Edit - Wrong URL]
2x ZX81 / 2xZ88 / Spectrum 48K / Spectrum+ / Spectrum +2 (Grey) / Spectrum +3
Harlequin Rev G
User avatar
marste
Posts: 271
Joined: Sun Aug 10, 2014 9:58 pm
Location: Italy
Contact:

Re: New ZEsarUX beta - RC2

Post by marste »

Becky wrote: Sun Mar 26, 2017 3:14 pm
marste wrote: Sun Mar 26, 2017 1:11 pm No version for Linux?
I run the windows version of ZEsarUX on Linux using WINE. If you're not aware of this project the URL is www.winehq.org

Becky.

[Edit - Wrong URL]
I know wine, probably from the very first version available! (I installed Linux 0.x in 1991/1992 - downloading 44x 1.44Mb floppy disks from funet.fi!... - and that time windows compatibility was more important)

Nowdays I don't like it very much since it's affecting a lot the system and so I perfer using a VM instead.

My point was to have compiled also the Linux native version! :)
User avatar
chernandezba
Posts: 209
Joined: Tue Mar 11, 2014 4:30 pm

Re: New ZEsarUX beta - RC2

Post by chernandezba »

marste wrote: Sun Mar 26, 2017 1:11 pm No version for Linux?
ZEsarUX is available on many Unix flavours (Linux, Mac, etc) and also on Windows. I generate many binary archives for stable versions, but not Beta versions for Linux. You can grab the source code from here:
https://sourceforge.net/p/zesarux/code/ci/master/tree/

And compile it

Of course, you can download a stable version from:
https://sourceforge.net/projects/zesarux/files/

Cheers
----

ZEsarUX
ZX Second-Emulator And Released for UniX
https://github.com/chernandezba/zesarux
User avatar
chernandezba
Posts: 209
Joined: Tue Mar 11, 2014 4:30 pm

Re: New ZEsarUX beta - RC2

Post by chernandezba »

marste wrote: Sun Mar 26, 2017 1:23 pm PS: don't know if you already know, but seems that for some reason ZEsarUX doesn't reproduce correctly the ZX80 "autostart" trick of Martin "nocash":

Code: Select all

ZX80 Data Field
The data field is loaded to address 4000h, and it contains the whole system area, the basic program, and VARS area. Video memory is NOT included in ZX80 files.
The system area should contain proper data. The entry at 400Ah defines the end address (used to calculate the file length). Memory at 4028h and up may be misused for whatever purpose.
...
Sorry but I don't know whay you mean...
----

ZEsarUX
ZX Second-Emulator And Released for UniX
https://github.com/chernandezba/zesarux
User avatar
chernandezba
Posts: 209
Joined: Tue Mar 11, 2014 4:30 pm

Re: New ZEsarUX beta - RC2

Post by chernandezba »

Becky wrote: Sun Mar 26, 2017 3:14 pm
marste wrote: Sun Mar 26, 2017 1:11 pm No version for Linux?
I run the windows version of ZEsarUX on Linux using WINE. If you're not aware of this project the URL is www.winehq.org

Becky.

[Edit - Wrong URL]
Why? You can always try a stable compiled version for Linux or compile the source code on Linux... It's not the best choice to run the Windows version on Wine... ;)
----

ZEsarUX
ZX Second-Emulator And Released for UniX
https://github.com/chernandezba/zesarux
Becky
Posts: 21
Joined: Tue Aug 25, 2015 9:41 pm

Re: New ZEsarUX beta - RC2

Post by Becky »

chernandezba wrote: Mon Mar 27, 2017 12:19 pm
Becky wrote: Sun Mar 26, 2017 3:14 pm
marste wrote: Sun Mar 26, 2017 1:11 pm No version for Linux?
I run the windows version of ZEsarUX on Linux using WINE. If you're not aware of this project the URL is www.winehq.org

Becky.

[Edit - Wrong URL]
Why? You can always try a stable compiled version for Linux or compile the source code on Linux... It's not the best choice to run the Windows version on Wine... ;)
Is it tricky to compile for Linux? Are there many dependencies? I might have a go at compiling later.

Becky.
2x ZX81 / 2xZ88 / Spectrum 48K / Spectrum+ / Spectrum +2 (Grey) / Spectrum +3
Harlequin Rev G
User avatar
chernandezba
Posts: 209
Joined: Tue Mar 11, 2014 4:30 pm

Re: New ZEsarUX beta - RC2

Post by chernandezba »

Becky wrote: Mon Mar 27, 2017 2:26 pm
chernandezba wrote: Mon Mar 27, 2017 12:19 pm
Becky wrote: Sun Mar 26, 2017 3:14 pm

I run the windows version of ZEsarUX on Linux using WINE. If you're not aware of this project the URL is www.winehq.org

Becky.

[Edit - Wrong URL]
Why? You can always try a stable compiled version for Linux or compile the source code on Linux... It's not the best choice to run the Windows version on Wine... ;)
Is it tricky to compile for Linux? Are there many dependencies? I might have a go at compiling later.

Becky.

No, it's not difficult. See file INSTALL:

https://sourceforge.net/p/zesarux/code/ ... ee/INSTALL
----

ZEsarUX
ZX Second-Emulator And Released for UniX
https://github.com/chernandezba/zesarux
Post Reply