home *** CD-ROM | disk | FTP | other *** search
- 11-May-88 21:28:24-MDT,2465;000000000000
- Return-Path: <u-lchoqu%sunset@cs.utah.edu>
- Received: from cs.utah.edu by SIMTEL20.ARPA with TCP; Wed, 11 May 88 21:28:18 MDT
- Received: by cs.utah.edu (5.54/utah-2.0-cs)
- id AA04162; Wed, 11 May 88 21:28:55 MDT
- Received: by sunset.utah.edu (5.54/utah-2.0-leaf)
- id AA29325; Wed, 11 May 88 21:28:53 MDT
- Date: Wed, 11 May 88 21:28:53 MDT
- From: u-lchoqu%sunset@cs.utah.edu (Lee Choquette)
- Message-Id: <8805120328.AA29325@sunset.utah.edu>
- To: rthum@simtel20.arpa
- Subject: ToggleCache.asm
-
- Cache control is a handy tool for every 68020ed Mac user, including Mac II and
- Prodigy. After using Prodigy 4, Prodigy SE, and now Mac II, which use advanced
- 32 bit 68020 CPU, we have found some compiled applications cannot
- work on it, if the Cache bit is enabled on processing. I have not checked
- but obviously, there is a problem caused by applications compiled by
- Lightspeed C. (e.g. Red Ryder 9.4, 10.0bd, etc.) This problem can be solved
- only the user disables the Cache bit.
-
- But Mac II doesn't have any Cache control. Prodigy has only control d/a or
- cdev which wastes time (slow to control) and in most situations I want
- to switch it more easily. In the Macintosh, the easiest way to implement
- fast switching is with an FKEY.
-
- Here is easy 'Cache Control' FKey as ID=8. Please install with ResEdit1.1b1
- or FKEY Installer. The function is easy:
-
- Hit Cmd+Shift+8 -> When beep 1 time means enable Cache. (Cache On)
- Hit Cmd+Shift+8 -> When beep 2 times means disable Cache. (Cache Off)
-
- Switch above control as ever.
-
- Kiyomasa Ono [CIS 70127,247]
- [DELPHI UJL0018]
- Advanced Products Design
- Shinjuku 6-28-10 1002,
- Tokyo 160,
- Japan
- ------------------------------------------------------------------------
- Machine MC68020
- ; MC68881
- ; MC68851
-
- PRINT OFF
- INCLUDE 'Traps.a'
- ; INCLUDE 'ToolEqu.a'
- ; INCLUDE 'QuickEqu.a'
- ; INCLUDE 'SysEqu.a'
- PRINT ON
-
- CPUFlag EQU $012F
- ROMBase EQU $02AE
-
- Cache MAIN
-
- move.l d0,-(sp)
- Check020 move.b CPUFlag,d0
- tst.w d0
- beq.s is68000
- cmp.w #1,d0
- beq.s is68000
- cmp.w #2,d0
- beq.s is68020
- bra.s isOthers
- is68020 cmp.w #4,ROMBase
- bne.s isMacII
- isProdigy NOP
-
- isMacII clr.l d0
- movec CACR,d0
- eori #1,d0
- movec d0,CACR
- btst #0,d0
- bne.s isOn
- isOff move.w #3,-(sp)
- _SysBeep
- isOn move.w #3,-(sp)
- _SysBeep
-
- isOthers
- is68000 move.l (sp)+,d0
- RTS
-
- END
-
-