Re: FlashbackSE misbehaving on Q68
Posted: Sat Jun 22, 2019 11:01 am
Hi,
There has been an in depth investigation into Flashback running on the Q68.
The origins of the problem is that there are several places throughout the code which do:
move.b #0,$34(a1) (a1 points to the sysvars)
move.b #0,$18063 !! direct write to display mode reg
These instructions make a change to the screen mode by poking values directly into control register. The software has no business doing that and, as you can see, this screws things up.
This means that Q68 SMSQ/E (which doesn't know about the screen change) and the hardware no longer are in agreement, which crashes the machine (Q68 SMSQ/E still uses the higher colour screen driver).
Since SMSQmulator simply ignores these sysvars, it isn't affected by the writes to them, QPC2 seems to accept the write to the display register.
Flashback is programmed to access the QL screen directly, which the Q68 does not have, which is not good programming style.
There is a fix, but since Flashback is still commercial software is subject to copyright, only the copyright holder can alter the software or give authorisation for alteration.
To date the copyright holder is not responding to any communications.
There has been an in depth investigation into Flashback running on the Q68.
The origins of the problem is that there are several places throughout the code which do:
move.b #0,$34(a1) (a1 points to the sysvars)
move.b #0,$18063 !! direct write to display mode reg
These instructions make a change to the screen mode by poking values directly into control register. The software has no business doing that and, as you can see, this screws things up.
This means that Q68 SMSQ/E (which doesn't know about the screen change) and the hardware no longer are in agreement, which crashes the machine (Q68 SMSQ/E still uses the higher colour screen driver).
Since SMSQmulator simply ignores these sysvars, it isn't affected by the writes to them, QPC2 seems to accept the write to the display register.
Flashback is programmed to access the QL screen directly, which the Q68 does not have, which is not good programming style.
There is a fix, but since Flashback is still commercial software is subject to copyright, only the copyright holder can alter the software or give authorisation for alteration.
To date the copyright holder is not responding to any communications.