Spiced up by Klapauzius compatibility

A section to cover all the different problems encountered by running game x on system y! Whether it's as simple as a non-STE compatible game through to h/drive installable games. Discuss them all in here.

Moderator: Moderator Team

User avatar
Oulan
Atarian
Atarian
Posts: 3
Joined: Thu Mar 13, 2014 7:44 am

Spiced up by Klapauzius compatibility

Postby Oulan » Thu Mar 13, 2014 8:27 am

Hi,

To play nicely Bard's Tale on my mac, I am coding my own cocoa native (+ sprite kit) ST emulator (see https://sites.google.com/site/olivier2smet2/other-projects/gost)

Actually it works quite well for my needs. But to test it I used Klapauzius FOFT release. With this one, it locks on a red screen after the config screen.
The lock is done on a loop:

Code: Select all

move #2700,sr
bra.s *

So I am curious to find WHY the code decided to locks on my emulator. The Automation A_16 FOFT starts on my emulation so it is a test certainly added by Klapauzius ...

Thanks in advance

AtariZoll
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 2946
Joined: Mon Feb 20, 2012 4:42 pm
Contact:

Re: Spiced up by Klapauzius compatibility

Postby AtariZoll » Thu Mar 13, 2014 12:40 pm

The answer is for sure: because you emulate something not properly.
I guess that it locks from safety reasons after getting some invalid test results. There is HW test to see is it ST, STE, TT, Falcon ...
There is way to stop global warming.

User avatar
Oulan
Atarian
Atarian
Posts: 3
Joined: Thu Mar 13, 2014 7:44 am

Re: Spiced up by Klapauzius compatibility

Postby Oulan » Sun Mar 16, 2014 3:58 pm

Hi,

Ok I found the bug. It is related to .L access to video regs.

ie move.l $8200, d0 should works without bus error.

Just to be sure, can someone tell me what is exactly returned in this case ...

ie :ff8201 : 0x0F, ff8203: 0x80 ... what is read in the d0 reg for move.l $8200, d0 ?

Same for write which byte go to io regs ? if d0 is 0xaabbccdd what is written in ff8201 and ff8203 with move.l d0, $8200 ?

Thanks in advance

AtariZoll
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 2946
Joined: Mon Feb 20, 2012 4:42 pm
Contact:

Re: Spiced up by Klapauzius compatibility

Postby AtariZoll » Mon Mar 17, 2014 9:46 am

Only low (odd) bytes are relevant here. There is usually $FE in high bytes by read. So. you will get something like: $FE0FFE80 in d0 .
In case of write it should be irrelevant what is in even bytes. In any case, you can not use 0xaabbccdd :D Max 0xaa3fcc83 :wink:
There is way to stop global warming.

User avatar
Oulan
Atarian
Atarian
Posts: 3
Joined: Thu Mar 13, 2014 7:44 am

Re: Spiced up by Klapauzius compatibility

Postby Oulan » Tue Mar 18, 2014 7:47 am

Ok, thanks for the info it is now working.

Now I need to add gamepad support ... in mac os, just a nightmare :?


Social Media

     

Return to “Games - Compatibility Issues etc.”

Who is online

Users browsing this forum: No registered users and 2 guests