pTAL Conversion Guide

pTAL Built-In Routines
pTAL Conversion Guide527302-002
18-55
$WRITEPTE
ptetag input
uINT:value
are the page attribute bits associated with pageframe.
pageframe input
INT(32):value
is the frame number of the physical frame associated with abs.
abs input
EXTADDR:value
is the virtual address to which $WRITEPTE maps pageframe.
pTAL privileged procedure Yes
Can be executed only by privileged procedures Yes
Sets condition code No
Sets $CARRY Yes
Sets $OVERFLOW No
Figure 18-24. TAL Code Equivalent to $WRITEPTE Routine
STACK ptetag, pageframe, abs;
CODE(WPPT);
Figure 18-25. Native Code Equivalent to $WRITEPTE Routine
STACK pageentry, abs;
CODE(WSPT);
Example 18-41. Call to $WRITEPTE Routine
INT ptetag;
INT(32) pageframe;
EXTADDR abs;
$WRITEPTE(ptetag, pageframe, abs);