QDOS Internals

Anything you never knew you wanted to know about the Sinclair QL.

User Tools

Site Tools



This vector allocates space on the maths stack at BV_RIP(A6).

Call ParametersReturn Parameters
D0.LUnusedD0.LError code SMSQ - Corrupted QDOS.
D1.LNumber of bytes required. D1.LCorrupted.
D2.LUnused D2.LCorrupted.
D3.LUnused D3.LCorrupted.
A1.LPointer to maths stack A1.LCorrupted.
A6.LSupBASIC pointer A6.LMay be changed.


No errors QDOS. But for SMSQ -

ERR_OMOut of memory.


  • All registers not shown above are not used on entry and are preserved on exit.
  • It is not necessary to allocate space for the routines such as CA_GTINT which fetch parameters for machine code procedures and functions.


The example below shows the use of this vector to allocate space on the maths stack.

Get_space  movea.w  BV_CHRIX,A2     ; BV_CHRIX  vector address.
           moveq    #16,d1          ; Number of bytes required.                               
	   jsr	    (a2)            ; Make the call
	   bne.s    Error_handler   ; Oops! (SMSQ only)
qdosmsq/vectors/resri.txt · Last modified: 2009/02/11 11:04 by george.gwilt