HI Jorge
The assembly language instructions are as per the below snippet in our project and to use declspec identifier as mentioned in the attachment ,these are not functions declarations or function definitions .Plus in the warnings I am not getting anything related to “register abi”. But there are warning like since our assembly files are .s. If as per the attachment whether move.l #__MBAR,D0 should be removed
Linker command file warning at line 63. Updating the linker command file should be considered. File "mcf548x_lo.s" not found; assuming that "mcf548x_lo_s.obj" file was meant. CDSS_A380_New_Certified C/C++ Problem
Linker command file warning at line 61. Updating the linker command file should be considered. File "vectors.s" not found; assuming that "vectors_s.obj" file was meant. CDSS_A380_New_Certified C/C++ Problem
Linker command file warning at line 65. Updating the linker command file should be considered. File "sysinit.c" not found; assuming that "sysinit_c.obj" file was meant. CDSS_A380_New_Certified C/C++ Problem
Linker command file warning at line 64. Updating the linker command file should be considered. File "mcf5xxx.s" not found; assuming that "mcf5xxx_s.obj" file was meant. CDSS_A380_New_Certified C/C++ Problem
Linker command file warning at line 76. Updating the linker command file should be considered. File "vectors.s" not found; assuming that "vectors_s.obj" file was meant. CDSS_A380_New_Certified C/C++ Problem
Sample code snippet in one of our .s files
#define __MBAR ___MBAR
asm_startmeup:
_asm_startmeup:
/* Initialize MBAR */
move.l #__MBAR,D0
movec D0,MBAR
/* Initialize RAMBAR0 - locate it on the data bus*/
move.l #__CORE_SRAM0,D0
add.l #0x21,D0
movec D0,RAMBAR0
/* Initialize RAMBAR1 - locate it on the data bus*/
move.l #__CORE_SRAM1,D0
add.l #0x21,D0
movec D0,RAMBAR1
/* Point Stack Pointer into Core SRAM temporarily */
move.l #__CORE_SRAM1,D0
add.l #__CORE_SRAM1_SIZE,D0
move.l D0,SP
/* Initialize mcf548x periphs, etc */
jsr _mcf548x_init
/* Relocate Stack Pointer */
move.l #__SP_INIT,SP
/* Jump to the main process */
jsr _main
bra .
nop
nop
/*halt*/