Meas
Listing index
Mlt
Routine:        Measno
Function:       Get from the user the number of readings required and check that its not too many
Called by:      Main
Calls:          Error, Fpint, Input
Entry:          None
Exit:           lognmx holds number of measurements required
Preserved:      None


MEASNO  LD      HL,NUM1
        CALL    INPUT
; Get the number from the user.
        PUSH    HL
        POP     IX
        CALL    FPINT
; Convert from floating point to two byte integer.
        LD      (LOGNMX),HL
        LD      DE,LOGMAX
        OR      A
        SBC     HL,DE
; Subtract maximum number of measurements allowed and return if less, otherwise indicate error A, and get another value.
        RET     C
        LD      A,10
        CALL    ERROR
        JR      MEASNO
 
Meas
Listing index
Mlt