Prev: 2AEE Up: Map Next: 2AFF
2AF4: THE 'GET-HL*DE' SUBROUTINE
Used by the routines at STK_VAR and DIM.
Unless syntax is being checked this subroutine calls HL_HLxDE which performs the implied construction.
Overflow of the 16 bits available in the HL register pair gives the report 'out of memory'. This is not exactly the true situation but it implies that the memory is not large enough for the task envisaged by the programmer.
Input
DE First number (M)
HL Second number (N)
Output
HL M*N (if not checking syntax)
GET_HLxDE 2AF4 CALL SYNTAX_Z Return directly if syntax is being checked.
2AF7 RET Z
2AF8 CALL HL_HLxDE Perform the multiplication.
2AFB JP C,REPORT_4 Report 'Out of memory'.
2AFE RET Finished.
Prev: 2AEE Up: Map Next: 2AFF