[Idea] Macintosh 68k Programming Study Group?

eric

Administrator
Staff member
Sep 2, 2021
939
1,534
93
MN
scsi.blue
------

First Study Group is live! https://tinkerdifferent.com/threads...velopment-environment-setup-hello-world.1754/

------

I've been doing some 68k Programming in ThinkC 5/6 and learned a lot along the way (with a lot of help from @jcs, @Mu0n, @_SDGOL_, and others) and was wondering if anyone would be interested in a every two weeks'ish Macintosh Programming Study Group. I'm thinking we'd go through say a Chapter in a book and discuss the concepts, problems, and build some demo apps. We can structure it so people can join in anytime and participate as much or as little as they want.

In my mind I have enough content to build out the first batch of weeks, but I'd need help from others too to think of ideas, maybe challenges, etc.

I think it'd be a great way to get people who've wanted to build a 68k app but couldn't and got stuck, and for some of this stuff to be more "googalable" - Also if enough are interested might be worth a dedicated retro programming sub-forum.

system6.png

A window I made, much further than 12 year old me ever got.
 
Last edited:

Eric's Edge

Tinkerer
Oct 31, 2021
121
87
28
I've been doing some 68k Programming in ThinkC 5/6 and learned a lot along the way (with a lot of help from @jcs, @Mu0n, @_SDGOL_, and others) and was wondering if anyone would be interested in a every two weeks'ish Macintosh Programming Study Group. I'm thinking we'd go through say a Chapter in a book and discuss the concepts, problems, and build some demo apps. We can structure it so people can join in anytime and participate as much or as little as they want.

In my mind I have enough content to build out the first batch of weeks, but I'd need help from others too to think of ideas, maybe challenges, etc.

I think it'd be a great way to get people who've wanted to build a 68k app but couldn't and got stuck, and for some of this stuff to be more "googalable" - Also if enough are interested might be worth a dedicated retro programming sub-forum.

View attachment 7354
A window I made, much further than 12 year old me ever got.
I'm in!
 
  • Like
Reactions: eric

retr01

Senior Tinkerer
Jun 6, 2022
2,473
1
793
113
Utah, USA
retr01.com
Wow! This is a fantastic idea! :) Thank you, @eric, for getting this study group set up.

Hey, I set up a Retro Apple Programmers/Developers Association thread in hopes of spurring up discussions on reviving that association today in the retro sense. I got that idea from @BFEXTU, a veteran software engineer from back in the day for the Macintosh programs, as we were talking about that in another thread a couple of weeks back.

I will link this thread from there as well.

I am in, too! So, this is using the ThinkC compiler? Okay. It's on Macintosh Garden. Any other stuff I need? Do we use the TinkerDifferent Discord to collaborate?
 

retr01

Senior Tinkerer
Jun 6, 2022
2,473
1
793
113
Utah, USA
retr01.com
So, I was looking for a textbook we all can use together. How about this book in PDF I found at vintageapple.org, Macintosh C Programming by Example, back in 1991? Is this good?

Below is the disk that came with the book.

1659719221505.png


 
Last edited:

retr01

Senior Tinkerer
Jun 6, 2022
2,473
1
793
113
Utah, USA
retr01.com
@eric, are those the compliers we all can use together?


 

Mu0n

Active Tinkerer
Oct 29, 2021
603
558
93
Quebec
www.youtube.com
So, I was looking for a textbook we all can use together. How about this book in PDF I found at vintageapple.org, Macintosh C Programming by Example, back in 1991? Is this good?

Below is the disk that came with the book.

View attachment 7392


I highly recommend not sticking to any single book. We have access to many, MANY sources of material:

Mactech articles: http://preserve.mactech.com/articles/index.php
Treasure troves of programming book PDFs: https://vintageapple.org/macprogramming/
Inside Mac (old): https://vintageapple.org/inside_o/
Inside Mac (revamped): https://vintageapple.org/inside_r/

My compiler recommendation is Symantec THINK C 6. The only reason to use v5 is if you're cramped for space, which shouldn't happen in 2022..
 

retr01

Senior Tinkerer
Jun 6, 2022
2,473
1
793
113
Utah, USA
retr01.com
I highly recommend not sticking to any single book. We have access to many, MANY sources of material:

Mactech articles: http://preserve.mactech.com/articles/index.php
Treasure troves of programming book PDFs: https://vintageapple.org/macprogramming/
Inside Mac (old): https://vintageapple.org/inside_o/
Inside Mac (revamped): https://vintageapple.org/inside_r/

Great! :)
https://vintageapple.org/inside_r/
My compiler recommendation is Symantec THINK C 6. The only reason to use v5 is if you're cramped for space, which shouldn't happen in 2022..

Perfect! :D(y)

Thank you, @Mu0n! Is there anything else to gather?
 

BFEXTU

Tinkerer
Jul 15, 2022
177
147
43
I'm in a hurry...but sounds like fun! You just have to make sure you have the right tools and interfaces for the desired target machines. Think C and Think Pascal were always good. There is also the Think Reference, which is a handy toolbox reference. There were major changes between System 6.x and System 7.x and it was not really a clean break. Apple had a lot of trouble with System 7.0 (and later with Copland). So, you can expect forward or backward compatibility issues, depending on which version of the tools and interfaces you are using and how you set up the project attributes. Another good cross-compiling tool on later MacOS platforms was CodeWarrior -- version, then the Pro IDE -- around the time that Motorola bought them. If you have a physical mac, then a good debugger is essential -- Macsbug, TMON, TMON Pro, The Debugger, etc. The main development platform from Apple was MPW -- not as user-friendly as LightSpeed or CodeWarrior, but more powerful. For System 6.x, you probably want something in the 3.0-3.2 range. For 7.0 and later, v3.4+. You will need ResEdit or Resorcerer to edit resource files. To look at files, there were tools like FEdit+ and SEdit -- but maybe not as common. And, while learning 68K is not essential to make your first program, you should consider it so that you can debug your programs and understand the Mac internals. It's fairly easy -- you could learn the basics in a day.
 
Last edited:

Crutch

Tinkerer
Jul 10, 2022
293
228
43
Chicago
I heartily endorse THINK C 6 as the right C compiler for almost all purposes in the System 6/7 era.

I don’t think that at the learning stage one should need to be mucking about with Macsbug. The THINK C integrated debugger is more than good enough for learning Toolbox programming, and Macsbug isn’t hugely valuable until one learns 68K assembly in any event.
 
  • Like
Reactions: rikerjoe and YMK

Mu0n

Active Tinkerer
Oct 29, 2021
603
558
93
Quebec
www.youtube.com
Resedit is excellent to make your resources, it's what I'm familiar with since the 90's. And I'm fond of resorcerer to poke around code in hex format and read data files that way, with strong search features. Porque no los dos?
 

retr01

Senior Tinkerer
Jun 6, 2022
2,473
1
793
113
Utah, USA
retr01.com
Resedit is excellent to make your resources, it's what I'm familiar with since the 90's. And I'm fond of resorcerer to poke around code in hex format and read data files that way, with strong search features. Porque no los dos?

Cool! So, there are common codes in hex format that means something. Do you know of good guides on that?

Guides how to change splash screens, sounds, icons, etc.?
 

Patrick

Tinkerer
Oct 26, 2021
434
1
224
43
I highly recommend not sticking to any single book. We have access to many, MANY sources of material:
100% agree.

the trick is what to start with. I thought the idea would be everybody works on the same material and collaborate.


sounds like eric has a ideas for the first few weeks at least.....
 
  • Like
Reactions: retr01