News:

Want an XLerator? Please participate in the market research thread: https://lisalist2.com/index.php/topic,594.msg4180.html

Main Menu

Programmatically detect MacWorks Plus

Started by D.Finni, March 19, 2021, 07:54:01 PM

Previous topic - Next topic

D.Finni

I see that MacWorks Plus installs a ROM image which identifies itself using the same version word as the Mac Plus ROM: $0075

I have code that checks the low byte of this word and if the high-bit is set, the code branches for Lisa/MacWorks. This code does not detect MacWorks Plus.

What should I do to detect the presence of MacWorks Plus?

jamesdenton


rayarachelian

If you can ask the OS for the size of the display that might do it. You should see 720x384 or 608x431 for the Lisa.
I don't believe any (non-XL) Mac used these sizes for video.
You don't know what it's like, you don't have a clue, if you did you'd find yourselves doing the same thing, too, Writing the code, Writing the code

D.Finni

Quote from: jamesdenton on March 19, 2021, 10:55:00 PM
Not sure if you've read this, but perhaps there's something useful here?
Have read that; didn't see anything useful.

Quote from: rayarachelian on March 20, 2021, 12:07:32 AM
If you can ask the OS for the size of the display that might do it. You should see 720x384 or 608x431 for the Lisa.
I don't believe any (non-XL) Mac used these sizes for video.
Certainly that's one way to do it. If I can't find an Apple-sanctioned way to check for MacWorks Plus, then I'll do something like that.

sigma7

Quote from: D.Finni on March 19, 2021, 07:54:01 PM
I see that MacWorks Plus installs a ROM image which identifies itself using the same version word as the Mac Plus ROM: $0075

I have code that checks the low byte of this word and if the high-bit is set, the code branches for Lisa/MacWorks. This code does not detect MacWorks Plus.

What should I do to detect the presence of MacWorks Plus?

MacWorks Plus / MacWorks Plus II typically masquerade as a Mac Plus because there was some software that would refuse to run on an X/Lisa on the assumption that MacWorks could not run it properly (which was true of MacWorks XL, but no longer true with MacWorks Plus ... more or less the reason for MacWorks Plus).

For its own purposes, MacWorks Plus code variants (eg. installers, desk accessories) check the long word at $400040 to find:

MW+ : 'MACW'
MW+2: 'MW+2'

There are also MW+/II version locations which contain p-strings:

MW+: $400088
MW+2: $400080

Since the version string isn't entirely predictable or reliable due to patches, it would be best to avoid making general decisions based on the version string.

As usual, you may choose to trust, but verify. HTH.
Warning: Memory errors found. ECC non-functional. Verify comments if accuracy is important to you.

D.Finni