Search results

  1. J

    68k Determining if screen is set to color vs b&w at runtime in Sys 7

    All the C compilers for classic Mac OS support pascal because Mac OS apps was original programmed using Pascal. Look at all the Inside Macintosh books - they show APIs and code examples written in Pascal. pascal in C alters the parameter passing calling conventions to match those of Pascal - at...
  2. J

    68k Determining if screen is set to color vs b&w at runtime in Sys 7

    To determine color vs grayscale, For indexed color modes (8 bit or less), can you examine the color table (pmTable) to see if it has any entries that don't have red = green = blue? Regarding drawing icons, maybe try going to...
  3. J

    68k Determining if screen is set to color vs b&w at runtime in Sys 7

    Oh right, DeviceLoop. I remember that now. Controls and window structures will appear different on color and B&W displays. CDEFs and WDEFs probably use DeviceLoop. You would use DeviceLoop for your own drawing if you want what you draw to be different depending on color depth.
  4. J

    68k Determining if screen is set to color vs b&w at runtime in Sys 7

    There could be multiple displays connected with different color depths. A window could span multiple displays. GetMainDevice is not necessarily the device with the highest color depth. I forget how drawing and updating should be handled when a window spans multiple displays. Do you get a...
  5. J

    ThinkC Good mirror of Apples ftp server with code samples?

    I use StuffIt Destinations.app in macOS Monterey to extract those files successfully. I think it's part of Stuffit Expander 16?
  6. J

    Emulator for MacOS 8/9 + Macsbug

    MacsBug only uses 640x480 so it appears in a small window in the middle of the 1600x1200 display. I'm using MacsBug 6.6.3. It seems to work fine on my B&W G3 running 9.2.2 except for some corrupted pixels. I can't see the background while in MacsBug because the pixel depth is not set to 256...
  7. J

    Emulator for MacOS 8/9 + Macsbug

    I think I get this same problem on a real Power Mac 8600 running Mac OS 9.2. Something wrong with autorepeat?
  8. J

    Hiding "dot" files in Classic?

    Once you verify that SetFile can work, then you can combine it in a script to do all such files. Use the find command to find all files that have a name that begins with a dot and pass each file to the SetFile command. This command finds all folders and files that have a name that begins with a...
  9. J

    Hiding "dot" files in Classic?

    Use SetFile -a I filepath in Mac OS X to set the Invisible flag? Test it on a single file first. setfile Usage: SetFile [option...] file... -a attributes # attributes (lowercase = 0, uppercase = 1)* -c creator # file creator -d date # creation date...
  10. J

    ThinkC [Study Group 2] - Events & Menu Management

    Add a counter. Count the NullEvents per second. Compare this count where you do the update for every null event with the count where you do not do any update for any null event. A large difference means the update function is doing a lot of work. Consider not doing the update function if less...
  11. J

    ThinkC [Study Group 2] - Events & Menu Management

    LaunchApplication takes a LaunchParamBlockRec where you can include some Apple Events. You could also try sending Apple Events to the Finder. An existing process can be specified in an Apple Event descriptor using typeProcessSerialNumber. Find the Finder process serial number by searching for...
  12. J

    6500 db15 to vga adapter issues

    I would try one of the mode 5 modes (separate sync). Probably one of the multi sync modes. 21" 14679 // this might actually be the setting for MultiSync 16" 16" 14678 // this might actually be the setting for MultiSync 21" 14" 145789 Maybe you just need to boot to Open Firmware instead of...
  13. J

    Tool to read the complete CPU type (PPC)?

    The pvr (Processor Version Register) of the PowerPC CPU has the info. https://pearpc.sourceforge.net/pvr.html I think reading directly from the pvr in OS X or OS 9 requires a supervisor mode instruction which is difficult to do so I get the value from the registry instead. Open Firmware reads...
  14. J

    SATA? In an old world PCI Power Mac?! IMPOSSIBRU! (Updated 11/22/23)

    I've updated the three projects so now flashrom should be able to get as far as your patch allowed. Can you verify that it reads the rom correctly (I guess it should have PCIR in the header). sudo ./flashrom -VVV -p satasii -r satasii.rom > satasii_test1.txt dd if=satasii.rom bs=256 count=1 |...
  15. J

    Which Macintoshes, NuBus Video Cards Only Do “Sync on Green”?

    There's a thread that describes the adapters and diodes and pinouts https://tinkerdifferent.com/threads/documentation-for-db15-to-vga-adapters.318/
  16. J

    Documentation for DB15 to VGA adapters

    @Melkhior, true, the VGA or a Multisync option might be the only ones needed to use most displays with Mac OS. However, an adapter that can pretend to be any of the known displays would be useful when one wants to see how Mac OS behaves when a specific display type is connected. The info was an...
  17. J

    Documentation for DB15 to VGA adapters

    https://tinkerdifferent.com/threads/documentation-for-db15-to-vga-adapters.318/ Examining the chart, including all the displays listed in IOMacOSVideo.h, we come up with these options...
  18. J

    Documentation for DB15 to VGA adapters

    I wrote an app in Think Pascal in 1996 to generate sense line schematics. Each possible sense combination shows 4 schematics. The leftmost is probably the simplest. I suppose two diodes in parallel, one in each direction, would be equivalent to a wire. There's 512 possible circuits (2(diode...
  19. J

    SATA? In an old world PCI Power Mac?! IMPOSSIBRU! (Updated 11/22/23)

    I will check that darwin3 and directhw get different ioconnect_t and that the user client connection to flashrom should appear twice in ioreg.
  20. J

    SATA? In an old world PCI Power Mac?! IMPOSSIBRU! (Updated 11/22/23)

    I haven't done much testing yet (busy on other projects) but I'm starting to look at it now. Thanks for pointing me at the problem. The pcilib has 4 different PCI access methods for macOS. pcilib tests each access method in order until it finds one that works. Each access method has its own...