.file "cpSobel.s" .ctext # # cpXbar function: # -cpXbar function reads AEG 4, which indicates whether # the memory crossbar is enabled in the AE # .globl cpXbar .type cpXbar. @function .signature pdk=4 cpXbar: mov %aeg, $4, %a8 # integer values returned in a8 rtn # # cpSobel function: # -writes array pointers (image data) and column/row sizes to AEG registers # -calls caep00 to execute the sobel operation # .globl cpSobel .type cpSobel. @function .signature pdk=4 cpSobel: mov %a8, $0, %aeg # a8 contains address of original image data mov %a9, $1, %aeg # a9 contains address of edge image data mov %a10, $2, %aeg # a10 contains number of rows mov %a11, $3, %aeg # a11 contains number of columns caep00 $0 # make the coprocessor call rtn .cend