Page 1 of 2

Hatari 2.2.1 has been released

Posted: Thu Jan 31, 2019 1:58 pm
by npomarede
EDIT :

Hatari 2.2.1 was released on 08/02/2019.

This is just a small update to fix the 'UNPK' cpu instruction reported in this topic.
For macOS users, Hatari 2.2.1 is also using SDL 2.0.9, which should fix some display problems that could happen with some recent macOS setups.

You can get it here http://download.tuxfamily.org/hatari/2.2.1/

-----------------------------------------------------------------------------------------------------------------------------------------------------

Hello

Here's a new release to celebrate 2019 !

You can get it from http://hatari.tuxfamily.org/ or directly in http://download.tuxfamily.org/hatari/2.2.0/ http://download.tuxfamily.org/hatari/2.2.1/.

Sources are available, as well as prebuilt binaries for Windows (in 32 bit and 64 bit mode) and macOS (thanks to Troed).
(note that the Windows binaries don't include PortAudio/PortMidi libraries for now, only macOS version does)

Major highlights of this new version :

    - Many improvements/fixes to 68030 CPU regarding MMU, caches, bus error handling
    - Improve softfloat FPU emulation
    - Improve blitter bus sharing in some rare cases
    - Handle VBlank signal and mask the 2 last lines when bottom border is removed
    - Fix DSP ROM tables (sin, mulaw & a-law)
    - For DSP, Some waitstate cycles were not correctly counted when accessing DSP IO regs in CE mode
    - Experimental support for the NCR5380 SCSI chip in Falcon and TT mode
    - Very experimental support for the SCC chip of the Mega-STE, TT and Falcon
    - Experimental support for TOS 2.07 (the "Sparrow" TOS)
    - Correctly emulate bus error handling for STE lightpen registers
    - "patch TOS timer-D" speedup option is now disabled by default (to improve default compatibility)
    - Allow up to 512MB of TT-RAM (increased from 256 MB) and save/restore TT RAM content into memory snapshots
    - Improve memory snapshot save/restore reliability
    - Display more infos in the status bar (FPU, cycle exact mode)
    - IDE byte-swap option added to config file & GUI
    - AVI recording with PNG codec could be wrongly limited to 4GB with some OSes
    - Many changes to the debugger
    - Hatari Python UI migrated from PyGtk v2 to Gtk v3


See release-notes.txt for the full changelog.

Fixed demos : B.I.G. Demo screen 2

Fixed Falcon demos : 4musiK by Dune & Sector One

Fixed games : Lethal Xcess in STE mode when using blitter, Lethal Xcess in STF mode

Fixed programs : Many TT/Falcon programs relying on 68030 MMU / bus error retrying are now working correctly


I also coded a small STF intro for this release, available here http://download.tuxfamily.org/hatari/demos/hatari_2.2/ or here http://www.pouet.net/prod.php?which=80048

Nicolas

Re: Hatari 2.2.0 has been released

Posted: Thu Jan 31, 2019 3:45 pm
by Dal
Thank you!!

Downloaded and installed :-)

Re: Hatari 2.2.0 has been released

Posted: Thu Jan 31, 2019 4:37 pm
by EvilFranky
Excellent, thanks for the efforts!

Re: Hatari 2.2.0 has been released

Posted: Thu Jan 31, 2019 4:40 pm
by npomarede
Dal wrote:Thank you!!

Downloaded and installed :-)

Hi, can you make this topic sticky at the top of the section, instead of the previous about Hatari 2.1 ?
Thanks

Re: Hatari 2.2.0 has been released

Posted: Thu Jan 31, 2019 4:46 pm
by Dal
Of course - all done for you.

Re: Hatari 2.2.0 has been released

Posted: Thu Jan 31, 2019 5:08 pm
by Cyprian
great news

Re: Hatari 2.2.0 has been released

Posted: Thu Jan 31, 2019 5:21 pm
by tommo
Thanks !

Re: Hatari 2.2.0 has been released

Posted: Thu Jan 31, 2019 6:06 pm
by itaboy
Well, thank you very much!!!

Re: Hatari 2.2.0 has been released

