TweetFollow Us on Twitter

Jul 85 Mousehole
Volume Number:1
Issue Number:8
Column Tag:Mousehole Report

Mousehole Report

Printing and the Tecmar

MacoWaco

Nothing will get my Tecmar to let my Imagewriter print. Then on top of that, I tried Finder 4.1 on it and I can't copy a file onto it!

Tecmar and Finder 4.1

Rusty Hodge

I have heard from some people that the "new" imagewriter driver and Finder 4.1 cause the Tecmar's print spooling to go out to lunch. It may be that reformatting is the only solution. Finders 3.3x and above need to be patched to have the "verify" routine no-opped.

Finder Patch for Tecmar

Macowaco

The patch for the Tecmar Finder is the following: change A002 57CA FFE2 to 4E71 4E71 4E71 using FEDIT. The second A002 fround using the Hex Search is it. Eliminates the "Verify" routine used in 4.1, but not used on earlier Finder's before 3.3x.

Rom Bug for I/O Traps

(name withheld to protect the guilty)

The effect of this bug is that if you perform an I/O trap call within an SCC interrupt routine or within a VBL task, your Macintosh may bomb. Assume A0 contains the pointer to the I/O parameter block:

403924:       LEA    $360,A1        ; pointer to file system queue header
403928:       JSR      *-$2E08      ; Enqueue pb (A0) on file system 
queque (A1)
40392C:       MOVE SR, -(SP)        ; save status 
40392E        ORI      #$300,SR     ; disable SCC and VBL interrupts
403932:       BSET       #0,$360    ;set file system busy bit

Suppose an SCC or VBL interrupt occurs during execution of the instruction at 40392C. At this time, the parameter block had been enqued on the file system queue, but the busy bit has not been set. If the interrupt handler performs an I/O trap, then that I/O as well as the one in the queue will be completed before the interrupt handler returns. When it does return, the file system queue is empty, and the instruction at 403932 sets the busy bit. Code following 403932 then attempts to dequeue a parameter block and execute it's command code, causing a bomb.

A similar sequence of code for device drivers begins at 40118E. This code exhibits the same problem except that the timing hole is two instructions wdie. Thus, if the file system or a device driver queue is not empty and the busy bit is not set, you MUST NOT perform the I/O trap.

What is the solution? Simple. If the queue is not empty and the busy bit is not set, set the busy bit yourself, perform your async I/O trap, and reset the busy bit. Hence, your I/O is simply enqueued, and when you return, the interrupted ROM code precesses the queued I/O calls correctly. This bug is known at Apple and will be fixed in the next ROM.

Finder 4.1 Bug

Dave Kelly

While trying to do a disk copy using the Finder, the destination disk's ICON disappeared and the startup disk commenced to copy itself onto ITSELF! I restarted everything by hitting reset but the Finder was missing from the system folder. Something is kind of fishy here. Anyone else see any weird things like this?

