Mac OS 7.1.1 Source Code

Anything not about Mac emulation.

Moderators: Cat_7, Ronald P. Regensburg

Post Reply
fanman93
Granny Smith
Posts: 145
Joined: Wed Nov 11, 2009 10:05 pm
Location: Canada

Mac OS 7.1.1 Source Code

Post by fanman93 »

I noticed something interesting on the BetaArchive FTP: Source code (apparently complete) for Mac OS 7.1.1. Normally I leave these things alone, but I really couldn't help taking a look. After the download, I saw many directories in the archive. I decided to look in the "OS" one, since that's what I'm mainly interested in looking at. After having heard that the original System 0.x was developed on the Lisa with Pascal as the primary language, I expected to see a lot of pascal source. To my surprise, the were a lot of ".a" files, and only some files which stored C code. I knew that the C code relied on other code to function, but I had no idea what ".a" files were. I tried doing a search on Google, and it turns out the only programming language I can find that uses those file extensions is ADA. This, to me, is very surprising, because I never would have thought that they would use that compared to Pascal. After further reading, however, I found out that ADA was loosely based on Pascal. Is this so far-fetched? Or am I completely missing something here?
mathieudel
Inquisitive Elf
Posts: 36
Joined: Sat Oct 03, 2009 12:51 am
Location: France

Post by mathieudel »

Maybe .a just stands for assembler... I would need to look at at least one file to be affirmative though...
fanman93
Granny Smith
Posts: 145
Joined: Wed Nov 11, 2009 10:05 pm
Location: Canada

Post by fanman93 »

I'd really rather avoid distributing the source code. All I can say is, get a BetaArchive account.
Arbee
Nice Guy
Posts: 36
Joined: Mon Sep 13, 2010 12:09 pm

Post by Arbee »

The .a files are 680x0 assembly language. And yes, you really don't want to be distributing that stuff, even though Apple uses none of it since OS X 10.5 dropped Classic support.

Incidentally, in spite of the file names and everything, that source is for the Universal ROMs from a time shortly after the first PowerMacs shipped and not System/MacOS itself.
fanman93
Granny Smith
Posts: 145
Joined: Wed Nov 11, 2009 10:05 pm
Location: Canada

Post by fanman93 »

Interesting. Although, the files for the MMU (if they're labeled correctly, that is) could be useful for, say, Basilisk II and getting A/UX up and running.
Arbee
Nice Guy
Posts: 36
Joined: Mon Sep 13, 2010 12:09 pm

Post by Arbee »

The problem with A/UX isn't a lack of a knowledge of the MMU (MESS 0.140 implements nearly all of the features of the 68030's MMU), it's that the 680x0 emulator itself needs to be able to interrupt instructions in the middle and restart them with no side effects. That's 1) difficult and 2) will result in a much slower emulation than you currently see.
Ambassador
Apple Corer
Posts: 203
Joined: Thu Oct 16, 2008 10:09 pm
Location: Canada
Contact:

Post by Ambassador »

The problem with A/UX isn't a lack of a knowledge of the MMU (MESS 0.140 implements nearly all of the features of the 68030's MMU), it's that the 680x0 emulator itself needs to be able to interrupt instructions in the middle and restart them with no side effects. That's 1) difficult and 2) will result in a much slower emulation than you currently see.
Not to mention the emulated hardware has to be very specific and precise. I suppose one could make new A/UX drivers, but something tells me that would be quite an undertaking.
Post Reply