; Copyright 2020 RISC OS Open Ltd
;
; Licensed under the Apache License, Version 2.0 (the "License");
; you may not use this file except in compliance with the License.
; You may obtain a copy of the License at
;
;     http://www.apache.org/licenses/LICENSE-2.0
;
; Unless required by applicable law or agreed to in writing, software
; distributed under the License is distributed on an "AS IS" BASIS,
; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
; See the License for the specific language governing permissions and
; limitations under the License.
;

OldOpt  SETA    {OPT}
        OPT     OptNoList+OptNoP1List

; Reason codes to OS_AMBControl

                                ^       0
AMBControl_Allocate             #       1       ; 0  R0,R1->R1,R2
AMBControl_Deallocate           #       1       ; 1  R0,R2->
AMBControl_GrowShrink           #       1       ; 2  R0,R1,R2->R1,R2,R3
AMBControl_MapSlot              #       1       ; 3  R0,R1,R2,R3,R4->
AMBControl_ReadInfo             #       1       ; 4  R0,R2->R1,R3
AMBControl_Laziness             #       1       ; 5  R0,R1->R1
                                #       1       ; 6  reserved
                                #       1       ; 7  reserevd
AMBControl_SystemInfo           #       1       ; 8  R0,R1->
AMBControl_CurrentInfo          #       1       ; 9  R0->R2,R3

; Flag bits in OS_AMBControl 3

AMBControl_MapSlot_MapSome      *       1 :SHL: 8

        OPT     OldOpt
        END