SMSQmulator v2.27 bug, perhaps?

Discussion and advice about emulating the QL on other machines.
Post Reply
User avatar
NormanDunbar
Forum Moderator
Posts: 2251
Joined: Tue Dec 14, 2010 9:04 am
Location: Leeds, West Yorkshire, UK
Contact:

SMSQmulator v2.27 bug, perhaps?

Post by NormanDunbar »

I'm not 100% certain whether the bug is in GWASS60_BIN or in SQLQmulator (Java 8 version running on Java 10).

Following on from my tale of woe at viewtopic.php?f=19&t=2656 I've attempted to assemble some code with my trusty GWASS60_bin (George Gwilt's GWASS for 68020 processors) version 5.07 (the latest version) on SMSQmulator version 2.27. I get an address errors as soon as I execute the assembler. The prompt to start assembling is green while the prompt to quit is white. QMON shows the following:
Screenshot from 2018-12-24 13-52-59.png
No matter how many times I run it, it always hits the same register dump with the PC set to $FFFFFE etc as shown in the screen dump. But that's probably not relevant. This has been used numerous times on QPC2 with no problems, hence my suspicion that it's SQLQmulator at fault.

I don't suppose anyone else is hitting this problem? I'm on Linux Mint 19.1 64 bit.

Cheers,
Norm.


Why do they put lightning conductors on churches?
Author of Arduino Software Internals
Author of Arduino Interrupts

No longer on Twitter, find me on https://mastodon.scot/@NormanDunbar.
User avatar
NormanDunbar
Forum Moderator
Posts: 2251
Joined: Tue Dec 14, 2010 9:04 am
Location: Leeds, West Yorkshire, UK
Contact:

Re: SMSQmulator v2.27 bug, perhaps?

Post by NormanDunbar »

More information.

After a fresh reset of SMSQmulator, I ET gwass60_bin and the start address is $19A5FC. I've traced it through and the screenshot below, somewhere, shows that it barfs at an instruction at address $19AEF5 which is indeed an odd address. It got there from this code:

19AEF2 DIVS (A4),D4
19AEF4 BSR.S $19AEF5

Address $19AEF5 is half way through the currently executing instruction at $19AEF4!
Screenshot from 2018-12-24 14-54-38.png
This would tend to imply that faults is in GWASS, but it's been working for ages under QPC2, so I'm confused. (My normal state!)

Merry Christmas everyone.

Cheers,
Norm.


Why do they put lightning conductors on churches?
Author of Arduino Software Internals
Author of Arduino Interrupts

No longer on Twitter, find me on https://mastodon.scot/@NormanDunbar.
User avatar
tofro
Font of All Knowledge
Posts: 2685
Joined: Sun Feb 13, 2011 10:53 pm
Location: SW Germany

Re: SMSQmulator v2.27 bug, perhaps?

Post by tofro »

QPC2 => 68020

SMSQMulator => 68000?

I thought SMSQMulator emulates a 68000 CPU - Why does GWASS even run (sortof)?

Tobias


ʎɐqǝ ɯoɹɟ ǝq oʇ ƃuᴉoƃ ʇou sᴉ pɹɐoqʎǝʞ ʇxǝu ʎɯ 'ɹɐǝp ɥO
User avatar
NormanDunbar
Forum Moderator
Posts: 2251
Joined: Tue Dec 14, 2010 9:04 am
Location: Leeds, West Yorkshire, UK
Contact:

Re: SMSQmulator v2.27 bug, perhaps?

Post by NormanDunbar »

I checked with PRINT PROCESSOR which returned 20.
That's a 68020 as far as I recall.


Why do they put lightning conductors on churches?
Author of Arduino Software Internals
Author of Arduino Interrupts

No longer on Twitter, find me on https://mastodon.scot/@NormanDunbar.
User avatar
pjw
QL Wafer Drive
Posts: 1286
Joined: Fri Jul 11, 2014 8:44 am
Location: Norway
Contact:

Re: SMSQmulator v2.27 bug, perhaps?

Post by pjw »

NormanDunbar wrote:I checked with PRINT PROCESSOR which returned 20.
That's a 68020 as far as I recall.
Sorry, Norm, but this has to be a mistake of some sort. PROCESSOR returns 0 here, and nothing in the documentation suggests that SMSQmulator now implements a 68020. GWASS only works on a 20, AFAIK. 20s can operate with odd addresses which presumably is one reason why GWASS barfs under SMSQmulator.
BTW: Just for the hell of it, I sometime run QPC2 under W2k in a VirtualBox on Window 10. On my machine it gives about the same experience and performance as running it in Windows directly. I believe VirtualBox (or similar) is also available for Linux. It may be worth a try, if your are desperate enough.. ;)


Per
dont be happy. worry
- ?
User avatar
NormanDunbar
Forum Moderator
Posts: 2251
Joined: Tue Dec 14, 2010 9:04 am
Location: Leeds, West Yorkshire, UK
Contact:

Re: SMSQmulator v2.27 bug, perhaps?

Post by NormanDunbar »

Hi Per,

I'll check again, but it definitely returned 20.

I use virtualbox already, for nany things, but I'm loathe to have to install a windows VB just to run QPC2.

Happy Christmas.


Cheers,
Norm.


Why do they put lightning conductors on churches?
Author of Arduino Software Internals
Author of Arduino Interrupts

No longer on Twitter, find me on https://mastodon.scot/@NormanDunbar.
User avatar
BSJR
Trump Card
Posts: 182
Joined: Sun Oct 18, 2015 12:53 pm
Location: Amsterdam
Contact:

Re: SMSQmulator v2.27 bug, perhaps?

Post by BSJR »

NormanDunbar wrote:Hi Per,

I'll check again, but it definitely returned 20.

I use virtualbox already, for nany things, but I'm loathe to have to install a windows VB just to run QPC2.

Happy Christmas.


Cheers,
Norm.
MACHINE returns 20, PROCESSOR returns 0, at least under W$7.
But SMSQm8 is m68000 only so odd addressing should be avoided.
Gwass60 can and should be told to omit anything for 68020+. Read the manual.

Merry Christmas,
Bob


Post Reply