Hatari 2.2.1 has been released

A forum about the Hatari ST/STE/Falcon emulator - the current version is v2.2.0

Moderators: simonsunnyboy, thothy, Moderator Team

User avatar
npomarede
Atari God
Atari God
Posts: 1299
Joined: Sat Dec 01, 2007 7:38 pm
Location: France

Hatari 2.2.1 has been released

Postby npomarede » Thu Jan 31, 2019 1:58 pm

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
Last edited by npomarede on Sun Feb 10, 2019 9:48 am, edited 3 times in total.

Dal
Administrator
Administrator
Posts: 4178
Joined: Tue Jan 18, 2011 12:31 am
Location: Cheltenham, UK
Contact:

Re: Hatari 2.2.0 has been released

Postby Dal » Thu Jan 31, 2019 3:45 pm

Thank you!!

Downloaded and installed :-)
Mega"SST" 12, MegaSTE, STE: Desktopper case, IDE interface, UltraSatan (8GB + 512Mb) + HXC floppy emulator. Plus some STE's/STFM's

EvilFranky
Atari Super Hero
Atari Super Hero
Posts: 868
Joined: Thu Sep 11, 2003 10:49 pm
Location: UK
Contact:

Re: Hatari 2.2.0 has been released

Postby EvilFranky » Thu Jan 31, 2019 4:37 pm

Excellent, thanks for the efforts!

User avatar
npomarede
Atari God
Atari God
Posts: 1299
Joined: Sat Dec 01, 2007 7:38 pm
Location: France

Re: Hatari 2.2.0 has been released

Postby npomarede » Thu Jan 31, 2019 4:40 pm

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

Dal
Administrator
Administrator
Posts: 4178
Joined: Tue Jan 18, 2011 12:31 am
Location: Cheltenham, UK
Contact:

Re: Hatari 2.2.0 has been released

Postby Dal » Thu Jan 31, 2019 4:46 pm

Of course - all done for you.
Mega"SST" 12, MegaSTE, STE: Desktopper case, IDE interface, UltraSatan (8GB + 512Mb) + HXC floppy emulator. Plus some STE's/STFM's

User avatar
Cyprian
10 GOTO 10
10 GOTO 10
Posts: 1682
Joined: Fri Oct 04, 2002 11:23 am
Location: Warsaw, Poland

Re: Hatari 2.2.0 has been released

Postby Cyprian » Thu Jan 31, 2019 5:08 pm

great news
Lynx II / Jaugar / TT030 / Mega STe / 800 XL / 1040 STe / Falcon030 / 65 XE / 520 STm / SM124 / SC1435
SDrive / PAK68/3 / Lynx Multi Card / LDW Super 2000 / XCA12 / SkunkBoard / CosmosEx / SatanDisk / UltraSatan / USB Floppy Drive Emulator / Eiffel / SIO2PC / Crazy Dots / PAM Net
Hatari / Steem SSE / Aranym / Saint
http://260ste.appspot.com/

tommo
Atariator
Atariator
Posts: 29
Joined: Mon Jan 29, 2018 6:00 pm

Re: Hatari 2.2.0 has been released

Postby tommo » Thu Jan 31, 2019 5:21 pm

Thanks !

itaboy
Captain Atari
Captain Atari
Posts: 192
Joined: Sun May 04, 2014 6:24 pm

Re: Hatari 2.2.0 has been released

Postby itaboy » Thu Jan 31, 2019 6:06 pm

Well, thank you very much!!!

ijor
Hardware Guru
Hardware Guru
Posts: 3790
Joined: Sat May 29, 2004 7:52 pm
Contact:

Re: Hatari 2.2.0 has been released

Postby ijor » Thu Jan 31, 2019 6:25 pm

Great news. Congratulations to Nicolas and the whole team!
Fx Cast: Atari St cycle accurate fpga core

Faucon2001
Atari Super Hero
Atari Super Hero
Posts: 757
Joined: Sat Oct 26, 2013 11:19 pm
Location: Brasil
Contact:

Re: Hatari 2.2.0 has been released

Postby Faucon2001 » Thu Jan 31, 2019 7:01 pm

Excellent news, thank you
Philippe

Firebee, Falcon, STE, Aranym Box, Hatari Pi Box.
My music http://www.philippeworld.net/
My photography http://phil-67.deviantart.com/
EasyAraMint, BeeKey and BeePi https://sites.google.com/site/beebox68k/

ryo
Captain Atari
Captain Atari
Posts: 249
Joined: Wed Nov 06, 2002 8:01 pm

Re: Hatari 2.2.0 has been released

Postby ryo » Thu Jan 31, 2019 7:22 pm