[Yes, I have had icons disappear or move erratically under Finder 4.1. I assume it is a warning the Finder or desktop has been trashed and it's best to shut down at once. Version 4.1 definitely has a bug related to tracking icons on the desktop. -Ed.]

More Finder 4.1 Icon Bugs

Macin Stosh

Finder 4.1 seemed to be working great until I got a "Disk needs minor repairs..." alert. When I checked the desktop, I noticed half the files had lost their icon pictures. Here's an interesting way to make your write 4.5 bomb: go to the search and replace window and hit "Command-Enter"...

Paste into the Calculator

Ant Killer

Did you know that you can paste what's in the clipboard to the calculator and it will work just like you had typed it in? (Well, it does.)

New Software Releases

Video Whiz

Just got the new "Official" update stuff from Apple; Write 4.5, Paint 1.5, Finder 4.1 and a new combo Font/Desk accessory Mover. The new paint allows "smoothing" with the Laser to increase resolution.

Thunderscan / Appletalk bug

Brett

Thunderscan uses the battery-backed up RAM and in fact looks at a location used by Appletalk. Removing the battery for 30 seconds after turning off the computer will clear memory and allow the thunderscan to work (until you use Appletalk again).

Product description on the 20 meg disk using the external drive connector is expected shortly. [What about recent announcements that Apple was shutting down the disk project in favor of buying the technology on the outside? -Ed.]

Building Drivers

Bob Denny

To build a driver, start your assembly with a RESOURCE directive:

RESOURCE    'DRVR'     id     '.XXX'      atr

where "id" is the resource ID, "atr" are the resource attributes (usually at least system heap). The above example will give a driver names ".XXX". Following the RESOURCE directive, code the driver flags words, then the driver dispatch table. Note that the dispatch table does not need to be coded using offset. Just do this:

DC.W    Open
DC.W    Prime
... etc.

The link'll do the rest. (Note the linker will not resolve references across mutiple .REL files in the /RESOURCES section. Your driver must end up as a single .REL file.) The key to understanding how the MDS assembler and linker handle code resources is that the linker will resolve all relocatable references against a base "address" of zero. Therefore the use of the driver routine lables as shown above will automatically translate to offsets to the repective entry points. Neat, eh? Just keep the rest of the driver "position independent".

Next link the driver with a control file like this:

/OUTPUT XXX.DRVR
/TYPE 'ZSYS' 'MACS'
/RESOURCES
XXX.REL

$

The /type directive makes the driver image file have the "little Mac" icon like the finder and sytem. It's optional.

Greyed-Out Text

Bob Denny

Someone asked how to gray out text. Text is grayed out by painting it's enclosing rectangle with "GRAY" pattern and the pen in BIC mode. Apparently you can't just write gray text. Here is the code from the defProc for buttons, with my comments:

MOVE.L   A4, -(SP)    ; (SP) -> button rect
MOVE.L   #$00010003, -(SP) ; shrink amt.
_InsetRect                                 ;shrink rect.

MOVE.L   A4, -(SP)      ; (sp)=shrunken rect
MOVE.L   (A5), A0       ;A0=>QD globals
PEA   Gray(A0)      ; (sp)=gray pat
_PenPat                   ;make pen gray
MOVE    #patBIC, -(SP)  ;bit-clear BIC mode
_PenMOde          ; make bit-bashing pen
 
_PaintRect           ; BIC-out text rectangle

_PenNormal
MOVE.L     A4, -(SP)          ; (sp)-> shrunk rect
MOVE.L    #$FFFFFFFD, -(SP)  ; expand
_InsetRect      ; expand button rect.
 

Community Search:
MacTech Search:

Software Updates via MacUpdate

WhiteCap 6.7 - Visual plug-in for iTunes...
WhiteCap is a sleek and sophisticated music visualizer and screensaver that features futuristic, wireframe mesh visuals with dynamic backgrounds and colors. WhiteCap contains thousands of visual... Read more
Dropbox 24.4.16 - Cloud backup and synch...
Dropbox is an application that creates a special Finder folder that automatically syncs online and between your computers. It allows you to both backup files and keep them up-to-date between systems... Read more
Amazon Chime 4.2.5645 - Amazon-based com...
Amazon Chime is a communications service that transforms online meetings with a secure, easy-to-use application that you can trust. Amazon Chime works seamlessly across your devices so that you can... Read more
Notion 0.1.8 - A unified workspace for m...
Notion is the unified workspace for modern teams. Features: Integration with Slack Documents Wikis Tasks Note: This application contains in-app and/or external module purchases. Version 0.1.8:... Read more
Google Chrome 58.0.3029.81 - Modern and...
Google Chrome is a Web browser by Google, created to be a modern platform for Web pages and applications. It utilizes very fast loading of Web pages and has a V8 engine, which is a custom built... Read more
Notion 0.1.8 - A unified workspace for m...
Notion is the unified workspace for modern teams. Features: Integration with Slack Documents Wikis Tasks Note: This application contains in-app and/or external module purchases. Version 0.1.8:... Read more
WhiteCap 6.7 - Visual plug-in for iTunes...
WhiteCap is a sleek and sophisticated music visualizer and screensaver that features futuristic, wireframe mesh visuals with dynamic backgrounds and colors. WhiteCap contains thousands of visual... Read more
Dropbox 24.4.16 - Cloud backup and synch...
Dropbox is an application that creates a special Finder folder that automatically syncs online and between your computers. It allows you to both backup files and keep them up-to-date between systems... Read more
Google Chrome 58.0.3029.81 - Modern and...
Google Chrome is a Web browser by Google, created to be a modern platform for Web pages and applications. It utilizes very fast loading of Web pages and has a V8 engine, which is a custom built... Read more
Amazon Chime 4.2.5645 - Amazon-based com...
Amazon Chime is a communications service that transforms online meetings with a secure, easy-to-use application that you can trust. Amazon Chime works seamlessly across your devices so that you can... Read more

Latest Forum Discussions

See All

ChordFlow (Music)
ChordFlow 1.0.0 Device: iOS Universal Category: Music Price: $6.99, Version: 1.0.0 (iTunes) Description: ChordFlow is a chord sequencer with a unique 4-track polyphonic arpeggiator, extensive chord library, MIDI out and Ableton Link... | Read more »
The Walking Dead: A New Frontier is out...
The newest season of Telltale Games'The Walking Dead is well underway. After the release of the third episode, "Above the Law" about a month ago, episode four, "Thicker Than Water" is hot and ready for more zombies and gut-wrenching emotional... | Read more »
Best games we played this week
Another week, another new wave of mobile games do dive into. We've dug through the list of apps that came out this week to tell you which apps are worth your sweet time. And while there weren't too many games this week, there were some big ones.... | Read more »
Vignettes (Games)
Vignettes 1.0.1 Device: iOS Universal Category: Games Price: $2.99, Version: 1.0.1 (iTunes) Description: Vignettes is a casual but unique exploration game without text or characters, where objects shapeshift as you spin them around... | Read more »
Get Me Outta Here is an 80s retro shoote...
Are you ready to fight some aliens? Because Crescent Moon Games has released the retro shooter Get Me Outta Here on iOS devices today. [Read more] | Read more »
Get a bunch of Apple productivity apps f...
If you're an Apple Mac owner, you're probably aware of the host of Apple productivity apps the company includes in all new Mac purchases. Apps like iMovie, Keynote, and of course, GarageBand. While you used to be able to also buy these apps... | Read more »
Terra Mystica (Games)
Terra Mystica 1.03 Device: iOS Universal Category: Games Price: $9.99, Version: 1.03 (iTunes) Description: Short Summary:≈≈≈≈≈≈≈≈≈≈≈≈≈ | Read more »
Ms. Spell (Games)
Ms. Spell 1.0 Device: iOS Universal Category: Games Price: $.99, Version: 1.0 (iTunes) Description: Cast spells and battle monsters in this turn based game, that has you delving into ever the changing Dreadwood to retrieve the lost... | Read more »
Invert - A Minimal Puzzle Game (Games)
Invert - A Minimal Puzzle Game 1.0 Device: iOS Universal Category: Games Price: $2.99, Version: 1.0 (iTunes) Description: Invert is a minimalist puzzle game for fans of brain teasers, logic puzzles, and Rubik's Cube fiddlers. | Read more »
Evergrow: Paper Forest (Games)
Evergrow: Paper Forest 1.0 Device: iOS Universal Category: Games Price: $2.99, Version: 1.0 (iTunes) Description: Solve puzzles in the handcrafted forests of Evergrow through the eyes of an imaginative child and his parents. Discover... | Read more »

Price Scanner via MacPrices.net

15-inch 2.7GHz Touch Bar MacBook Pros on sale...
Amazon has 2016 15″ 2.7GHz Apple Touch Bar MacBook Pros in stock today and on sale for $150-$200 off MSRP. Shipping is free: - 15″ 2.7GHz Touch Bar MacBook Pro Space Gray (sku MLH42LL/A): $2599 $200... Read more
Apple now offering Certified Refurbished 13-i...
Apple is now offering Certified Refurbished 2016 13″ Touch Bar MacBook Pros for $270-$300 off original MSRP. An Apple one-year warranty is included with each model, and shipping is free: - 13″ 2.9GHz... Read more
MyGiHealth Digestive Symptom Tracker Version...
My Total Health, Inc. has announced the release of MyGiHealth 2.1, an important update to their digestive symptom tracker developed exclusively for iPhone, iPad and iPod touch devices. MyGiHealth is... Read more
Galaxy S8 Materials Costs Highest by Far Comp...
The new Samsung Galaxy S8 equipped with 64 gigabytes (GB) of NAND flash memory carries a bill of materials (BOM) cost that comes out to US$301.60, much higher than for previous versions of the... Read more
iCarMode 4.0 Car Dashboard App For iOS Integr...
Indie developer Diego Resnik has announced the release of iCarMode 4.0, an update to his productivity app developed for iOS devices. iCarMode has positioned itself as a true car dashboard app,... Read more
How to save $150+ on Apple’s 13-inch 2.0GHz n...
Apple Authorized Reseller B&H Photo has non-Touch Bar 13″ 2.0GHz MacBook Pros on sale for $150 off MSRP for a limited time. Shipping is free, and B&H charges NY sales tax only: - 13″ 2.0GHz... Read more
15-inch 2.2GHz Retina MacBook Pro, Apple refu...
Apple has Certified Refurbished 2015 15″ 2.2GHz Retina MacBook Pros available for $1699. That’s $300 off MSRP, and it’s the lowest price available for a 15″ MacBook Pro. An Apple one-year warranty is... Read more
Apple Certified Refurbished iMacs available f...
Apple has Certified Refurbished 2015 21″ & 27″ iMacs available for up to $350 off MSRP. Apple’s one-year warranty is standard, and shipping is free. The following models are available: - 21″ 3.... Read more
Save up to $160 with Apple refurbished 9-inch...
Apple has Certified Refurbished 9″ and 12″ Apple iPad Pros available for up to $160 off the cost of new iPads. An Apple one-year warranty is included with each model, and shipping is free: - 32GB 9″... Read more
27-inch Apple iMacs on sale for $200 off MSRP
Amazon has 27″ iMacs on sale for $200-$201 off MSRP, each including free shipping: - 27″ 3.3GHz iMac 5K: $2099.99 $200 off MSRP - 27″ 3.2GHz/1TB Fusion iMac 5K: $1798 $201 off MSRP - 27″ 3.2GHz/1TB... Read more

Jobs Board

*Apple* Mobile Master - Best Buy (United Sta...
**493714BR** **Job Title:** Apple Mobile Master **Location Number:** 001024-Weatherford-Store **Job Description:** **What does a Best Buy Apple Mobile Master Read more
Best Buy *Apple* Computing Master - Best Bu...
**496963BR** **Job Title:** Best Buy Apple Computing Master **Location Number:** 001061-Marina-Store **Job Description:** **What does a Best Buy Apple Computing Read more
*Apple* Mobile Master - Best Buy (United Sta...
What does a Best Buy Apple Mobile Master do? At Best Buy, our mission is to leverage the unique talents and passions of our employees to inspire, delight, and enrich Read more
*Apple* Retail - Multiple Positions - Apple,...
Job Description: Sales Specialist - Retail Customer Service and Sales Transform Apple Store visitors into loyal Apple customers. When customers enter the store, Read more
*Apple* Mac Computer Technician - GeekHampto...
…complex computer issues over the phone and in person? GeekHampton, Long Island's Apple Premium Service Provider, is looking for you! Come work with our crew Read more
All contents are Copyright 1984-2011 by Xplain Corporation. All rights reserved. Theme designed by Icreon.