home *** CD-ROM | disk | FTP | other *** search
- From: clausb@hpbbrd.bbn.hp.com (Claus Brod)
- Date: Thu, 17 Dec 1992 11:53:41 GMT
- Subject: Re: HELP! how do i clear CACR on a TT without 68030 assembler??
- Message-ID: <BzEJpI.1oI@hpbbrd.bbn.hp.com>
- Organization: HP Mechanical Design Division
- Path: sparky!uunet!spool.mu.edu!sdd.hp.com!col.hp.com!news.dtc.hp.com!hpscit.sc.hp.com!hplextra!hpcc05!hpbbn!hpbbrd!clausb
- Newsgroups: comp.sys.atari.st.tech
- References: <BzCxFC.CEo@ccu.umanitoba.ca>
- X-Newsreader: TIN [version 1.1.8 PL6]
- Lines: 23
-
- vspicer@ccu.umanitoba.ca wrote:
- > is there any way in Megamax C to "hard code" the raw machine
- > code to execute the "move cacr,d0" and "move d0,cacr" commands which
- > Megamax's inline assembler doesn't understand? i can generate the
- > raw machine code to do this in Lattice's assembler, it's just:
-
- If Megamax's inline assembler has a dc.l command, you can use just
- that for the purpose:
-
- > move sr,-(sp) ; save sr
- > ori #$700,sr ; no interrupts
- > move cacr,d0 ; get cacr
- ----> change this to dc.l CODE_FOR_MOVE_FROM_CACR
- > ori.w #$808,d0 ; clear data and instruction caches
- > move d0,cacr ; reload cacr
- ----> change this to dc.l CODE_FOR_MOVE_TO_CACR
- > move (sp)+,sr ; interrupts back on
- > rts ; go back
-
- --
- --clausb@hpbeo79.bbn.hp.com----------------------------------------------
- Claus Brod, MDD, HP Boeblingen Things. Take. Time. (Piet Hein)
- --#include <std_disclaimer>----------------------------------------------
-