thank. great job. and for raspberry ?

User avatar
npomarede
Atari God
Atari God
Posts: 1299
Joined: Sat Dec 01, 2007 7:38 pm
Location: France

Re: Hatari 2.2.0 has been released

Postby npomarede » Thu Jan 31, 2019 7:24 pm

ryo wrote:thank. great job. and for raspberry ?

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

User avatar
dma
Atari Super Hero
Atari Super Hero
Posts: 971
Joined: Wed Nov 20, 2002 11:22 pm
Location: France
Contact:

Re: Hatari 2.2.0 has been released

Postby dma » Thu Jan 31, 2019 8:32 pm

Great work, again!

darwinmac
Captain Atari
Captain Atari
Posts: 217
Joined: Sat Aug 06, 2011 2:49 pm
Location: San Jose, USA

Re: Hatari 2.2.0 has been released

Postby darwinmac » Thu Jan 31, 2019 8:32 pm

Congratulations to Nicolas and team!

Bob C

User avatar
gregoryMJM
Retro freak
Retro freak
Posts: 10
Joined: Fri Feb 16, 2018 3:23 pm
Location: Poland
Contact:

Re: Hatari 2.2.0 has been released

Postby gregoryMJM » Fri Feb 01, 2019 8:49 am

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.
Marijuana Mail 0.1.77, an e-mail client for Atari 1040ST and TOS 1.0:
http://atari.net.pl/mjm-en

Dal
Administrator
Administrator
Posts: 4178
Joined: Tue Jan 18, 2011 12:31 am
Location: Cheltenham, UK
Contact:

Re: Hatari 2.2.0 has been released

Postby Dal » Fri Feb 01, 2019 10:10 am

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.
Mega"SST" 12, MegaSTE, STE: Desktopper case, IDE interface, UltraSatan (8GB + 512Mb) + HXC floppy emulator. Plus some STE's/STFM's

tommo
Atariator
Atariator
Posts: 29
Joined: Mon Jan 29, 2018 6:00 pm

Re: Hatari 2.2.0 has been released

Postby tommo » Fri Feb 01, 2019 3:58 pm

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.

User avatar
npomarede
Atari God
Atari God
Posts: 1299
Joined: Sat Dec 01, 2007 7:38 pm
Location: France

Re: Hatari 2.2.0 has been released

Postby npomarede » Fri Feb 01, 2019 4:07 pm

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

tommo
Atariator
Atariator
Posts: 29
Joined: Mon Jan 29, 2018 6:00 pm

Re: Hatari 2.2.0 has been released

Postby tommo » Fri Feb 01, 2019 6:33 pm

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.
You do not have the required permissions to view the files attached to this post.

czietz
Hardware Guru
Hardware Guru
Posts: 964
Joined: Tue May 24, 2016 6:47 pm

Re: Hatari 2.2.0 has been released

Postby czietz » Fri Feb 01, 2019 6:54 pm

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?
You do not have the required permissions to view the files attached to this post.

User avatar
npomarede
Atari God
Atari God
Posts: 1299
Joined: Sat Dec 01, 2007 7:38 pm
Location: France

Re: Hatari 2.2.0 has been released

Postby npomarede » Fri Feb 01, 2019 7:15 pm

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

User avatar
Eero Tamminen
Atari God
Atari God
Posts: 1949
Joined: Sun Jul 31, 2011 1:11 pm

Re: Hatari 2.2.0 has been released

Postby Eero Tamminen » Fri Feb 01, 2019 8:08 pm

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.)

User avatar
dhedberg
Atari God
Atari God
Posts: 1067
Joined: Mon Aug 30, 2010 8:36 am
Contact:

Re: Hatari 2.2.0 has been released

Postby dhedberg » Fri Feb 01, 2019 8:13 pm

Thanks to everyone involved! Great release!
Daniel, New Beat - http://newbeat.atari.org. Like demos? Have a look at our new Falcon030 demo and feel the JOY.

User avatar
npomarede
Atari God
Atari God
Posts: 1299
Joined: Sat Dec 01, 2007 7:38 pm
Location: France

Re: Hatari 2.2.0 has been released

Postby npomarede » Fri Feb 01, 2019 10:01 pm

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

tommo
Atariator
Atariator
Posts: 29
Joined: Mon Jan 29, 2018 6:00 pm

Re: Hatari 2.2.0 has been released

Postby tommo » Fri Feb 01, 2019 11:23 pm

Hi Nicolas,
Your fix is good!

I used unpk indeed for bcd -> text.

Thanks!

Very quick fix by the way.


Social Media

     

Return to “Hatari”

Who is online

Users browsing this forum: No registered users and 3 guests