qdosmsq:vectors:resri

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
qdosmsq:vectors:resri [2009/02/11 11:03]
george.gwilt Added a link
qdosmsq:vectors:resri [2009/02/11 11:04] (current)
george.gwilt Corrected spelling
Line 1: Line 1:
 +====== BV_CHRIX/QA_RESRI - Vector $11A ======
 +
 +This vector allocates space on the maths stack at BV_RIP(A6).
 +
 +^Call Parameters^^Return Parameters^^
 +|D0.L|Unused|D0.L|Error code SMSQ - Corrupted QDOS.|
 +|D1.L|Number of bytes required. |D1.L|Corrupted.|
 +|D2.L|Unused |D2.L|Corrupted.|
 +|D3.L|Unused |D3.L|Corrupted.|
 +|A1.L|Pointer to maths stack |A1.L|Corrupted.|
 +|A6.L|SupBASIC pointer |A6.L|May be changed.|
 +
 +===== Errors =====
 +No errors QDOS.
 +But for SMSQ -
 +
 +|ERR_OM|Out of memory.|
 +
 +===== Notes =====
 +  * 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 [[gtint|CA_GTINT]] which fetch parameters for machine code procedures and functions.
 + 
 +
 +===== Example =====
 +The example below shows the use of this vector to allocate space on the maths stack.
 +
 +<code>
 +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)
 +
 +</code>
 +
  
  • qdosmsq/vectors/resri.txt
  • Last modified: 2009/02/11 11:04
  • by george.gwilt