SMSQ/E Source Reading

Anything QL Software or Programming Related.
Derek_Stewart
Font of All Knowledge
Posts: 3928
Joined: Mon Dec 20, 2010 11:40 am
Location: Sunny Runcorn, Cheshire, UK

SMSQ/E Source Reading

Post by Derek_Stewart »

Hi,

I have been reading the SMSQ/E source code files, which I find very good and specific 68000 assembley lanaguage reference matarial.

I have been reading the source in the order it is compiled. Is this the best way read the source code?


Regards,

Derek
User avatar
mk79
QL Wafer Drive
Posts: 1349
Joined: Sun Feb 02, 2014 10:54 am
Location: Esslingen/Germany
Contact:

Re: SMSQ/E Source Reading

Post by mk79 »

There are probably 230000 lines of code. I suggest reading what‘s interesting to you and leave the rest out ;)


User avatar
pjw
QL Wafer Drive
Posts: 1286
Joined: Fri Jul 11, 2014 8:44 am
Location: Norway
Contact:

Re: SMSQ/E Source Reading

Post by pjw »

Derek_Stewart wrote:Hi,

I have been reading the SMSQ/E source code files, which I find very good and specific 68000 assembley lanaguage reference matarial.

I have been reading the source in the order it is compiled. Is this the best way read the source code?
Read it as you would an encyclopedia rather than a novel ;)


Per
dont be happy. worry
- ?
User avatar
Dave
SandySuperQDave
Posts: 2765
Joined: Sat Jan 22, 2011 6:52 am
Location: Austin, TX
Contact:

Re: SMSQ/E Source Reading

Post by Dave »

mk79 wrote:There are probably 230000 lines of code. I suggest reading what‘s interesting to you and leave the rest out ;)
Strip out the microdrive code and that leaves 12 lines :P

Which reminds me... Is the equivalent of Speedscreen incorporated into SMSQ/E? I do recall that was one of my better purchases back in the day and did give noticeable gains.


User avatar
NormanDunbar
Forum Moderator
Posts: 2251
Joined: Tue Dec 14, 2010 9:04 am
Location: Leeds, West Yorkshire, UK
Contact:

Re: SMSQ/E Source Reading

Post by NormanDunbar »

Derek_Stewart wrote:I have been reading the SMSQ/E source code files, which I find very good and specific 68000 assembly language reference material.
I get the impression that I'm probably the only person in the world who finds Tony's code extremely hard to read! I suppose it must be me that's "at fault" then. :(


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
mk79
QL Wafer Drive
Posts: 1349
Joined: Sun Feb 02, 2014 10:54 am
Location: Esslingen/Germany
Contact:

Re: SMSQ/E Source Reading

Post by mk79 »

Dave wrote:Strip out the microdrive code and that leaves 12 lines :P
Considering that there is no MDV driver in SMSQ/E I find this highly unlikely ;)


User avatar
Pr0f
QL Wafer Drive
Posts: 1298
Joined: Thu Oct 12, 2017 9:54 am

Re: SMSQ/E Source Reading

Post by Pr0f »

NormanDunbar wrote:
Derek_Stewart wrote:I have been reading the SMSQ/E source code files, which I find very good and specific 68000 assembly language reference material.
I get the impression that I'm probably the only person in the world who finds Tony's code extremely hard to read! I suppose it must be me that's "at fault" then. :(


Cheers,
Norm.
No Norman,

You are not alone - I love loads of comments in my source, and currants in my muesli :-)


Derek_Stewart
Font of All Knowledge
Posts: 3928
Joined: Mon Dec 20, 2010 11:40 am
Location: Sunny Runcorn, Cheshire, UK

Re: SMSQ/E Source Reading

Post by Derek_Stewart »

mk79 wrote:
Dave wrote:Strip out the microdrive code and that leaves 12 lines :P
Considering that there is no MDV driver in SMSQ/E I find this highly unlikely ;)
I am sure I used Super Gold Card with SMSQ/E and the microdrives worked. I think this was about version 2.76.

Does anyone know the last version of SMSQ/E that used the Microdrives?

If the microdrive code is not in SMSQ/E v3.34 could the code be loaded as a module ?

Or would the fast memory access, not using slave blocks, cause problems.


Regards,

Derek
User avatar
mk79
QL Wafer Drive
Posts: 1349
Joined: Sun Feb 02, 2014 10:54 am
Location: Esslingen/Germany
Contact:

Re: SMSQ/E Source Reading

Post by mk79 »

Derek_Stewart wrote:I am sure I used Super Gold Card with SMSQ/E and the microdrives worked. I think this was about version 2.76.
Your memory might be playing tricks here, MDV drivers were never part of SMSQ/E. Trust me on this, I happen to know that code.


User avatar
mk79
QL Wafer Drive
Posts: 1349
Joined: Sun Feb 02, 2014 10:54 am
Location: Esslingen/Germany
Contact:

Re: SMSQ/E Source Reading

Post by mk79 »

NormanDunbar wrote:I get the impression that I'm probably the only person in the world who finds Tony's code extremely hard to read! I suppose it must be me that's "at fault" then. :(
Why? Assembler is inherently hard to read, especially when written by somebody else. TT had a very clean and mostly consistent style, with many comments. Not that every one of those 230000 lines is clear as water, but all in all I'm not sure what he could have done better.

Marcel


Post Reply