Posted: Thu Jan 31, 2019 6:25 pm
by ijor
Great news. Congratulations to Nicolas and the whole team!

Re: Hatari 2.2.0 has been released

Posted: Thu Jan 31, 2019 7:01 pm
by Faucon2001
Excellent news, thank you

Re: Hatari 2.2.0 has been released

Posted: Thu Jan 31, 2019 7:22 pm
by ryo
thank. great job. and for raspberry ?

Re: Hatari 2.2.0 has been released

Posted: Thu Jan 31, 2019 7:24 pm
by npomarede
ryo wrote:thank. great job. and for raspberry ?

Sorry, don't have one, you will have to compile it yourself :D

Re: Hatari 2.2.0 has been released

Posted: Thu Jan 31, 2019 8:32 pm
by dma
Great work, again!

Re: Hatari 2.2.0 has been released

Posted: Thu Jan 31, 2019 8:32 pm
by darwinmac
Congratulations to Nicolas and team!

Bob C

Re: Hatari 2.2.0 has been released

Posted: Fri Feb 01, 2019 8:49 am
by gregoryMJM
Unfortunately, something is wrong with the macOS version, the image seems zoomed in and only one fourth of the Atari screen is visible.

For example, this is how 2.2.0 looks in ST Low mode:
Image
And this is 1024x768 GEM VDI:
Image
I'll have to stick with 2.1.0.

Re: Hatari 2.2.0 has been released

Posted: Fri Feb 01, 2019 10:10 am
by Dal
Yep - there's definitely something funky going on with the video output. If I play with the SDL options, I end up with a black screen and nothing seems to happen at all.

Re: Hatari 2.2.0 has been released

Posted: Fri Feb 01, 2019 3:58 pm
by tommo
Nice little demo on the floppy!

Fantastic this ide emulation!
I made a backup of the cf-card from on the real hardware and
run the emulation using that image, NICE! :D



A program did not run, problem was a 020+ instruction.
I get i bus error with unpack:

unpk d1,d3,#$3030
unpk source,dest,add

Whenever source = d0..d3 i get a bus error.
unpk source = d4..d7 is fine.

I use the windows64 version 2.2. (no problem on 2.1. (32bit version?))

test
with atari falcon tos 4.04 4mb (using devpac 3.10)
tested TT tos 3.06 emulation
tested 020 030 040
tested various cpu related settings.

I will probably test with win32 and maybe linux version also.

Re: Hatari 2.2.0 has been released

Posted: Fri Feb 01, 2019 4:07 pm
by npomarede
tommo wrote:A program did not run, problem was a 020+ instruction.
I get i bus error with unpack:

unpk d1,d3,#$3030
unpk source,dest,add

Whenever source = d0..d3 i get a bus error.
unpk source = d4..d7 is fine.

I use the windows64 version 2.2. (no problem on 2.1. (32bit version?))

test
with atari falcon tos 4.04 4mb (using devpac 3.10)
tested TT tos 3.06 emulation
tested 020 030 040
tested various cpu related settings.

I will probably test with win32 and maybe linux version also.

Hi
do you mean these instructions worked before with hatari 2.1, but not anymore with hatari 2.2 using the same settings ?
Do you have a small program or source I could assemble to reproduce this problem ? Did you test it on a real falcon or TT ?

Nicolas

Re: Hatari 2.2.0 has been released

Posted: Fri Feb 01, 2019 6:33 pm
by tommo
Hi Nicolas,
npomarede wrote:Hi
do you mean these instructions worked before with hatari 2.1, but not anymore with hatari 2.2 using the same settings ?
Yes.
npomarede wrote:Do you have a small program or source I could assemble to reproduce this problem ? Did you test it on a real falcon or TT ?
Nicolas
Yes, included.
Yes, Falcon.
No TT.

It is just run a small program i wrote, it got 2 bombs.
-assembled the source of this program in devapc 3.1 and run debugger 'mon' and found 'unpk' was the course.
-then tested every posible combination for 'unpk' (exept the addition part) and single-stepped though it.

-to confim these finding i used 8 tests:

