[an error occurred while processing this directive]
|
в asm.s :
.extern _InitRoutine
_InitRoutine:
mov R12, PC
в asm.h :
extern int InitRoutine(int param1, int param2);
в main.c :
#include "asm.h"
int main(void){
InitRoutine(1,2);
}
Вариант не работает: линкер выдает ошибку
undefined reference to `InitRoutine()'
такой вариант:
asm.s:
public _InitRoutine
_InitRoutine:
mov R12, PC
вообще не проходит
Error: bad instruction `public _InitRoutine'
E-mail: info@telesys.ru