68k Macintosh OS?

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
User avatar
Nathan
Member
Member
Posts: 201
Joined: Sun Jul 19, 2009 1:48 pm
Location: Brazil
Contact:

68k Macintosh OS?

Post by Nathan »

Hello,
I want to develop a OS for the old 68k Macintoshs(Macintosh Plus or IIci), but before I need to know some things:
  • Which Assembler I need to use?
  • There is any Hello World bootloader for it?
  • Where could I find references to build it?
Best Ragards,
Nathan Paulino Campos
User avatar
Love4Boobies
Member
Member
Posts: 2111
Joined: Fri Mar 07, 2008 5:36 pm
Location: Bucharest, Romania

Re: 68k Macintosh OS?

Post by Love4Boobies »

GAS seems to support 68k, I'm surprised that you didn't check (or not).

Sorry, but I was too lazy to google for the other two.
"Computers in the future may weigh no more than 1.5 tons.", Popular Mechanics (1949)
[ Project UDI ]
User avatar
Nathan
Member
Member
Posts: 201
Joined: Sun Jul 19, 2009 1:48 pm
Location: Brazil
Contact:

Re: 68k Macintosh OS?

Post by Nathan »

Thanks fir letting me know the first bullet. 2 to go now. =D>

I hope someone answer something that can help for the other 2 bullets. [-o<
User avatar
VolTeK
Member
Member
Posts: 815
Joined: Sat Nov 15, 2008 2:37 pm
Location: The Fire Nation

Re: 68k Macintosh OS?

Post by VolTeK »

study the 68k bootloader, find out what it does at start up, find out wehre the booloader goes to ;)
read all u can for the processor on the 68k, and then ull know what a bootloader should do for it ;)
User avatar
Nathan
Member
Member
Posts: 201
Joined: Sun Jul 19, 2009 1:48 pm
Location: Brazil
Contact:

Re: 68k Macintosh OS?

Post by Nathan »

I'm going to see what I can do... :|
aeritharcanum
Posts: 13
Joined: Sun Mar 07, 2010 3:17 pm

Re: 68k Macintosh OS?

Post by aeritharcanum »

<Deleted>
Last edited by aeritharcanum on Sun Feb 28, 2021 10:58 pm, edited 1 time in total.
User avatar
Brynet-Inc
Member
Member
Posts: 2426
Joined: Tue Oct 17, 2006 9:29 pm
Libera.chat IRC: brynet
Location: Canada
Contact:

Re: 68k Macintosh OS?

Post by Brynet-Inc »

NetBSD and OpenBSD support Mac 68k hardware, as long as it has an MMU/FPU.

http://www.openbsd.org/mac68k.html
http://www.netbsd.org/ports/mac68k

The operating system/firmware on these machines is integrated into ROM, there is no way to natively bootstrap these systems without doing so from within classic Mac OS (..a GUI), this is possible because Apple didn't really take advantage of memory protection hardware until Mac OS X.

You can obtain the source code for it here:
ftp://ftp.netbsd.org/pub/NetBSD/NetBSD- ... /misc/src/

These are very old systems, slow.. and they don't get a whole lot of attention these days, but several alternate operating systems exist.. so you have example code to learn from.

Good luck.
Image
Twitter: @canadianbryan. Award by smcerm, I stole it. Original was larger.
Gigasoft
Member
Member
Posts: 856
Joined: Sat Nov 21, 2009 5:11 pm

Re: 68k Macintosh OS?

Post by Gigasoft »

I recommend SNASM68K, which is what I use for Sega Mega Drive programming. There's also a program called CodeWriter, but I've never used it. The first 1024 bytes of a disk contains the boot loader. The first word is always "LK". Execution begins at offset 2.

It's probably a good idea to initialize HFSGlobals ($34e) to point at something before trying to load anything. The standard bootloader allocates 300 bytes times the number of 128K banks in the system, plus 2, for this structure. Then the boot drive should be mounted, and you can load your system file. If you are going to use the BIOS after that, there are probably more things that need initializing.
Post Reply