amax.asm
bitfixer_bitfixer/dg/z88dk/libsrc/math/genmath/amax.asm
;       Small C+ Math Library

        PUBLIC amax
        
        EXTERN	ldbchl
        EXTERN	compare
        EXTERN	ldfabc



;
;       amax(a,b)       returns the greater of a and b
.amax   LD      HL,8    ;offset for 1st argument
        ADD     HL,SP
        CALL    ldbchl  ;bcixde := 1st argument
        CALL    compare
        JP      M,ldfabc
        RET
