Path: utzoo!utgpu!attcan!uunet!husc6!mailrus!caen.engin.umich.edu!sol.engin.umich.edu!mystone From: mystone@sol.engin.umich.edu (Dean Yu) Newsgroups: comp.sys.mac.programmer Subject: My 256K ROMs aren't smart enough, or Are Apple ROM programmers sloughing off? Message-ID: <3f84800b.59b7@sauron.engin.umich.edu> Date: 7 Nov 88 06:08:00 GMT Sender: netnews@caen.engin.umich.edu Reply-To: mystone@sol.engin.umich.edu (Dean Yu) Organization: University of Michigan, Ann Arbor Lines: 37 OK, will somebody at Apple please tell me that the people who programmed the Mac II ROMs were really doing their jobs instead of playing NetTrek? Two of us have been working on a color version of ShowINIT that will display a color icon if the machine it is running on has Color QuickDraw, and plot the old black and white icon if CQD isn't available. No, big deal, right? Well, we call GetCIcon, assuming that it will set the pointers to all the PixMaps and BitMaps correctly as is stated in IM V. We rant and rave for a few hours thinking that our knowledge of 68000 was a little lax, and we had the wrong addressing modes, etc. Then we wisened up and decided to use the debugger, and take a look at what's going up. Guess what we found? The baseAddr fields in all the maps were NIL! Specifically, CIcon.iconPMap.baseAddr, CIcon.iconMask.baseAddr, and CIcon.iconBMap.baseAddr were all set to nil. Now I quote from IM V, on GetCIcon: "The GetCIcon function allocates a CIcon data structure and initializes it using the information in the resource of type 'cicn' with the specified ID." So. What's the story? If it sounds like I'm ticked, I am. I'm getting tired of trying to write neat programs, and finding out that there are problems with the ROMs. How are we supposed to expect to write decent programs if the tools which make the Mac the Mac don't work like they're supposed to? True, we can figure out where all the maps are stored by hand (we think), but why should this be done when Apple should have done it for us? ______________________________________________________________________________ Dean Yu | E-mail: mystone@caen.engin.umich.edu University of Michigan | Real-mail: Dean Yu Computer Aided Engineering Network | 2413 Kelsey House ===================================| 600 E Madison "These are MY opinions." (My | Ann Arbor, MI 48109 employer doesn't want them. |========================================== Actually, they don't really care | what I think. But President | This space intentionally left blank. Duderstadt does...) | ------------------------------------------------------------------------------