Please login or register.

Login with username, password and session length
Advanced search  

News:

Pages: [1]   Go Down

Author Topic: PPC scripting addition  (Read 4772 times)

OS923

  • 512 MB
  • *****
  • Posts: 888
PPC scripting addition
« on: July 05, 2018, 06:35:08 AM »

How do you make a PPC scripting addition for OS 9? I can make 68K scripting additions.

I know that it's a program, and you have to install and remove your AE handlers.

Does someone have an example for OS 9? I read some stuff but it was for OSX.
Logged

Daniel

  • 256 MB
  • *****
  • Posts: 302
  • Programmer, Hacker, Thinker
Re: PPC scripting addition
« Reply #1 on: July 05, 2018, 07:14:20 AM »

Presumably you would do it exactly the same, but use Universal Procedure Pointers for all your handlers.
Logged

OS923

  • 512 MB
  • *****
  • Posts: 888
Re: PPC scripting addition
« Reply #2 on: July 09, 2018, 08:12:07 AM »

It's a shared library. Instead of __initialize you chose a function that installs your handlers. Instead of __terminate you chose a function that removes your handlers. That's what I needed to know.

There's a working example on http://merzwaren.com/snippets/index.html
Logged
Pages: [1]   Go Up

Recent Topics

[Off Topic] What did you do with your PowerPC Mac today? by smilesdavis Yesterday at 11:10:58 AM
[Off Topic] Music Faves by jojo2k Yesterday at 07:57:27 AM
[Hardware] Powerbook for OS9 and SVP by BimmyLee August 29, 2025, 09:53:37 PM
[Hardware] MDD Freeze / J20 RAM Slot by aBc August 29, 2025, 07:41:14 PM
[Hardware] G4 MDD only boots using ADC monitor power button by smilesdavis August 29, 2025, 09:31:06 AM
[Hardware] Rev A/B iMac Freezes on Startup by keithiepoo August 28, 2025, 04:42:38 AM
[Off Topic] Power Use by torvan August 27, 2025, 11:01:40 PM
[Mac OS 9, Hacks & Upgrades] help my b+w g3 450 is haunted! upgrading from 8.6 to 9.0 fine but 9.1 ruins it by DieHard August 27, 2025, 04:50:57 PM