[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Need some help on traps...
- To: email@example.com
- Subject: Need some help on traps...
- From: DOYLE@SISU
- Date: Fri, 7 Feb 1992 13:45 EST
I'm having some trouble with calling traps which change the addressing mode
from 32 to 24 bit (and vice versa). I know how to do this in C, but I have two
confusions about calling these routines (and some traps in general) from MCL2.0.
Perhaps the answer (for me) is RTFM, but I tried and am still befuddled.
Why is getmmumode commented out in OSUTILS.lisp? (There
are a number of routines which are commented out which mention
'Not in ROM'. Shouldn't it be transparent to the calling program
whether or not the trap is in ROM or not?
How can I invoke SwapMMUMode? In C it would be something like:
mode = true32b;
The OSUTILS.lisp trap definition is:
(deftrap _swapmmumode ((mode (:pointer :signed-byte)))
(:register-trap #xA05D :d0 mode))
... so I tried calling it by entering
(%put-byte mode #$true32b)
...but this returns an error saying that the argument #<A Mac Non-Zone Pointer..>
is not of the required type.
I'm sure I just don't know how to call this type of trap...
In case you're wondering... I'm using this to access pixel data which is at a
Massachusetts General Hospital