Skip to main content
Home Forums 68kMLA My first 68k assembler program — #4
Post #4 by Elfen
Source Forum68kMLA
CategoryTroubleshooting
Post DateMon, 25 May 2015 - 19:03
Original URLhttps://68kmla.org/bb/threads/my-first-68k-assembler-program.2003/
Post
This is great!

Your problem is not with the program but with the resources. You have the pop-up windows at a fixed setting and fixed location. This is fine for most applications but not all. You need a tiny routine that gets the Gestalt number of the Mac, compare it to a list of classic Macs, and set the pop-up windows to the Mac/Monitor used. This means making a couple more resource settings for B/W Macs and the Mac Classics. The rest of the program as you have is to be left untouched as it properly outputs to the pop up windows.

You just have to set what pop up window your program needs as by the Gestalt Numbers. I figure it is maybe 10 more lines of code to get the Gestalt Number and set the pop-up window resource ID and at least 2 more resources for the 2 windows in the B/W Macs.

mp.ls