
    AREA  |!!!asmif|,  CODE, READONLY

    EXPORT buffer_fill_veneer

    IMPORT buffer_fill

; This code sets up stack and invokes the buffer fill routine
; and then ensures that the return is legal
buffer_fill_veneer  STMFD R13!,{R0-R2, R4-R12,R14}
; By default we get 256 bytes of work space
; No C library functions are called. The buffer_fill is straight digital
; signal processing.
     BL buffer_fill
     MOV R3,R0
; Return value from the C function will be in R0
; This can be copied to R3 which should not be stored on the stack
     LDMFD R13!,{R0-R2,R4-R12,PC}
; incremental iterative development states that we do the minimum
; in the first instance. So this is just a thunk on my first go


    END