- unpk d5,d0,#4
- unpk d5,d1,#4
- unpk d3,d2,#4 << bus error
- unpk d6,d3,#4
- unpk d1,d4,#4 << bus error
- unpk d5,d5,#4
- unpk d7,d6,#4
- unpk d7,d7,#4

tested:
a TT emulation
a Falcon emulation
cpu emulation set to 020, 030 and 040, and various cpu settings.

the '<<' always failed and the others always worked.

The program 'CHKSYS.PRG' that gave the error is just a test i am working on to find out the (020+) cpu speed
and a aprox. read&write speed a program gets.
The cpu speed it finds (on real hardware) for a 020,030 and 060 should be close enough to work with.

Re: Hatari 2.2.0 has been released

Posted: Fri Feb 01, 2019 6:54 pm
by czietz
I can reproduce tommo's error using the most simplistic test program -- as attached:

Code: Select all

.text
   unpk D1,D3,#0x3030
   
   move.w #0, -(SP)
   trap #1
.end


The address mode is decoded wrong! Even though the UNPK instruction specifies D1, it is treated as (A1), i.e. memory pointed to by A1. Depending on what the address registers contain, this will cause a bus error or not, but it'll always be wrong. I confirmed my hypothesis by changing A1 (in the above example). The bus error is reported at the address in A1.

I can also tell you the probable reason: For the UNPK instruction the source addressing mode is checked in https://hg.tuxfamily.org/mercurialroot/ ... pu.c#l5426 even though https://hg.tuxfamily.org/mercurialroot/ ... le68k#l349 makes it clear that the destination mode needs to be checked.

I don't know why it worked in Hatari 2.1, though. By chance, because the address registers contained the right values?

Re: Hatari 2.2.0 has been released

Posted: Fri Feb 01, 2019 7:15 pm
by npomarede
thanks to you both for your tests, I will fix the code and forward this to Toni / WinUAE.
IIRC there were some changes with BCD instructions because it could have unpredictable results depeding on the compiler's optimisation, maybe the regression was introduced at this point.
Nicolas

Re: Hatari 2.2.0 has been released

Posted: Fri Feb 01, 2019 8:08 pm
by Eero Tamminen
gregoryMJM wrote:Unfortunately, something is wrong with the macOS version, the image seems zoomed in and only one fourth of the Atari screen is visible.


Which MacOS version do you have? Which Mac device? With what kind of a display (type and resolution)?

FYI: Based on feedback from few other users, there seems to be some kind of a bug between MacOS libSDL version included with Hatari MacOS package and how MacOS handles Retina displays (it's definitely not the first bug with SDL & MacOS). However, apparently it doesn't happen for all users with Retina displays, so more info is needed.

Please try replacing the libSDL version included with Hatari 2.2 with the latest version (if its newer than Hatari version) and tell whether that helps:
https://www.libsdl.org/download-2.0.php

gregoryMJM wrote:I'll have to stick with 2.1.0.


Which version of libSDL is included with Hatari 2.1 MacOS package?

(Hatari download site MacOS binaries are contributed by Hatari users, they aren't built by Hatari developers.)

Re: Hatari 2.2.0 has been released

Posted: Fri Feb 01, 2019 8:13 pm
by dhedberg
Thanks to everyone involved! Great release!

Re: Hatari 2.2.0 has been released

Posted: Fri Feb 01, 2019 10:01 pm
by npomarede
npomarede wrote:thanks to you both for your tests, I will fix the code and forward this to Toni / WinUAE.
IIRC there were some changes with BCD instructions because it could have unpredictable results depeding on the compiler's optimisation, maybe the regression was introduced at this point.
Nicolas

After reviewing the code, the error was not in WinUAE cpu core, it was a bad merge from me into Hatari to fix those BCD instructions :(
I committed a fix for this and there's no more crash with the given examples. You can try the corresponding Windows binary from http://antarctica.no/~hatari/latest/ (it should be rebuilt in a few minutes I guess)

Nicolas

Re: Hatari 2.2.0 has been released

Posted: Fri Feb 01, 2019 11:23 pm
by tommo
Hi Nicolas,
Your fix is good!

I used unpk indeed for bcd -> text.

Thanks!

Very quick fix by the way.