Getmpb
Get Memory Parameter Block
Getmpb() Opcode = 0
T his call is u se d b y G E M D O S to initialize th e m e m o ry m a n ag em e n t sy s
tem . It c re ate s a d ata s tru ctu re th at co n ta in s m em o ry m a n ag m en t in fo rm a
tion .
C macro format
lo ng b uffer[31;
g etm p b(b u ffer);
Machine language format
b u ffe r, - (sp )
# 0 , - (sp)
# 1 3
m o ve .l
m o v e .w
tra p
ad d q.l
Inputs
bu ffer
# 6 ,s p
lo n g
T h e ad d re ss o f a 12-b yte bu ffer
Results
bu ffer[0]
b u ffe r[l]
bu ffer[2]
lo n g P o in ter to m e m o ry free list M D
lo n g P o in ter to m e m ory alloc ated list M D
lo n g P o in ter to ro v in g M D
A ll th ree o f th ese p o in te rs p o in t to m e m o ry d esc rip to r (M D ) d ata
str u ctu re s. T h e co m p o s itio n of th es e stru ctu re s is
link
lo n g P o in te r to n e x t M D [N U L L ]
sta rt lo ng
P o in te r to star t a d d res s o f th e block
len gth
lo n g
L en g th of th e block in by tes
ow n lo ng
P o in ter to M D o w n er's p ro ce ss d escrip to r
[N U L L ]
175