ok thanks all for you help: I found a way to do that with the following code
:

    ;disable interruption request handling
    ;by writing 00000000,11011111 into the interrupt mask register
    IMR    equ       $FFFFF304  ;Interrupt Mask Register
    move.l  #$ffffffff,IMR ; disable every interrupts

I need to do this because I try to measure the power consumption of a given
intruction of the instruction set. So I need to have this instruction
executed in an infinite loop without any interruption interrupting it.

so far it worked pretty well. I hope to developp a tool that wil evaluate
the power consumption (at the microprocessor level only) of a given program

    laurent




Laurent Lazard wrote in message <13396@palm-dev-forum>...
>
>I am trying to isolate the dragon ball processor activity from the rest of
>the system.
>
>I would like to disable all interrupts handling mechanism ?
>
>I tried to do this by setting the appropriate parameters in the interrupt
>mask register. I am then writing an assembly instruction with pila : MOVE.L
>$00FFFFFF, $FFFFF304.  I get a bus error or address error when I try to do
>that.
>
>am I doing something wrong ? is there an API function that would allow me
to
>do this ?
>
>
>thanks
>
>            laurent
>
>
>
>
>
>
>



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to