You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

42 lines
668 B

#if defined(__IASM8051__) || defined(__IASM430__)
NAME main
#else
MODULE main
#endif
PUBLIC main
PUBLIC __iar_program_start
PUBLIC __program_start
#if defined(__IASMSTM8__)
EXTERN CSTACK$$Limit
SECTION `.near_func.text`:CODE:NOROOT(0)
#elif defined(__IASMAVR__)
ORG $0
RJMP main
RSEG CODE
#elif defined(__IASM8051__)
ORG 0FFFEh
DC16 main
RSEG RCODE
?cmain:
#elif defined(__IASM430__)
ORG 0FFFEh
DC16 init
RSEG CSTACK
RSEG CODE
init:
MOV #SFE(CSTACK), SP
#else
EXTERN __iar_static_base$$GPREL
SECTION CSTACK:DATA:NOROOT(4)
SECTION `.cstartup`:CODE(2)
CODE
#endif
__program_start:
__iar_program_start:
main:
NOP
END