Atari ST series Technical Reference Manual page 266

Hide thumbs Also See for ST series:
Table of Contents

Advertisement

Set User/Supervisor Mode
Super()
This function is used to change between the 68000 processor's user and
supervisor modes. Though most programs operate in user mode, certain
operations on the ST can only be performed from supervisor mode. These
include reading or writing to system variables stored in memory locations
below 2048 ($800), and reading or writing to hardware registers located
above 167444482 ($FF80000).
C macro format
long stack, oldstack;
oldstack = Super(stack);
Machine language format
move.l
stack, - (sp)
move.w
# $ 2 0 ,-(sp )
trap
# 1
addq.l
#6,sp
Inputs
stack
long
Results
D O
oldstack
long
258
Super
The address of the stack area to use after
the mode change.
0
= Use same stack for supervisor and
user modes.
- 1 L = read (don't change) current privi­
lege mode.
If the mode was toggled, the address of the old su­
pervisor stack is returned here. If stack was set to
- 1L, the value here is a flag indicating the current
privilege mode:
0 = User
1 = Supervisor
Opcode = 32 ($20)

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents