[an error occurred while processing this directive]
|
Использую функцию FmemCopyPtoP из бина DSP_MEM. Код выполняется из PRAM. В PRAM пишется хорошо. В чем косяк?
; void * memCopyPtoP ( void *dest, const void *src, size_t count );
; #pragma interrupt /* Can be used in a pragma interrupt ISR */
;
; Register usage:
; R2 - dest
; R3 - src
; Y0 - count/temp
;
ORG P:
FmemCopyPtoP:
if ASSERT_ON_INVALID_PARAMETER==1
cmp #PORT_MAX_VECTOR_LEN,Y0
bls ParamsOK
debug
rts
ParamsOK:
endif
tstw Y0
beq EndDo
do Y0,EndDo
move P:(R3)+,Y0
move Y0,P:(R2)+
EndDo:
; R2 - Contains *dest return value
rts
ENDSEC
END
E-mail: info@telesys.ru